Bloodshed (compiler) Error

This is a discussion on Bloodshed (compiler) Error within the C++ Programming forums, part of the General Programming Boards category; I just started and I'm using Bloodshed Compiler, and when I try to compile this code - PHP Code: #include <iostream.h> ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    1

    Bloodshed (compiler) Error

    I just started and I'm using Bloodshed Compiler, and when I try to compile this code -
    PHP Code:
    #include <iostream.h>
    int main()
    {
        
    cout<<"Hello";
        
    cing.get();
        return 
    0;

    Another code window appears highlightig this -
    PHP Code:
    #include "backward_warning.h" 

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Never heard of that header file, but since you're using the old standard it may be caused by that. Include <iostream> instead of <iostream.h>, then use std:: notation (like std::cout). Are you aware that you typed cing instead of cin?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970

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, 10:15 PM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 06:45 AM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM

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