1
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 [...]
Answer Question
| June 29, 2009 12:52 PM
C++, c++ string, Visual C++ 2008
#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 [...]
1





