General C++ Programming - January 2013 (Page 7)

Linked List
 
hi all, I have a function that append node to a linked list like this: struct ListNode{ int va...
[5 replies] Last: > the head in main() does not change its address value and it's stil... (by ne555)
Get file name in C++
 
Hello I`m now learning Allegro 5 in C++, and now I`m using "sprite sheets" to make animations. I hav...
[1 reply] : Try the dirent.h include http://stackoverflow.com/questions/612097/ho... (by Smac89)
Generic class Set
 
Can some good human soul write a code for this task,i'll will be very gratefull! Write a generic ...
[5 replies] Last: if you actually tried for a week do as i said and post what you have w... (by K0T4K0t4)
Help with a simple loop that decides if a word needs to be formatted by adding ('s) to it or not
 
Hi everyone, I'm hoping I could get some help pointing me in the right direction. My lab assignme...
[3 replies] Last: Thanks for the tip. I was working on another way of doing it (a more t... (by ovaltine99)
by zukias
Any particular reason why C++ treats array & 'normal' variables differently like this...?
 
Ok so, one thing I have noticed is that when I'm dealing with arrays, and I declare the array (arra...
[4 replies] Last: My best guess is that it was a carryover from C, and it might have be... (by Cubbi)
fresh made tic tac toe !
 
hey guyzzz, just made a tic tac toe... i wanted your opinions on how can i restart it, for the conv...
[1 reply] : Instead of doing this: if(b==1&&square =='1') square ='x'; You c... (by pogrady)
by Stash
Unhandled exception? Need Help!
 
Here is my Code... #include <iostream> #include <iomanip> #include <fstream> using namespac...
[1 reply] : 1. task myTasks ; This value is limited to 100. There is no way of h... (by JockX)
C++ finding max value
 
Hello, i am trying to find the max value from a list of 10 values. here i have stored the double val...
[2 replies] Last: Thank you this worked perfectly (by bob39rocks)
by kibrom
file reading using getline()
 
i encounterd a question like *Create a program that opens a file (the first argument on the...
[1 reply] : int main(int argc, char* argv ) { std::fstream in(argv , std::ios::... (by morando)
how to blit another image onto another
 
Ive got to make this mini game with the whole shabang main menu, quit, help etc. So i need to sta...
[3 replies] Last: Like this: SDL_Surface *background = NULL; SDL_Surface *foreground ... (by Ogoyant)
AVL Insert Algorithm
 
I'm a c++ newbie and now I have a quest to complete: Make an AVL tree that the data is only added. ...
[2 replies] Last: Thank you K0T4K0t4, I'm pretty sure I can do this! I also found this w... (by guerreiro)
by edgars
STRANGE BUG!
 
when I create new project in code blocks anr run default(hello world!) program everything is okay. B...
[1 reply] : I had to change UTF-7 encoding to UTF-8 encoding http://stackoverflow... (by edgars)
functions are a pain ... im lost and out of time
 
We are learning c++ at school for the first time and this is our final progect. A text based RPG It...
[13 replies] Last: //Shelter FUNTION<--------------------------------- int Shelter(int iW... (by IComeIn Peace2)
by vrakas
Dynamic programming bits (1,2)
 
Hello. I am coding a dynamic solution to a problem with buttons. a button can be on or off. there ...
[20 replies] Last: [quote=gtm]" youre getting confused.. a char is not explicitly a byte ... (by closed account zb0S216C)
Linking external libraries in Qt (w/ VS10)
 
So I am having an absolute hell of a time trying to link opencv2.4.3 libraries inside of a Qt GUI pr...
[no replies]
by bleaz
A consise way to get stuff. (1,2,3)
 
I am trying to write a code that asks user for the price of an item and then the state that they wan...
[41 replies] Last: One last thing, add ReRun == "yes" (uncapitalized 'y') to line 98. (by closed account 18hRX9L8)
Symbol
 
Whats the symbol for divide In C++
[10 replies] Last: @Program Programmer Because you have the correct symbol for division,... (by tmihos)
Is c++ broken or is my script?
 
Hey! So I have a function that checks for syntax, if you can't see any variables there, they do exis...
[2 replies] Last: It's not giving an error message. It just tells me the program breaks ... (by Computa)
My program runs out of memory each time i run a for loop?
 
Right. I'm writing a text based RPG in which all of the syntax is not in main, neither is the actual...
[9 replies] Last: That is better. I am so very braindead. Thankyou cire, you've been ver... (by Computa)
how to create a series
 
Hi guys. I want to calculate the 15th term of series a =2, a =a[n-1]+2 my code doesn't work #incl...
[3 replies] Last: #include <iostream> #include <cstdlib> using namespace std; //=======... (by tmihos)
January 2013 Pages: 1... 56789... 36
  Archived months: [dec2012] [feb2013]

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