Beginners - March 2015 (Page 30)

OOP Game - updating list of object while in an objects update function
 
Im quite new to oop and having trouble with creating new objects inside of others. In my game, I require a bullet to be created in the players update function. ...
[6 replies] Last: I didnt know about smart pointers but i just read some documentation o... (by closed account 96AX92yv)
how to read array from a file
 
If I have an array for example A and i need to read n values from a file like if n=11: File input to be like: 11 1 2 3 4 5 6 7 8 9 10 11. how do you do i...
[6 replies] Last: @rafae11, X = ? (by anup30)
Question!
 
How do you convert lower case letters to upper case and vice versa? in a string. example; Type a string: final ExaM is appRoaCHing Reversed case: FINAL eX...
[6 replies] Last: What does ? mean? in line 12 conditional operator: http://www.cplus... (by anup30)
Help needed for converting python code to c++
 
I need some help converting this python code into c++... The missing type declaration disturbs me a lot.. so it would help me a lot if someone could help me he...
[no replies]
File search with loop
 
Hello. Can someone help me with my program? I can find the number I want to search in my file, but it will only work on the first loop. Otherwise, its gonna kee...
[3 replies] Last: Ahhhhhh... thanks guys! (by rremigoso4310)
by abc456
Can someone explain this to me?
 
In class we have a prompt to write a code for a bank account. http://www.cs.indiana.edu/classes/a290-gamebryo/examples/ch09.pdf <- this link goes through it in ...
[5 replies] Last: If you're still having problems, post your whole code. I also think LB... (by tipaye)
Countdown help
 
Hello, I'm completely new to C++ and need some guidance on a script that will generate a 5 minute countdown at certain times of the day. I'm not after som...
[no replies]
Nested loop in War game
 
I'm trying to get the game to loop and play again, while also having a loop inside that one to validate the users input when it asks them if they want to play a...
[1 reply] : if (keepPlaying != 'y' || keepPlaying != 'Y' || keepPlaying != 'n' ||... (by expor)
Put the code you need help with here.
 
can you help me? Write a program that will perform integer addition in any radix from 2 to 20. Use the standard Hindu-Arabic numerals 0–9 and, if needed, the ...
[no replies]
by bjp564
Quick Question for C++ Homework Please Help :)
 
Hello! I apologize if I'm breaking any unspoken or spoken forum rules. I'm completely new to C++ and the forum scene in general. I would appreciate any assistan...
[7 replies] Last: So, 2*row and number of spaces go hand in hand? Thus, if your code ... (by keskiverto)
Help
 
assignment of mine. need help in line 26. i dont know what to do with it how do you convert a string to lower case and upper case and vice versa? main functiong...
[1 reply] : check if the letter is uppercase with isupper and if it is convert it ... (by Yanson)
(for loop) Need help figure out how to do this another way
 
Hello guy, I was wondering what is another way to print integer while using "ONE" for loop, BUT without if and conditional operator. I can't figure it out the l...
[8 replies] Last: ah k I'll take a look into this and test it out. (by inexpressive)
by jgill
Multiplying Matrcies
 
I need to make two matrices and then multiply them and output. I can input fine but somewhere in the multiplication process it makes the program crash. I don'...
[1 reply] : new will never return null/ nullptr - if it fails to allocate memor... (by LB)
by sofi
Trouble with default constructor
 
Hello, I am using c9.io to run my program and I am having trouble with the default constructor. I am trying to do the following: in he default constructor, init...
[3 replies] Last: Thank you Ganado. This helped :) (by sofi)
EOF
 
Can someone please explain or help me with Repetition using an End of File condition? This is for my lab homework and I need to do EOF on a input file and I a...
[2 replies] Last: What, something like this? http://www.cplusplus.com/forum/general/5066... (by Albatross)
by SCB3
Need help making a minesweeper game
 
so, I'm trying to make a 3 level minesweeper game for a University project, having a bit of trouble actually getting it to display a grid, all I get is numbers ...
[2 replies] Last: THANK YOU, this helped alot, although now I have the columns labelled ... (by SCB3)
Array Search Function
 
So I am supposed to loop through my array and be able to find a certain "name" that the user inputs. I think I am having problems with looping my array, and i a...
[1 reply] : How do you know it doesn't work if you don't even tell the user what h... (by LB)
using file data
 
I'm trying to add file data together for example a file has 1.. 2 3.. 4 5.. 6 7.. 8 9.. 10 and I'm trying to add the ...
[5 replies] Last: i got no clue how to add the value together a+b? [codex = y + z; //... (by keskiverto)
by avade
Stuck with the code
 
Hi, I have this problem with my program where when I execute it, the program does not fully run. My intro and catCalculate functions work fine but after addGrad...
[3 replies] Last: I thought in.clear() would eliminate the in failed state? It won't,... (by tipaye)
by Ganado
Concatenate empty vector with two other vectors
 
I am trying to concatenate two std::vectors together. I'm using http://stackoverflow.com/a/201729 as a basis for my code. Foo operator+(const Foo& lhs, con...
[3 replies] Last: Ah right... you just copy construct it and then insert the right-hand ... (by Ganado)
March 2015 Pages: 1... 2829303132... 51
  Archived months: [feb2015] [apr2015]

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