热门

最新

红包

立Flag

投票

同城

我的

发布
d0628
d0628
4 年前
trued0628

C语言标准输入输出
int n;
while(scanf("%d",&n)!=EOF){
printf("%d\n",n);
}
while(~scanf("%d",&n)){
printf("%d\n",n);
}
关闭C++同步流
ios::sync_with_stdio(false);
int a;
cin>>a;
cout<<a<<endl;
return 0;

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
关于泛型,这代代码有什么问题? public class Demo2 { public static <T> void test(List<Object> list){ System.out.println(list); } public static void main(String[] args) { List<String> list1 = new ArrayList<>(); test(list1); } }
立即登录