标签: c++ input
我想在给定的“cout”语句中的()之间取代用户的输入,代替'_'
cout<<"Warning! you are going to resize, which may result in loss of data are you sure you want to continue: Y/N(_)";
我怎么能这样做?这样做有逃脱序列吗?或者其他任何方式?
答案 0 :(得分:0)
使用此代码片段:
scanf("(%s)",&str)