Wrox Programmer Forums
|
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions 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:04 AM
Authorized User
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error

Why i am getting this error in Visual studio 2010 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 August 25th, 2010, 05:04 AM
Registered User
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation works in VS 2010

works fine in VS 2010, except for ';' instead of ':' after the return line





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.