0

Hi friends, I'm having problems to use 2 consecutive "cin.get()".
The second get() is not been accessed. But if debug I can answer the name of second file.

Can you help me?

Cheers,

Sads

cout << "\nEnter the name of the first FILE : " << endl;
    cin.get (FileName1,256);
    cout << "\nEnter the name of the second file: " << endl;
    cin.get (FileName2,256); 

    cout << "\nEnter the number of the parameters: " << endl;
    cin >> parameters;
2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by sadsdw
0

Hi David,

I tried that but not function. I did:
cin >> filename after the first cin.get() and now is ok. But I can't agree with this problem.

Thanks again friend!

Cheers

0

Hi David,

I tried that but not function. I did:
cin >> filename after the first cin.get() and now is ok. But I can't agree with this problem.

Thanks again friend!

Cheers

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.