xxf8xx
Supreme Member
- Nov 30, 2009
- 1,322
- 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:
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="]#include <iostream>
#include <fstream>
using namespace std;[/FONT]
[FONT="]int main( int argc, char* argv[] ) {
ifstream infile( argv[1] );
char ch = 0;
while( infile.get( ch ) ) {
cout.put( ch );
}[/FONT]
[FONT="] return 0;
}[/FONT]