Thread: hello guys

  1. #1
    lupi
    Guest

    Unhappy hello guys

    hey guys can you help me with this program....it will be really helpful for this poor gir if you guys help me with this program.




    #include <fstream>
    #include <iostream>
    #include <cstdlib>

    int main()
    {
    using namespace std;
    ifstream in_stream;
    ofstream out_stream;
    cout<<"Enter any question:\n";
    char question;
    cin>>question;
    in_stream.open("answer.dat");
    if (in_stream.fail())
    {
    cout <<"Input file opening failed.\n";
    exit(1);

    }

    out_stream.open("outfile.dat");
    if(out_stream.fail())
    {
    cout << " Output file opening failed.\n";
    exit(1);
    }
    char ch;
    cin>>ch;
    {
    while(ch!='\n')
    out_stream<<("sherpa.dat");
    // else
    // cout<<ch;
    in_stream.get(ch);
    }
    return 0;

    }

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I'm sure I can help but I don't see any problems with the code. You also didn't really ask a question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hey guys, I'm new!
    By MrDoomMaster in forum C++ Programming
    Replies: 15
    Last Post: 10-31-2003, 05:47 PM
  2. How long have you guys been working with C/C++??
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 08-01-2003, 03:41 PM
  3. Tic Tac Toe -- Can you guys rate this please?
    By Estauns in forum Game Programming
    Replies: 2
    Last Post: 09-15-2001, 10:22 AM
  4. hello guys
    By lupi in forum C++ Programming
    Replies: 4
    Last Post: 09-13-2001, 06:42 AM