Need Some C++ Help

xxf8xx

Supreme Member
Joined
Nov 30, 2009
Messages
1,322
Reaction score
576
Hey guys I am trying to make a program in c++ that prints out all string literals and I cannot figure it out for the life of me. Without flat out giving me the answer can some one maybe help me through this?

Add me on MSN if you can walk me through it as it would be easier there :)

My MSN is [email protected]

Here is the code I have to start with:

Code:
    [FONT=&quot]#include <iostream>
#include <fstream>
using namespace std;[/FONT]
  [FONT=&quot]int main( int argc, char* argv[] ) {
    ifstream infile( argv[1] );
    char ch = 0;
    while( infile.get( ch ) ) {
        cout.put( ch );
    }[/FONT]
  [FONT=&quot]    return 0;
}[/FONT]
 
Back
Top