Current location: Hot Scripts Forums » Programming Languages » C/C++ » Help my "expression syntax in function main()" problem


Help my "expression syntax in function main()" problem

Reply
  #1 (permalink)  
Old 10-25-10, 06:22 AM
Sleeep Sleeep is offline
New Member
 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Help my "expression syntax in function main()" problem

u can see dos screen at top left
at middle the pdf book example code
at right bottom my codes I cant see difference but there is a problem...

see link : http://img215.imageshack.us/img215/4662/problemwa.jpg

also codes @screenshot , seems line 9 has problem but couldnt solve
Code:
/*
 This program displays "I love C++" to the Standard Output
*/

#include <iostream>

int main ()
{
  std: :cout << "I Love C++";
  return 0;
}

Last edited by Nico; 10-25-10 at 09:47 AM.
Reply With Quote
  #2 (permalink)  
Old 10-25-10, 09:48 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
I'm not an expert in C++, but I'm pretty sure there shouldn't be a space between the colons.

Code:
std::cout << "I Love C++";
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML syntax problem Golith HTML/XHTML/XML 1 08-10-10 02:33 PM
[SOLVED] very basic syntax problem, please help macintosh PHP 2 06-29-08 03:52 PM
Syntax Error Nikas Database 4 05-15-08 10:48 AM
Parsing XML dodotopia PHP 1 02-08-06 03:51 PM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 03:28 AM


All times are GMT -5. The time now is 01:20 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.