羽生结弦啊 @ 2018-08-18 14:52:12
我写了这两行代码,
cin>>n>>endl;
cin>>a;
然后,编译没有通过
error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and '<unresolved overloaded function type>')
cin>>n>>endl;
请问是为什么啊?
by 哔哩哔哩 @ 2018-08-18 14:52:45
cin>>endl?
by RKcer21 @ 2018-08-18 14:55:16
@哔哩哔哩 呵呵
by 哔哩哔哩 @ 2018-08-18 14:57:07
?@俞科chen21
by RKcer21 @ 2018-08-18 14:58:10
@哔哩哔哩 楼主成了真蒟蒻 (然而我也是)
by 哔哩哔哩 @ 2018-08-18 14:59:50
我以前都cin<<的呢
by MuYC @ 2018-08-18 15:06:41
我之前用scanf
by 天目魔瞳 @ 2018-08-18 15:09:06
学到了学到了输入换行不是cin<<吗
by henrytb @ 2018-08-18 15:13:19
endl???
by 羽生结弦啊 @ 2018-08-18 15:16:13
@哔哩哔哩 那个...其实我写的cin>>n>>endl;
by 羽生结弦啊 @ 2018-08-18 15:16:33
@henrytb 不可以吗??