Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2008 by Ivor Horton; ISBN: 9780470225905
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2010, 01:02 AM
Authorized User
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error

Hi, Please let me know why i am getting this error thanks

Error 1 IntelliSense: expected a declaration e:\visual c++ 2010\ex2_02.cpp 1 10 Ex2_02
Error 2 IntelliSense: identifier "cout" is undefined e:\visual c++ 2010\ex2_02.cpp 11 2 Ex2_02
Error 3 IntelliSense: expected a ';' e:\visual c++ 2010\ex2_02.cpp 14 10 Ex2_02
Error 4 error C2143: syntax error : missing ';' before ':' e:\visual c++ 2010\ex2_02.cpp 14 1 Ex2_02
Error 5 error C2143: syntax error : missing ';' before ':' e:\visual c++ 2010\ex2_02.cpp 14 1 Ex2_02



// Ex2_02.cpp
// Exercising Output
#include <iostream>

using std::cout;
using std::endl;

int main ()
{
int num1 = 1234, num2 = 5678;
cout << endl;
cout << num1 << num2;
cout << endl;
return 0:
}
 
Old May 25th, 2010, 08:16 AM
Authorized User
 
Join Date: Feb 2010
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The colon after "return 0" should be a semicolon.





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP error 500: Internal Server Error in Load Testing sherin Visual Studio 2008 0 May 19th, 2010 09:02 AM
Getting error XML Parsing Error: junk after document element anarleti XSLT 10 March 17th, 2010 08:43 AM
Remote Connection Error: Named Pipes Provider error hbansal ASP.NET 2.0 Basics 5 April 12th, 2009 09:51 AM
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.