Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~8K People Reached
About Me

Born: 4 February 341 BC
Died: 270 BC

PC Specs
Ubuntu 11.04 Natty Narwhal
Favorite Tags
Member Avatar for Epicurus

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 …

Member Avatar for BeauBeck
0
251
Member Avatar for mftbob

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 …

Member Avatar for Schol-R-LEA
0
4K
Member Avatar for Epicurus

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 …

Member Avatar for Epicurus
0
488
Member Avatar for peter20

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]

Member Avatar for Fbody
0
309
Member Avatar for Epicurus

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 …

Member Avatar for Epicurus
0
3K