Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-28-2010, 11:28 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Question problem with input and output on C++ programming.

As i am new to C++ i couldn't figure out how to input a file and make some change on the file and produce a output file. like this problem i have is.

"Program that processes an input file and produces an output file. The input file will contain lines of data, each containing two floating point numbers. The lines of the output file should contain the two numbers read and their average (with a '$' sign and 2 places after the decimal point)."

Thank you for your help in advance.
Old 01-28-2010, 11:51 AM   #2
Senior Member
Registered: Feb 2009
Posts: 1,232

Rep: Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500Reputation: 500
you can find here
all infos that you need for your homework
Old 01-28-2010, 11:55 AM   #3
LQ Newbie
Registered: Jan 2010
Posts: 6
Blog Entries: 1

Original Poster
Rep: Reputation: 0
thankc for the link.


c++, input, output

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
input and output nagavinodh Linux - Newbie 2 09-12-2009 02:17 AM
DD Input/output error Aegreen Linux - Newbie 4 04-16-2009 07:26 AM
bash input/output redirect problem greno Programming 2 12-31-2006 03:23 PM
Input/Output Error lwcangus Linux - Software 0 02-06-2005 08:59 PM
NFS Input/Output error after filesystem mounted problem wahhh Linux - Networking 1 09-06-2004 07:48 PM

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration