Question: Been a while since I programmed. Can someone help me out with this..? Prog 0: Get back into programming Let's make sure everybody's ready to
Been a while since I programmed. Can someone help me out with this..?
Prog 0: Get back into programming Let's make sure everybody's ready to get back into the swing of things by writing a simple program. This will ensure you've got a working development environment for C/C++ and get those coding juices flowing again. When submitting your program, upload ONLY your.cor.cpp file. Do not upload IDE project files, ZIP files or other such business. Your C/C++ program must require a single command line argument, the name of an input file. The input file will be made up of lines with two integer values per line, separated by a single space. Your program's task is to, for each line in the input file your program must output: the line number of the input file (starting with line #1) a single space the sum of the two numbers on that line a new line Example input file Expected output to console 12 7 -4 1 34 56 1 19 2 -3 3 90 Your output must precisely match the instructor's so test carefully against the examples. You can assume I will test with a properly formatted test file and will provide the correct command line argument. This way you can focus your code on its primary functions rather than error detection. Your program should nonetheless compile without warning or error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
