- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Born: 4 February 341 BC
Died: 270 BC
- PC Specs
- Ubuntu 11.04 Natty Narwhal
Hi! The keypresses in my new project does not seem to be registered. I've never had this issue before and I don't think it is SDL:s fault this time. Here is the code in main: #include <cstdlib> #include <iostream> #include <SDL.h> #include "playertank.h" int main ( int argc, char** argv … | |
Re: Try splitting main() into several subfunctions, 100 lines makes it frustrating to maintain. Then call one round while the users wants to continue. If round() in declared like this int round() you can return different values deping on who won. Also if you include ctype you can use the function … | |
I'm trying to create my own linked list for handling bullets in my game. When the bullet has gone too far I want it to be removed but as soon as this is happening (when the bullet has travelled 11 steps) the game crashes. These are the functions used when … | |
Re: I don't know much about inheritance but that seems quite obvious. The public variables and functions in shape2 will either be public or private in cubiod objects. This could been googled. [url]http://www.cplusplus.com/doc/tutorial/inheritance/[/url] | |
I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In … |