473,405 Members | 2,445 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,405 software developers and data experts.

How do you get up one line on a compiled and run C++ Program?

note: blinking cursor is indicated by an underscore.

for example:
Expand|Select|Wrap|Line Numbers
  1.  cout << "hello\n";
  2.  cout << "hi!\n";
  3.  
the result would be:

hello
hi!_

how will i get to this result?

hello
hi!
Mar 13 '11 #1
1 1143
whodgson
542 512MB
add to your code the following:
Expand|Select|Wrap|Line Numbers
  1. cin.get();
  2. return 0;
Mar 14 '11 #2

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

Similar topics

5
by: Simon Harvey | last post by:
Hi, I have a simple .exe application that I need to invoke from my C# application. I need to send it two strings and then get the result back. Can anyone advise me on how this is done? ...
16
by: Puneet | last post by:
Hi ALL, I have a silly question... (may be) Can we write a single line C program whose output is the program itself? Is anybody know the answer please tell me. Puneet
3
by: Double Echo | last post by:
Hi all, I'm using PHP 4.4.2, and use PHP on both the command-line and the web. I am running PHP on SuSE 10 Linux , in a VMware 5.5 workstation, using Apache 2.0.55 , on my Dell laptop. ...
3
by: mehmetmutigozel | last post by:
i have a compiled program named m.exe. when i execute it asks me to enter a parameter like "me.dat". the coder didn't manage the argv for this program and i only have the executable. is there a...
1
by: pete | last post by:
I've created a program in VB Express 2005 that imports a 150 megs text file into a MySQL database. The problem is when I run the compiled program outside of the VB Express IDE it takes more than...
1
by: somesh | last post by:
Hi! I am someswara rao working in Darkhorse as SE. I am creating a website. I need some help for calculating no of line in a given word document somesh678@yahoo.co.in k.somesh@gmail.com ...
3
by: newshop | last post by:
Dear Guru, this is about command-line argument program. is it possible to generate excel file with the command line program ? example of the argurment is: C:\test.exe <filename.txt>, which I...
10
by: James Stroud | last post by:
Hello All, I'm looking for a program to do line-drawings in 3d, with output to postscript or svg or pdf, etc. I would like to describe a scene with certain 1-3d elements oriented in 3d space...
0
by: Priyank | last post by:
A usual problem in most of the busy airports is to tackle the air traffic efficiently. For this, the most important factor to tackle is time. The times of all the flights are already decided. But...
0
by: ZikO | last post by:
Hi. I am going to send my copy of message from different group where i did not get answer yet.[VC++ "Hello I have a problem with VC++ EE. Sorry if it's very trivial problem but I honestly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.