473,408 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

error before numeric constant location

this is my code in c++ and its very simpile but wont compile

Expand|Select|Wrap|Line Numbers
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8.     cout << "Here is some text \n";
  9.     cout << "Here is a number: ";
  10.     cout <<  10 ;
  11.     cout <<  endl;
  12.  
  13.     cout << "How much is 15 + 17 the answer is:";
  14.     cout 15 + 17;
  15.  
  16.  
  17.     cin.get();
  18.     return 0 ;
  19. }
Jul 9 '13 #1

✓ answered by Banfa

Line 14 should be

Expand|Select|Wrap|Line Numbers
  1.     cout << (15 + 17);
  2.  

1 1363
Banfa
9,065 Expert Mod 8TB
Line 14 should be

Expand|Select|Wrap|Line Numbers
  1.     cout << (15 + 17);
  2.  
Jul 9 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Savas Ates | last post by:
i have 3 columns in sql server .. all of them are numeric value when a user enter my site i take the value of userid (numeric one) i assign it as session("userid ") after a query i take 2...
0
by: Mike Snetzko | last post by:
Hi All -- I have a website on an IIS 6.0 server and I am trying to update the settings via asp page and vbscript. Below is the code that is supposed to retrieve the Metapath, and it does,...
2
by: universalbitmapper | last post by:
Hi, I'm a newbie learning PHP APACHE MySQL from a manual. I've reached the errors processing chapter, they made me type a nice "error.php" file which handles errors 400, 403, 500, except they...
17
by: ApexData | last post by:
Hello Split DB (FE & BE) Linked. FE compiled to MDE. For security reasons, I have hidden the BackEnd. However, If the network is down or the FE can't find the Backend, then an Access Error...
0
by: Luqman | last post by:
I have created a Web Project in VS.Net 2005, and its running fine on my Laptop, when I copied the entire folder to my Desktop PC and run the Application, following errors occured, any idea please ?...
3
by: ollii | last post by:
im creating a iterrative server and i get this error error: syntax error before numeric constant and this errors occurs near this line: int listen(sock,5); need help
1
by: Allen | last post by:
In my app, there is a namespace definition. .... namespace CMD { ... const int YT_UP = 1; // line 149 ... }; g++ tells expected unqualified-id before numeric constant error at
2
by: dissectcode | last post by:
If I have a function funct( uint32 x ) { stuff } and call it:
2
by: tvnaidu | last post by:
I am getting this error for line 108, I kept C code also below, any idea?. main.c:108: underscore in number main.c:108: syntax error before numeric constant 104: #define...
3
by: lingjun | last post by:
Hi, I am taking my first programing course in college... and I am completely lost on this assignment. I am not sure what is wrong with my current code. Any help will be appreciate it... thanks! ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.