Hey guys, I have two newbie questions, is it possible to pass an ifstream variable to a function the same way you can pass an integer variable?
I was also wondering when cin.getline is used as follows is it better to use a string or an array?
Thanks in advance for any advice.
Code:char ch[10000]; cout<<"enter something"<<endl; cin.getline(ch, 10000);