Search:

Type: Posts; User: zerodevide

Search: Search took 0.00 seconds.

  1. Thread: life<=0

    by zerodevide
    Replies
    5
    Views
    1,085

    Re: life

    There's a number of issues in your code, but this little windo is a pain for this type of thing, but.....

    In your fightchoice switch, you do a break before the case is done. Experience is never...
  2. Thread: Plz Help!!!

    by zerodevide
    Replies
    10
    Views
    1,231

    use an array

    You're doing a simple substitution cypher - been around for well over a thousand years.

    Create an array with the translation - make it as big as an ascii table. Create a loop to read in the input,...
  3. Thread: File I/O

    by zerodevide
    Replies
    7
    Views
    1,344

    Tried that, but didn't seem to make a difference,...

    Tried that, but didn't seem to make a difference, plus the writting part (since we're writing to the same file were reading from - basic read and update) complains if we don't close the read before...
  4. Thread: File I/O

    by zerodevide
    Replies
    7
    Views
    1,344

    perror returned "no error" - which goes with the...

    perror returned "no error" - which goes with the InArry.is_open() returning a 1 (which means it is open) <sigh>
  5. Thread: File I/O

    by zerodevide
    Replies
    7
    Views
    1,344

    Based on the code: if...

    Based on the code:


    if (InArray.fail())
    {
    cout << endl<<"File could not be opened." <<endl<< endl;


    we get the "File could no be opened." which means InArray.fail() is...
  6. Thread: File I/O

    by zerodevide
    Replies
    7
    Views
    1,344

    File I/O

    Having not done much file i/o, Im working with a student who is trying to read from a file, write to the file, and later be able to re-read the file. We can write as many times as we want, but after...
Results 1 to 6 of 6