1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need Some C++ Help

Discussion in 'BlackHat Lounge' started by xxf8xx, Feb 5, 2010.

  1. xxf8xx

    xxf8xx Supreme Member

    Nov 30, 2009
    Likes Received:
    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:

        [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=&quot]    return 0;