http://www.cygwin.com/
Type: Posts; User: Asbestos
http://www.cygwin.com/
Use strcmp(), and you don't need the curly things for only one statement.
Example:
if( strcmp(bleh, blah))
cout << "oh my word";
else
cout << "more word action";
EDIT: Added code...
Try running it from a console. IE, cd dir-name; ./prog-name
This is all in the FAQ that Richie T posted.
Using a debugger as swoopy previously stated.
It uses a space as the delimiter instead of the newline character.
Ah, sorry, I just re-wrote this twice to try and make it coherent.
I just want to see if 'a' and 'z' were used when calling the program, and I was wondering if I could search for two separate...
I have a command line structure, and I was wondering how I could compare a char array for two separate characters.
So, basically:
if ( argv[x] == 'A' && argv[x] == 'Z' )
do_something(argv[x],...
Ah, ok, I was wondering about all those pointers and the scope of them in random.
Regaurding the getline-removing-newline-char, what alternative would I use, or how would I use getline to keep the...
I made this little program that prints out a random line from a file, but whenever I run it (under Windows) the CPU jumps to 100% and it takes up a lot of RAM, and then it ends without outputting...
Do you really need the '\0'? I thought the compiler automatically inserted the null terminator to the end of string literals.
Ah hah, thanks guys.
I'll start working on it now.
I hate to badger, but how would I go about entering each string into an array?
Bajanine: Probably... I put a lot of headers, I must have had a plan for it. Too bad I can't think of what it is now.
I have some of the code written down already, but I just don't know how I am going to display one line. I know how to use rand srand, and open a file, but I don't know how to cout just one line.
I...
Aw, sweet memories?
Yeah, the first time I blew up the wooden walkway and saw the soldier fall into the water, and then float there, my jaw dropped.
Ventrilo all the way!
Nah, I know tons of people who say it was...
I'll look into the stringstream way. Thanks for all your help.
Yeah I've played it. I don't play CS for the realism aspect. I play it because it's fun. AA looks a lot realer because it uses the Unreal 2 engine, where as CS uses the HL1 engine. HL2 is amazing,...
CS > all
I'm talking about 1.6 . I like Source, but I prefer 1.6 . I also love Halo (1). I wasn't too fond of the second. I thought it was a huge step backwards in terms of SP. The MP was good. It...
You mean, like a prompt everytime they want to add a new number?
Oh alright. Thanks.
I've been going to PurePwnage for some time now, and I love it. FPS Doug is halarious. I also love the uber-micro.
I'm just trying to make this simple little thing that will decode ASCII into readable characters. The only problem is, the code I've got so far voids everything after a space. IE '39 20', meaning 20...
Oh, ......... Thanks for that, damn dumb mistake, but how would I actual fix those major problems? I'm throw ball after ball when I try solutions...
I'm writing a program that deletes a file specified by the user, and one specified in a data file (nothing fancy, just a text file with the .dat extension). The problems I'm having is that it crashes...
Please try to use the edit button. I'm glad you can learn some OpenGL, but the edit button is a savior.