Thread: What the heck is a "syntax error"...?

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    Thumbs up What the heck is a "syntax error"...?

    For my newly created program using the rand() function in it, on the last 5 or 6 lines of the code where cout << and cin >> are used, my compiler says that there is a "syntax error"

    Here is the part of my code which is causing me problems (and don't ask about the cheapness and dumbness of the way the code is written and what the program outputs to the screen...it's a long story...) I have included the line numbers in the code also.

    code:

    cout << "\nI'm sorry, you do not have a face, you have facial features.\n";
    cout << "Now get lost or keep trying to get a face!\n";

    //Exit
    int move;
    cout << "\nNow that I have wasted your time, you can press any key and then enter to exit\n";
    cin >> move;


    I hope all thing information helps to answer my question...
    Thanks
    -Chris

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Have you included the correct header files? You'll have to be more specific regarding your error messages or post more code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strange "syntax error" problem :S
    By Akkernight in forum C++ Programming
    Replies: 23
    Last Post: 02-23-2009, 04:22 AM
  2. What the heck am I possibly doing wrong?
    By QuestionC in forum Tech Board
    Replies: 2
    Last Post: 04-29-2007, 08:43 PM
  3. how the heck do i ftp?
    By Waldo2k2 in forum Tech Board
    Replies: 9
    Last Post: 03-03-2003, 06:51 AM
  4. Thunderbird, Thoroughbred, Palomino, Morgan - What the heck ?
    By Zeeshan in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-09-2002, 04:34 AM
  5. what the HECK?!?!?!?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-26-2001, 08:12 PM