| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:输入可以这样In Reply To:输入可以这样 Posted by:conan521 at 2011-08-31 22:20:12 赞一个!确实是个好办法!相当简单!
我一直在考虑用cin.peek()或者是atoi函数……
不过请问如果用C++的
if ( cin>>tmp )
…………………………………………;
else
………………………………………………;
该怎么写?没有成功读入tmp时怎么把那个"x"跳过?我试着写成char c;cin>>c;
不过貌似不可以……==!
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator