Search:

Type: Posts; User: Asbestos

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,211

    http://www.cygwin.com/

    http://www.cygwin.com/
  2. Replies
    12
    Views
    1,678

    Use strcmp(), and you don't need the curly things...

    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...
  3. Replies
    9
    Views
    1,126

    Try running it from a console. IE, cd dir-name;...

    Try running it from a console. IE, cd dir-name; ./prog-name

    This is all in the FAQ that Richie T posted.
  4. Replies
    14
    Views
    4,943

    Using a debugger as swoopy previously stated.

    Using a debugger as swoopy previously stated.
  5. It uses a space as the delimiter instead of the...

    It uses a space as the delimiter instead of the newline character.
  6. Replies
    5
    Views
    5,168

    Ah, sorry, I just re-wrote this twice to try and...

    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...
  7. Replies
    5
    Views
    5,168

    Comparing char array for two strings

    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],...
  8. Replies
    5
    Views
    761

    Ah, ok, I was wondering about all those pointers...

    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...
  9. Replies
    5
    Views
    761

    Program taking up 100% of everything

    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...
  10. Replies
    8
    Views
    1,003

    Do you really need the '\0'? I thought the...

    Do you really need the '\0'? I thought the compiler automatically inserted the null terminator to the end of string literals.
  11. Replies
    6
    Views
    2,668

    Ah hah, thanks guys. I'll start working on it...

    Ah hah, thanks guys.

    I'll start working on it now.
  12. Replies
    6
    Views
    2,668

    I hate to badger, but how would I go about...

    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.
  13. Replies
    6
    Views
    2,668

    Read from file, output random line

    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...
  14. Replies
    50
    Views
    14,284

    Aw, sweet memories?

    Aw, sweet memories?
  15. Replies
    50
    Views
    14,284

    Yeah, the first time I blew up the wooden walkway...

    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...
  16. Thread: Char to Int

    by Asbestos
    Replies
    11
    Views
    1,306

    I'll look into the stringstream way. Thanks for...

    I'll look into the stringstream way. Thanks for all your help.
  17. Replies
    50
    Views
    14,284

    Yeah I've played it. I don't play CS for the...

    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,...
  18. Replies
    50
    Views
    14,284

    CS > all I'm talking about 1.6 . I like...

    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...
  19. Thread: Char to Int

    by Asbestos
    Replies
    11
    Views
    1,306

    You mean, like a prompt everytime they want to...

    You mean, like a prompt everytime they want to add a new number?
  20. Thread: Char to Int

    by Asbestos
    Replies
    11
    Views
    1,306

    Oh alright. Thanks.

    Oh alright. Thanks.
  21. Replies
    50
    Views
    14,284

    I've been going to PurePwnage for some time now,...

    I've been going to PurePwnage for some time now, and I love it. FPS Doug is halarious. I also love the uber-micro.
  22. Thread: Char to Int

    by Asbestos
    Replies
    11
    Views
    1,306

    Char to Int

    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...
  23. Replies
    4
    Views
    1,027

    Oh, ......... Thanks for that, damn dumb mistake,...

    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...
  24. Replies
    4
    Views
    1,027

    Deletion program help

    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...
  25. Replies
    13
    Views
    1,244

    Please try to use the edit button. I'm glad you...

    Please try to use the edit button. I'm glad you can learn some OpenGL, but the edit button is a savior.
Results 1 to 25 of 59
Page 1 of 3 1 2 3