Search:

Type: Posts; User: Matsuya

Search: Search took 0.01 seconds.

  1. Thread: Tic Tac Toe

    by Matsuya
    Replies
    3
    Views
    1,155

    Tic Tac Toe

    The assignment is to make a two player tic-tac-toe game. Here's what I have so far:




    char board[9] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'}, choice;
    int index=0, player = 1,...
  2. Thread: Help

    by Matsuya
    Replies
    9
    Views
    1,065

    Never mind, I've figured it out. Thank you.

    Never mind, I've figured it out. Thank you.
  3. Thread: Help

    by Matsuya
    Replies
    9
    Views
    1,065

    It's to stop it at the end of the line so I can...

    It's to stop it at the end of the line so I can insert the average before going on to the next student.
  4. Thread: Help

    by Matsuya
    Replies
    9
    Views
    1,065

    Is there a way to make it go back to the...

    Is there a way to make it go back to the beginning of the file?
  5. Thread: Help

    by Matsuya
    Replies
    9
    Views
    1,065

    It's averaging the next students scores, but I...

    It's averaging the next students scores, but I don't know how to fix that.
  6. Thread: Help

    by Matsuya
    Replies
    9
    Views
    1,065

    So the average function picks up where the grades...

    So the average function picks up where the grades function left off?
  7. Thread: Help

    by Matsuya
    Replies
    9
    Views
    1,065

    Help

    #include <iostream>
    #include <fstream>
    #include <cstdlib>
    #include <cctype>

    using namespace std;

    void grades (ifstream& in, ofstream& out);
    double avg (ifstream& in, ofstream& out);
  8. I have it set to stop at the new line because if...

    I have it set to stop at the new line because if i have it stop at the end of the file, the out put file gets filled with a bunch of weird characters.
  9. Having trouble with getting input from files.

    I have to take input from a file that has a list of students and there scores like.

    The file looks like this:
    Lake Mat 1 2 43 4 5 6 7 8 9 20
    ...
  10. Thread: Help

    by Matsuya
    Replies
    2
    Views
    828

    Help

    I've written my code for my homework, but when I execute it, rather than displaying the content of the file, it gets erased.

    I can't figure out what I'm doing wrong.

    Here's what I've written.
Results 1 to 10 of 10