473,387 Members | 1,641 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,387 software developers and data experts.

Is there another way to output?

Good day all,

Is there another way to output?
For example, if I am trying to output something, do I always have to put it in this form?

cout<< "output" <<endl;

Are there any other ways?
Sep 29 '07 #1
2 1232
Good day:

1. You can use and 'outfile', so instead of sending the output to the screen (what cout does), it goes to a file on your hard-drive.
2. It seems your new to programming, so in a few weeks you'll reach that section.
3. Let us say you make an interactive program such as a calculator, where someone has to enter two numbers to get the total. You can use 'cls' along with 'printf to print out ONLY the answers to the screen/outfile.
4. I'm new myself...so the pro's may provide additional information.'
Sep 29 '07 #2
sicarie
4,677 Expert Mod 4TB
There are a few different ways, I would recommend Googling 'C++ IO', as in addition to cout, there are other functions that use the standard out as well.
Oct 1 '07 #3

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

Similar topics

2
by: Lord Brett Sinclair | last post by:
Hello everybody I created a windows services with an msi file. I have another small vb.net exe that I would like to install when I install the windows service. I tried to create a merge module...
3
by: abcd | last post by:
How do I run asp page from another asp page I have page1.asp and page2.asp I want to call page2.asp from page1.asp and get some results. any idea
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
1
by: moonriver | last post by:
In a xml file, can we make reference to another xml file so that all contents of the latter xml file will be included into the first xml file? Had better give me an example for details.
1
by: Rick Strahl [MVP] | last post by:
I often have the need to run templates that perform the equivalent of a mail merge as part of the processing for another page. For example, I have an invoice display page in my admin module and...
2
by: KFactor | last post by:
Is it possible to pass form variables to a page on another server using response.redirect? Or is there a secure way of passing sensitive information from one site to another such as a userID? ...
0
by: harsha_forum | last post by:
Hi All, Iam having a proc which has dynamic sql inside that. ex- Use Northwind CREATE PROC TEST(
4
by: Steve Goldman | last post by:
Even asking this question probably demonstrates that I have a fundamental misunderstanding of how values and references work in C#, but here goes: I'd like to assign a reference to an arbitrary...
12
by: Sean Davis | last post by:
I am working on a simple script to read from one database (oracle) and write to another (postgresql). I retrieve the data from oracle in chunks and drop the data to postgresql continuously. The...
2
by: jmr | last post by:
Hi All, I've found a post in google group about this problem but unfortunately, there was no answer. Sorry to ask again but maybe the initial poster has a fix now. The problem we have with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...

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.