I was going to but had problems using getline with string. That and I don't have much experience messing with c-style strings, so I decided to use them instead to become more familiar with them.
Type: Posts; User: Rubiks14
I was going to but had problems using getline with string. That and I don't have much experience messing with c-style strings, so I decided to use them instead to become more familiar with them.
Ah I had forgot to make the temporary name variable dynamically allocated and then send it over. Thank you very much.
As the title states, I'm having problems deleting a dynamic character array. I run the program and it runs fine until I delete the character array that holds the player's name.
It gives me an...
So I've been messing with polymorphism and inheritance a lot recently. I have been reading everywhere and looking through code of some RPGs and realizing how beneficial it is for RPGs. I have been...
might sound dumb but what exactly does index represent?
EDIT: nevermind i figured it out...i have no idea why i didn't think of that before though...i probly need to take a break
I have a vector that is made up of structures. I'm wondering how to read the data from each structure that is stored in the vector. Thanks for any help in advance.
Thanks, Rubiks14
just one. but in an AND statement both have to be
good way of puttin it slymaelstrom...and they say violence doesn't solve anything :p.
slymaelstrom it works but i thought && was AND and that || was OR. so i am sorta confused here. :P
ok i can't seem to figure out what is goin on here. i'm using or in my while statement and an if statement further down and no matter what i type in i can't get the while statement to leave. even if...
gotcha...that actually works out better since u can't create text files inside a project
of course...i forgot u could do that with text files
i'm wonderin how to set up visual C++ to where i can add .c files to projects instead of only being able to add .cpp
thanks Rubiks14
will consider that but in the mean time i'm gonna try to stick with the book as much as i can so i don't get lost :D
thanks ChaosEngine that is what i was thinking after reading what it said...also thanks for the bit of code to fix it.
now there is a problem with my erase member function which i think it the...
alright so i'm making this program for an exercise in Beginning C++ Game Programming and i run it because i think it's all fine and it turns out it's not :rolleyes: it pops up an error that says...
duh, i should have known that...and i should have looked more closely at it b4 posting...thanx though :p
alright i made just a simple little math game using a lot of the i've learned from the first 3 chapters of "Beginning C++ Game Programming" and it works fine the first time through the loop but when...
thanx i'll look into that
thanx guys...i figured out what i'm gonna do...i'm gonna finish my book and on the way do things like willc0de4food said...then once i become proficient in C++ i'm gonna move onto sdl (because it...
that is the thing...i don't really know it all that well...i have "Beginning C++ Game Programming" and i've read like through chap. 3 i just need something that will keep me focused
anybody got ideas on how to make console apps not seem so boring...i want to learn to program and i can understand almost everything i've tried to learn it's just that i get so bored with console...
thank you, that solved the problem of the error but sadly there still is one. no matter what i type in it says "Ok, i guess you don't suck that bad" :(
EDIT: sry didn't add the x in the if...
i tried something almost like that and i kept getting an error when i ran my code but now for some retarded reason it works :D . thanks for the response
EDIT: wait nevermind i know what it is, it...
ok i bought beginning C++ game programming about a week ago and i've read the first 2 chapters and i get everything exept this one exercise where your supposed to take the "Menu Chooser" program (a...
thank you. i used string and got it working