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

C++ Program to Comapre Files

i just started learning c++. i have a code that prints the program itself. i need to modify that program to read in two different text files. text files should have 9 separate integers. then store in two separate arrays, add arrays and store in third array. and for the whole task "main" function is only allowed to declair array, call function and receive user inputs.
Jan 19 '08 #1
2 1468
sicarie
4,677 Expert Mod 4TB
Sounds like an interesting project, what have you done so far?
Jan 19 '08 #2
Sounds like an interesting project, what have you done so far?
i just tried to understand the task what i really need to do. i dont really have much idea of c++. just started. i think program should allow user to input name of two files and at least 9 integers for each. program will write this integers on those two files. now you have to read and add the corresponding integers from those two files and store your result in a third text file. you have to store integers using two arrays.
so finally you will have three text files
1.text file containing at least 9 integers
2.another text file containing same number of integers as first text file.
3.text file containing summations of every corresponding integers.

let me know if i am thinking it in the right way... i need to finish this project by tomorrow afternoon. so if anybody have idea, can you reply me please ASAP. i will appriciate that if you can help me out. thanks
Jan 21 '08 #3

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

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
4
by: muser | last post by:
Can anyone run this program through their compiler or if they can see a logical error please point it out. I have my tutor working on it at the moment but I would rather a less ambigious response...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
4
by: I_AM_DON_AND_YOU? | last post by:
Hi Cor: You have given a very good suggestion that I can directly reference the "Program Files" Folder. Actually my vb.net program reads/write a notepad file record.txt. For example, the name...
1
by: sunnyhanda | last post by:
Write a program that will generate, but not display, a three-digit "target" number that has three distinct digits. Then, inputs a maximum of eight user guesses and, for each guess, outputs the number...
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
9
by: C#_Help_needed | last post by:
I need help with the following question. THANKS :) Write a program in c# that takes in a directory as a command line parameter, and returns the longest repeated phrase in ALL text files in that...
6
by: vijayarl | last post by:
hi all, i am reading the content of the directory & then putting if condition to comapre the file name. problem is: filename ends with number. eg :prstat-Lvs-20080118-2100 the first part...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...

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.