User Profile

Collapse

Profile Sidebar

Collapse
Gingerbreadman
Gingerbreadman
Last Activity: Aug 9 '21, 12:59 AM
Joined: Aug 7 '21
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Error code expecting ; before string constant.

    the error is in this section of the code, first code I've ever attempted any useful tips to remembering how to avoid or fix this issue would be greatly appreciated
    cout << "==>\aPlaye r "<<--player" win ";
    else;
    cout <<"==>\aGame draw";
    cin.ignore();
    ...
    See more | Go to post

  • Gingerbreadman
    started a topic first code, a simple game of tic-tack-toe
    in C

    first code, a simple game of tic-tack-toe

    First here is the code that I have built


    Code:
     include <iostream>
    
    using namespace std;
    
    
    char square[10] = {'0','1','2','3','4','5','6','7','8','9'};
    
    int checkwin();
    void board();
    
    int main () {
    {
        int player = 1,i,choice;
        char mark;
        do
        {
            board();
            player=(player%2)?1:2;
    ...
    See more | Go to post
    Last edited by Banfa; Aug 31 '21, 10:58 AM. Reason: Added code tags
No activity results to display
Show More
Working...