第一个字符总是被换成了‘0’;这是什么原因啊。
#include "stdafx.h"
#include
using namespace std;
int main()
{
char a[10], b[10], c;
cin.get(a, 1, ';');
cout << int(a[0]);
system("pause");
return 0;
}
第一个字符总是被换成了‘0’;这是什么原因啊。
#include "stdafx.h"
#include
using namespace std;
int main()
{
char a[10], b[10], c;
cin.get(a, 1, ';');
cout << int(a[0]);
system("pause");
return 0;
}