What is isn't doing is reading the last word of a line because there is no space after it.
Type: Posts; User: Djanvk
What is isn't doing is reading the last word of a line because there is no space after it.
How would you go about doing that?
I tried to see if ch == '\0' but that doesnt seem to work.
Ok We are doing the basic I/O problems where you count the words, line and characters in a text file along with some other stuff.
With counting words I have it checking for spaces but it doesn't...
Seems like he wants his homework done for him, that is a basic beginning homework assignment.
I have a little program I wrote that is for organizing sports cards to find what is missing from that set.
Basicall you enter the set numbers you do have, then it outputs the numbers your missing...
Really have you attempted the program at all? If not why do you want to program if you don't enjoy throwing some code together an trying to get it started on your own.
It's a puzzle, try to solve...
Yea there are a bunch of them out there, just do a google search for c++ gui programing.
need to learn how program GUI's with C++. I'm still haven't taken that plunge yet.
Ok I know how to use ifstream and ofstream to save like text files and bring them back in to manipulate them. I guess what I want is to have a save funtion to save like a database type information...
I would like to find information on how to so what most programs do.
Save the information used, so when the program is started again it will load up that information that I had previously input...
I've started the array of array, but I'll have to look into structs.
Thanks
I understand that, but in the program each player is using an array of 7 elements.
I'm just wondering if this is possible, hopefully I can explain what i'm trying to find out.
say I have a game where the 2 players are represented by 2 different arrays, called arPlayer1 and...
I found another solution for my original question that works very well also and could be a help to other newbie programmers like myself. A nice do while loop in the int main() area.
Works great....
so I'm assuming that then if you want out of the program all together you just put a condition to possibly select a exit();
Thanks for the reply.
I have a little program I'm writing and if I have a while loop in a function and I use the break; code to cancel the loop if a condition is met other than the normal while condition is there a way to...
Thats what I figured, but just wanted to make sure I was not moving in the wrong direction.
I'm making a program that will keep score for a game of Darts, 301 and Cricket for myself. If I want to keep score for 2 player how should I look at doing this? Do I need threads or can I do it...
No Kidding, geez you would think that game programmers get a the women. I would think they would want a driver programmer.
But to tell you the truth, you have quite a bit to learn yet.
So I have downloaded wxWidgets and will give that a try, seems that wxSmith on Code::Blocks will work well.
if not I will give GTK a try.
Any pros/cons on either of them?
There is MFC, win32 API, GTK, wxWidgets.
Ok any idea where is the best place to start to learn how to program GUI's for the programs I write?
Thanks.
Also I'm a novice programmer that...
Works perfectly,
Thanks a lot for the quick reply.
Alright I have these basic lines of code:
cout << "Enter a Number: ";
cin >> number;
cout << "What is your name: ";
cin.getline ( name, 300, '\n' );
My program stops after...
Code::Blocks is a nice IDE, I have been quite happy with it.
I have a program I wrote the will send a group of numbers to a text file and when it does with a large amount of number the all are put on the same line.
I was wondering if there is any code the...