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

要是用结构体

Posted by 1235678910 at 2010-05-08 21:02:33 on Problem 1002
In Reply To:很奇怪,题目给的那个数据里面由一个310-4466 Posted by:xmu0633 at 2009-08-24 19:30:32
让
for(i =0; i<t; i++) {
        if(TelNum[i].n < 2)////**********在这
            continue;
        f = 0;
        for(j =0; j< 7; j++) {
            if(j==3)
                cout<<"-";
            cout<<TelNum[i].tel[j];
        }
        cout<<" "<<TelNum[i].n<<endl;
    }

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