newbie help

This is a discussion on newbie help within the C++ Programming forums, part of the General Programming Boards category; hey alright i'm doing the hello world program but I have an errot that says: implicit declaration of function 'int ...

  1. #1
    Unregistered
    Guest

    Smile newbie help

    hey alright i'm doing the hello world program
    but I have an errot that says:
    implicit declaration of function 'int getchar(...)'
    here is my coding:

    #include <iostream.h>
    #include <conio.h>

    int main()
    {
    cout<<"hello world";
    getch();
    return 0;
    }

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    What compiler are you using? If you have a mingw compiler(Dev-C++, etc.), include conio_mingw.h, if you have MSVC++ that should work.

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    If you have a mingw compiler(Dev-C++, etc.), include conio_mingw.h
    That may work, I've never tried it before, but a simpler solution would be to do: #include <conio.c> if you are using DevC++ 4.01 or earlier.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 07:49 PM
  2. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 12:53 PM
  3. Newbie Programmer
    By Extropian in forum C++ Programming
    Replies: 3
    Last Post: 05-18-2004, 02:17 PM
  4. Some help for a newbie?
    By Ilmater in forum C++ Programming
    Replies: 23
    Last Post: 04-19-2004, 08:44 PM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 03:02 PM

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