473,503 Members | 2,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ code help (Newbie project)

Redmoon
3 New Member
Hello, I am quite new to the forms and hope this question will be nothing but a simple easy question and to be helpful and but of insight to all the newcomers out here. I am new to c++ and see its wonders in alot of very nice programs. I have my source code which isn't much (forgive me I just started today). OS WinXP is what I am using. My C++ program is Dev-C++ 4.9.7.0. And the whole program is Windows application. I feel bad for asking but really want to learn C++.

Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.   cout << "Hello world!!!!." << end1;
  7.   system("PAUSE");    
  8.   return 0;
  9. }
My result was supposed to be a DOS box to open up and say, Hello world!!! ...then... Press any key to continue. Finished. But I have followed my c++ book very well and can't see why the result I wanted produced.
Jul 21 '07 #1
1 1107
Hypnotik
87 New Member
Hello, I am quite new to the forms and hope this question will be nothing but a simple easy question and to be helpful and but of insight to all the newcomers out here. I am new to c++ and see its wonders in alot of very nice programs. I have my source code which isn't much (forgive me I just started today). OS WinXP is what I am using. My C++ program is Dev-C++ 4.9.7.0. And the whole program is Windows application. I feel bad for asking but really want to learn C++.

Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.   cout << "Hello world!!!!." << end1;
  7.   system("PAUSE");    
  8.   return 0;
  9. }
My result was supposed to be a DOS box to open up and say, Hello world!!! ...then... Press any key to continue. Finished. But I have followed my c++ book very well and can't see why the result I wanted produced.
Hey Redmoon. You also need to:

Expand|Select|Wrap|Line Numbers
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5.  
The iostream allows the use of cin and cout statements.

Also:

Expand|Select|Wrap|Line Numbers
  1.  
  2. cout << "Hello world!!!!." << end1;
  3.  
  4.  
should be:

Expand|Select|Wrap|Line Numbers
  1.  
  2. cout<<"Hello world!!!!."<<endl;
  3.  
  4.  
endl with a lowercase L, not a 1.

Hope that helps.

J
Jul 21 '07 #2

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

Similar topics

9
1342
by: Suzie | last post by:
Hi, I've inherited some code from a developer who has moved onto other things. The code makes up a rather simple application: a text editor. The problem is, I'm still a novice programmer and...
2
1576
by: engwar | last post by:
Which starter kit or open source project would you consider well-architected? Or more specifically which has good examples to showing a newbie how to separate presentation/business logic/data...
1
1667
by: netcommander | last post by:
Hi all, Can anyone shed any light on how I generate the XML comment documents from the C# code-behind files in a ASP.NET web project in VS2005? I can't find any properties relating to it if I...
3
1352
by: tomas_nordlander | last post by:
Hi, I and a college are working on 2 projects, one in C# and one in Vb.NET, and would like to connect the projects using VB.NET project as the main GUI and let an search algorithm in C# do the...
8
6714
by: cyberco | last post by:
I'm developing for Windows Mobile 2005 PPC using Visual Studio 2005. I need to invoke methods on a DLL (Iphlpapi.dll) but I can't get this working from C# using p/invoke so I want to write some C...
2
4369
by: lewisms | last post by:
Hello all, I am quite new to c++/. Net so please don't shoot me down for being a newbie. Any way I am trying to make a simple multithreading program that is just to learn the ideas behind it...
12
1694
by: azalea45 | last post by:
Hi all I am a newbie when it comes to access. My company requires that all Databases run on the company SQL back-end as a result i have a Access project that connects to the server. I have two...
5
2135
by: SharkD | last post by:
Hi! I'm a total newbie when it comes to ASP (or any type of server-side programming). I want to start a project that does the following: 1. query Wikipedia for information regarding...
2
1159
by: Peter Webb | last post by:
I want to use the arbitrary precision integer arithmetic package "IntX", from http://codeplex.com/IntX/ This adds a multiprecision class for integers. I cannot see how to add an external class...
8
1598
by: jch | last post by:
Sorry for the newbie question but I'm trying to learn Visual Studio. I've got VS Express 2008 and I'm using visual basic. I'm trying to learn how to deploy a program so I've written a very basic...
0
7204
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,...
1
6998
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
7464
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
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.