Thread: include <iostream> appearing red

  1. #1
    Registered User
    Join Date
    Jun 2009

    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.

    #include <iostream>
    using namespace std;
    int main()
      cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
    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
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Portland, OR
    Syntax highlighting.

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

  3. #3
    Registered User
    Join Date
    Jun 2009
    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
    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, 03: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, 05:49 AM
  3. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07: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