I tried to compiler this in Dev-C++ v5.0 but it won't work. Help please

This is a discussion on I tried to compiler this in Dev-C++ v5.0 but it won't work. Help please within the C++ Programming forums, part of the General Programming Boards category; There Code: #include <iostream.h> #include <stdlib.h> int main() { cout<<"Welcome to Tic-Tac-Toe\n"; cout<<"What do you wish to do?\n"; cout<<"1.New Game\n"; ...

  1. #16
    Registered User
    Join Date
    Aug 2002
    Posts
    67
    There
    Code:
    #include <iostream.h>
    #include <stdlib.h>
    int main()
    {
    cout<<"Welcome to Tic-Tac-Toe\n";
    cout<<"What do you wish to do?\n";
    cout<<"1.New Game\n";
    cout<<"2.Options\n";
    cout<<"3.Quit\n";
    int mainmenunumber;
    int difficulty;
    cin>>mainmenunumber;
    if (mainmenunumber==2)
    {
    system("CLS");
    cout<<"Welcome to the Options Menu\n";
    cout<<"1.Difficulty\n";
    cout<<"2.Back\n";
    int optionsmenu;
    cin>>optionsmenu;
    if (optionsmenu==1)
    {
    system("CLS");
    cout<<"What difficulty lvl do you want?";
    }
    }
    system("PAUSE");
    return 0;
    }
    Does that look right? I am not getting any errors but as Dev-C++ is in Beta stages it won't run.

  2. #17
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    What's the problem?

  3. #18
    Registered User
    Join Date
    Aug 2002
    Posts
    67

    Thumbs up

    Nothing now...Thanks for your help people

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weird compiler (Dev)
    By gavra in forum C Programming
    Replies: 11
    Last Post: 08-03-2008, 01:19 AM
  2. Internal Compiler Error
    By Elysia in forum C++ Programming
    Replies: 20
    Last Post: 07-05-2008, 03:59 AM
  3. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 12:05 AM
  4. Replies: 3
    Last Post: 02-11-2005, 04:53 AM
  5. why does'nt this work..
    By morone in forum C++ Programming
    Replies: 2
    Last Post: 10-20-2001, 01:07 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21