I'll do that in the future, sorry I was in a hurry. Definitely makes code easier to read.
Thanks for the help guys, it's appreciated. I didn't know that the string had to be terminated like...
Type: Posts; User: Bad_Scooter
I'll do that in the future, sorry I was in a hurry. Definitely makes code easier to read.
Thanks for the help guys, it's appreciated. I didn't know that the string had to be terminated like...
This is what I've got, basically I'm reading in one letter at a time until I reach the end of a word or punctuation, converting to a string and then moving on to the next word.
while (!...
Okay, I've kind of figured out how to take a char array and convert it to a string, but I'm having one problem. I'm using a char array of size 20, but when I convert an array with less than 20...
Thanks, works great. :D
I'm trying to read in a group of numbers one at a time until I reach the end of the line from the input file. Something like this:
999323892...
I thought that it was possible to do something...
Thanks, that's what I'll do, I just thought there may have been an easier way.
How can I read in one number at a time from a string of numbers?
Something like this:
1429943983...
I want to read in the one, then the four, and so on. My first thought was to use get. ...
Vectors would be a lot easier, I agree, but I'm doing a project that doesn't allow them. I'm not familar with the other method you mentioned. I'm going to look around and see what I can find on it,...
I want to have a 2 dimensional array thats size is determined by user input. I want to do something like this: (declaration)
int array [x] [y];
where x and y are input by the user. But how...
Thanks Prelude that works great. :)
Okay so I should know this (and I know I did at one time) but:
I want to print text to the screen like this: (the underlines are spaces, only way I could get the spacing right)
5_____6 _____3...
Appreciate the suggestions, my problem from earlier was that I should have been entering them like this:
cin>>head->ball1;
instead of calling a function to do this:
cin>>ball1;
Dumb...
I am building a program tell score for a game of bowling. I have created a doubly linked list of ten frames. Each frame includes three integers - ball1, ball2, and ball3 for the 10th frame only. ...
Thanks for the quick reply. That helps alot in my understanding, I really didn't have a good example to work through before.:)
I as having some trouble with linked list. What I am basically trying to do is create a doubly linked list with 10 nodes. Each node represents a frame of bowling. Since I am not adding or removing...