Thread: Kepes on saying something wrong with friggen tutorial lessons PLEASE HELP

  1. #1
    Registered User smokeybear's Avatar
    Join Date
    Jun 2002
    Posts
    31

    Kepes on saying something wrong with friggen tutorial lessons PLEASE HELP

    Ok for starters I have Visual C++ Standard Edtion 6.0 I have a book also that teaches you and it keeps on telling me this is wrong I already broke my good keyboard because of this its driving me crazy.

    The 2 errors I have supposdley...
    --------------------Configuration: Fantasy Nights - Win32 Debug--------------------
    Compiling...
    fantasynights.cpp
    C:\Fantasy-Nights\fantasynights.cpp(8) : error C2146: syntax error : missing ';' before identifier 'cout'
    C:\Fantasy-Nights\fantasynights.cpp(8) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.

    fantasynights.obj - 2 error(s), 0 warning(s)
    Yet when I do what it says this happens...
    --------------------Configuration: Fantasy Nights - Win32 Debug--------------------
    Compiling...
    fantasynights.cpp
    C:\Fantasy-Nights\fantasynights.cpp(8) : error C2143: syntax error : missing ';' before '<<'
    C:\Fantasy-Nights\fantasynights.cpp(8) : error C2501: 'cout' : missing storage-class or type specifiers
    C:\Fantasy-Nights\fantasynights.cpp(8) : error C2143: syntax error : missing ';' before '<<'
    C:\Fantasy-Nights\fantasynights.cpp(9) : error C2143: syntax error : missing ';' before 'return'
    C:\Fantasy-Nights\fantasynights.cpp(10) : error C2143: syntax error : missing ';' before '}'
    C:\Fantasy-Nights\fantasynights.cpp(10) : error C2143: syntax error : missing ';' before '}'
    C:\Fantasy-Nights\fantasynights.cpp(10) : error C2143: syntax error : missing ';' before '}'
    Error executing cl.exe.

    fantasynights.obj - 7 error(s), 0 warning(s)

    If you can help thanks much..
    -Compiler
    --Dev-C++
    -Projects
    --Adventures of Lakod(0%)
    -----------------------------------------
    Site - www.cplusprogsm.cjb.net
    Forums - http://pub92.ezboard.com/faeiforumsfrm1

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Let me try my crystal ball.....hmm.....

    #include <iostream.h>

    ??

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Post your relevant code and we'll be able to help better.

    -Prelude
    My best code is written with the delete key.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    108
    Did you forget to put a closing qoutation mark on a string on or before line 8 ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  2. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  3. File IO - Tutorial is wrong?
    By NetPsycho in forum C++ Programming
    Replies: 6
    Last Post: 06-02-2003, 11:20 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM