c++ 里scanf怎么用

如题所述

char *str ; scanf("%s",str); int a; scanf("%d",&a);第一个参数填格式化的占位符,第二个填一个指针!就是变量的地址
温馨提示:答案为网友推荐,仅供参考
相似回答