Thread: cont' undeclared

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    6

    cont' undeclared

    Hi,

    I'm using Dev C++. I'm also new to programming and I was going through the tutorials and I'm having a problem compiling this code:

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
        cont<<"Hey, you, I'm alive! Oh, and Hello World!\n;
        cin.get();
    }
    I get this message: `cont' undeclared (first use this function)
    What should I do

    Thanks in advance

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Try spelling it 'cout'
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6
    It didn't work

  4. #4
    Registered User
    Join Date
    Jun 2005
    Posts
    6
    I tryed it again and I get this message: missing terminating " character
    What should I do?

  5. #5
    Registered User
    Join Date
    Jun 2005
    Posts
    6
    I'm sorry I fixed the problem

    Thanks for your help

  6. #6
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    and just to clear it up why its cout and cin:
    cout = c out; because it outputs to the screen
    cin = c in; because it takes input from the user

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. Why wont my function exit correctly?
    By LightsOut06 in forum C Programming
    Replies: 2
    Last Post: 10-09-2005, 09:23 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM