i am doing a task where i am inputting ist no of times you want to have input and then i am inputting a full line by the use of getline but sime how i am not able to do that
I believe your problem is you are giving input stream as a parameter where you should give buffer. Try this.
{ char szInput[256]; cin.getline( szInput,256); len = strlen(szInput); cout<