Tình hình là nhập xong số và chương trình không cho đệ nhập chuỗi là sao vậy các huynh.hic:cry:
"Đệ ở nhà quơ mới lên".Mong các huynh giúp đỡ...:adore:
"Đệ ở nhà quơ mới lên".Mong các huynh giúp đỡ...:adore:
PHP Code:
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <string>
using namespace std;
void main()
{
int i;
char s[100];
cout<<"nhap so bat ky"<<endl;
cin>>i;
cout<<"nhap 1 chuoi"<<endl;
gets(s);
cout<<s;
getch();
}
Comment