可能重复: 从带有空格字符的输入中读取字符串?
我在将字符串(技术字符数组)作为输入时遇到问题.假设我有以下声明:
char* s;
我必须使用这个char指针输入一个字符串,直到我点击"输入",请帮忙!Thanx提前.
c c++ string input
c ×1
c++ ×1
input ×1
string ×1