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

大哥大姐们帮帮忙啊...实在不知道怎么改了,CE...

Posted by henry11 at 2007-09-09 10:50:53 on Problem 2121
//string str[100], eng;

 CE:if(str[0]=="negative")
    {
        h=1;
        cout<<'-';
    }    
    for( i=h; i<=len; i++ )
    {
        //cout<<i<<'i'<<endl;
        for( j=0; j<31; j++ )
        {
            //cout<<j<<'j'<<endl; 
            //
 CE:        if( str[i]==hash[j].eng ) break;
        } 
        //cout<<str[i]<<endl;
        //cout<<j<<endl;
          
        if( j<28 )temp+=hash[j].value;
        else 
        {
            ss[top]=temp;
            temp=0;
            ss1[top++]=j-27;
        }    
    } 
  越改越没信心了...   

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