include <iostream> appearing red

This is a discussion on include <iostream> appearing red within the C++ Programming forums, part of the General Programming Boards category; Hi, i'm very new to programming and i was following along with the tutorial on this site, and i was ...

  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    include <iostream> appearing red

    Hi, i'm very new to programming and i was following along with the tutorial on this site, and i was trying to compile and run this code.

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
      cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
      cin.get();
    }
    the <iostream>, as well as the parts in "quotes" appears red. what does it appearing in red mean?

    i'm using Visual Studio atm. And i've been looking around but i can't find any info about it.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,270
    Syntax highlighting.

    Our conditioning leads us to assume that anything red is bad.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    4
    thanks for the reply, i figured it was something simple like that-now that i finally got it working

  4. #4
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303
    If you go into the options you can change the colors VS uses to highlight syntax. I think the defaults are fine though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 04:45 AM
  2. Problem while constructing IP packet and sending using socket() system call
    By cavestine in forum Networking/Device Communication
    Replies: 10
    Last Post: 10-15-2007, 06:49 AM
  3. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 08:53 AM
  4. Wierd Segmentation Faults on Global Variable
    By cbranje in forum C Programming
    Replies: 6
    Last Post: 02-19-2005, 12:25 PM
  5. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM

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