5 pts.
 Input String
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
using namespace std;
void main()
{
	char line[33];
	int no;
	cout<<"Enter no";
	cin>>no;
	cout<<"Enter text";
	gets(line);	
}
When i run this code in Visual C++ 2008 using Ctrl + F5 Output comes as: Enter no 3 Enter text Press any key to continue I am unable to input text . After i input no 3 it displays enter text but there is no input field to input text. the program gets over.

Software/Hardware used:
ASKED: June 28, 2009  12:52 PM
UPDATED: June 29, 2009  12:37 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _