Beginners - October 2012 (Page 69)

Battleship c++ game
 
Just getting back into c++ and am taking a college course where they have us make a simple battleship game using arrays. I just had a couple of questions about ...
[1 reply] : You are creating a board every time. Why not just create the board on... (by pogrady)
Class IDs - ResourceManager
 
Hello everyone, this is Fredbill30, Well I was wondering if there was a way to give every individual class an ID for my ResourceManager class. Well basicly thi...
[15 replies] Last: Ah, thank you Dish! You're the best, I guess I'll just use Polymorphis... (by closed account N36fSL3A)
Bad Data checking in a loop, help?
 
I'll trying to add data checking in the overloaded function >> function below. I need to check that the user is inputing integers. If not I need to tell them ...
[1 reply] : isdigit()? (by TheJJJunk)
calculating
 
Remove
[1 reply] : cout<<"Please enter the____ quiz score <0-110>: "; cin >> quiz__; wh... (by TheJJJunk)
Time card program
 
Hey guys im making a timeclock program i wanted to get some ideas if (choice == 1) { outputfile.open("C:\\Users\\Lucas\\Documents\\LUCAS\\source\\lucd...
[3 replies] Last: Yes you could do this: string filename; string path = "C:/Users/Luca... (by TheJJJunk)
need help: error 'end' undeclared indentifier
 
I am getting the error report "'end' : undeclared identifier" the code looks good to me but I know there is something wrong with it. #include <iostream> us...
[2 replies] Last: lol duh..... (by majorursa)
template function parameter inside template class
 
Sorry for the big code block but it can be compiled. I get this strange error. It seems that it doesn't recognize function template parameter. In instantia...
[3 replies] Last: I get the point now. But, dude! What a strange syntax! C++ syntax cont... (by chameleon)
Change a hardcoded value to user input
 
In my memory scanner program which is a win32 Console Application the value for the initial offset to start scanning is hard-coded what i would like is to make ...
[6 replies] Last: I have and even tried it but not sure where i was messing up later in ... (by whiteone)
dynamic memory newb question
 
Hello everyone :) I want to understand what dynamic memory really is doing and when it should be used. I have read about it on the homepage documentation, but...
[1 reply] : +1 That's exactly what dynamic memory is for. It saddens me to see n... (by closed account zb0S216C)
by ikra
how to separate integer and char
 
Hello all i have a problem to separate integer and char. for example: i walk from (0,0) to 5S 3W 6E 1N 4W 3N 7S S: South W: West E: East N: North i ...
[1 reply] : Why not input it in a string then use the member function: find_first_... (by Aceix)
by kecknj
Calling Void Function
 
Hi, I am writing a program to evaluate test scores from a file. The lesson we're supposed to learn is how to write and call void functions. In this problem, we ...
[2 replies] Last: //Input getline(inData, key); while (inData) { inData >> studentID... (by ne555)
Dynamic Memory World Generation
 
Hello everyone, first time here. I didn't know where the cut off line is between beginners and general so its here. Im in the process of making a sidescroller w...
[2 replies] Last: Ok thanks (by Pickle Gunner)
by Owain
What is csetjmp for?
 
Hello. I was looking though the standard library today, and I came across csetjmp, which I didn't know previously existed. After looking at it, it seems to do w...
[3 replies] Last: setjmp and company are how you would implement an exception-like mecha... (by cire)
by Micaal
Linking Boost Locale under Windows
 
While linking boost locale 1.51 in VC 10.0 I'm getting following errors: http://pastebin.com/VX4xv2pR C runtime : Multi-thread debug DLL Run time check...
[no replies]
Nested While loop?
 
Hello. Can anyone explain me, how nested while loops works ? Are the same things like in "for loop" ? thanks a lot.
[5 replies] Last: For that i asked to you to explaining me these things(where to declar... (by cire)
by MW130
displaying bitmap in sdl-xcode plz help
 
Hi I am trying to display an image saying hello world and i wrote all the right code, and it just displays a black window.. What could be wrong what could i be ...
[5 replies] Last: disch. tysm for replies i solved by specyfying the complete path. I su... (by MW130)
by jc4bs
Having a Problem With Random Variables
 
I have three int variables, A B and C. Both A and B are a randomly selected number between 1 and 3. It is possible for A to equal B. I believe I have them set u...
[2 replies] Last: code duplication is bad. use a do/while instead: do { C = rand... (by Disch)
Program Help
 
I have a program that compiles and runs fine, I am having problems with the output. The program takes a group of words and translates them into pig latin. It sh...
[4 replies] Last: Readability is one important aspect of coding. and this code, while s... (by TheJJJunk)
how could i make this work, and why doesnt it
 
how can i initialize variables stored in anobject array...or whatever you call what im trying to do? this is my goal... Write a program that asks the user...
[8 replies] Last: I DID IT XD thanks everyone...guess i didnt do it all by myself...the... (by devonrevenge)
-interesting- have i over complicated a task is this route gonna work?
 
this is the practice challenge i have been trying to finish... Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10...
[13 replies] Last: I DID IT XD thanks everyone...guess i didnt do it all by myself...the... (by devonrevenge)
October 2012 Pages: 1... 6768697071... 84
  Archived months: [sep2012] [nov2012]

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