Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:我可以这样读入数据吗?

Posted by frkstyc at 2006-11-27 00:58:35 on Problem 1732
In Reply To:我可以这样读入数据吗? Posted by:IdoIwill at 2006-11-27 00:48:59
> void ReadNumbers()
> {
> 	tNumLen=0;
> 	
> 	do {
> 		cin>>tNum[tNumLen];
> 		tNumLen++;
> 	} while(tNum[tNumLen-1]!='\n');
> 	tNum[tNumLen--]='\0';
> }
为什么不直接cin>>tNum;?

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator