daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Aug 19th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*scanf 读入空格的写法,10是控制输入字符的最大长度,遇到回车建停止读入*/
  2.         char  str[1024];// vs2015 写成char * str="";后,无法输出,原因不知。后面必须加空字符串,不然会报错
  3.         scanf("%10[^\n]", str);//
  4.         // scanf("%10^[\n]", str);  这中写法是错误的
  5.         printf("%s", str);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top