General C++ Programming - May 2012 (Page 24)

by boaz
Please Help.. -Infinite Loop
 
For some reason... I get infinite loop saying - "ALPHA is flying with parties" how to stop it? and make it work like it is to be??? Main.cpp #include <iost...
[3 replies] Last: You have a statement While (true), where is the statement that returns... (by therry1)
Question on priority queue and linked lists
 
So I'm studying for my final and I've answered about 30 of the 40 review questions but I'm having trouble on two of them: 1.Explain why, counter-intuitively, ...
[no replies]
Help! TicTacToe Who Goes First issue
 
This code for a game of tic tac toe would work fine...except it won't pick who goes first and just go with it! It goes to the very top of the code again and cha...
[2 replies] Last: Thanks that seemed to help! I'm having another error that I don't und... (by obscurimity)
Quick Question about Operator Overloading
 
Hello, When operator overloading, are all parameters in each operator (operator+, operator-, etc) pre-defined? ~Flurite
[8 replies] Last: Pretty much. -Albatross (by Albatross)
Problem with playing sound
 
Hello. (I posted on the wrong forum before I think..) I am using PlaySound to play a .wav file (1 sec long), but it is failing. The file is located here: ...
[2 replies] Last: Thanks Stewbond! I was actually also wondering about that :) (by rawstyle)
by ruki
remove node from double linked list class
 
Hey guys I am really beginner of c++. My teacher ask me to write a function to remove node from double linked list class, giving by the value which want to be r...
[1 reply] : does that class definition even compile, considering there are 2 defin... (by blueberry)
Finding frequencies of all elements of an array
 
hello guys..i am trying this code for Finding frequencies of all elements of an array but its not working..help me { int no_ele; cin>>no_ele; ...
[1 reply] : { int no_ele; cin>>no_ele; cout<<no_ele; float ele_array ... (by blueberry)
Little gem from troll thread
 
Hello, I found this code in an old 2010 C++ bashing thread. I would appreciate an explanation as to why exactly it prints what it does. Thank you. #include...
[3 replies] Last: > it has to do with A not having an explicit virtual destructor? Yes... (by JLBorges)
Help with a linked list.
 
Hi, I'm doing a linked list for a waiting list that is sorted by bribes (If student A pays 5 dollars and student B pays 6 dollars, student B will be in front o...
[no replies]
Asia Pacific Informatics Olympiad - Time Complexity
 
Hey! I'm posting my solution to the first problem in the APIO - 2012 (http://d1yjytat4ps3ku.cloudfront.net/final-AeF9DxEp/apio2012-official.pdf) Please te...
[1 reply] : please indent, use code tags, and can you tell us what it does? your l... (by blueberry)
Finding maximun and minimum element in an array
 
I am trying this code..bt it is giving garbage value as maximum element of an array.can anybody help me plzz { int no_ele; cin>>no_ele; cout<<...
[2 replies] Last: Thanks...its working...:-) (by bush123)
Call child method from superclass
 
Hi, I want call the method "getImage" of child class from the superclass. Example: ## SplashScene.cpp void SplashScene::init() { cout << std::string im...
[6 replies] Last: > The init method need be called from child class: > Instead of call s... (by JLBorges)
PLEASE give me some algorithmic idea about peg games.
 
recently i have problems about peg games and i've already submitted a source on poj.org (pku 2805 -> and there is the problem 'pegs') I used back tracking st...
[3 replies] Last: That is part of being a programmer. You have to learn to make your own... (by BHX)
by viliml
The origin of foo
 
I've seen and heard a LOT of examples that use "foo" as a name of a class, a function, variable, basicly anything that is used just for an example. My question ...
[4 replies] Last: FUBAR stuck, though I would like to see more SNAFU, SUSFU, and TARFU u... (by shacktar)
Unknown error
 
I'm not certain where the error is at the moment so I'll just post one at a time where I suspect the problem/s lie. First the deepest part of the debugger type...
[8 replies] Last: Inlining it worked, had to think for a bit because I couldn't remember... (by awsdert)
Putting current input infront of output!?
 
Because i have two threads, and one outputs stuff, and the other lets you input stuff, whenever the first thread outputs something, its sends the current input ...
[2 replies] Last: Ok, ill try -.- Thread 1 is the thread that randomly sends out message... (by killerloader)
Moving the bullet along with the ship in Galaxians Game
 
Hello, I am making a galaxian game in sdl . (For quick watch of galaxians who doesn't know it http://www.1980-games.com/us/old-games/java-games/galaxian.php ...
[5 replies] Last: Set the bullet position using SetX and SetY to the ship position (plus... (by MrHutch)
trying to make count down clock in game
 
currently make a game and i need a clock timer to count down once it reaches zero game over screen appears etc etc anyway i got what i think should work but it ...
[4 replies] Last: yep was a rushed questions, my bad and thanks for this it works a char... (by programmeraie125)
Error initializing static member
 
Hi I try use a static object that is a member of a class, but get error: Undefined symbols for architecture armv6: "GameObjects::splashManager", ref...
[5 replies] Last: JLBorges, you are correct. XCode doesnt compile the code. Now its OK,... (by prchakal)
Helppp..!In this please
 
#include<iostream> using namespace std; template<class myType> class myArray{ public: myType *array; int num; myArray(int...
[no replies]
May 2012 Pages: 1... 2223242526... 41
  Archived months: [apr2012] [jun2012]

This is an archived page. To post a new message, go to the current page.