acm回字符串答案错误

日期:2008-04-25 18:35:31 人气:1

acm回字符串答案错误

for 循环有错, 谁能保证num为偶数呢? 若num为奇数, if(a==num/2)中条件永不成立. 试试我的: #include using namespace std; int main() { char temp[20]; int i,j,k; cout << "Input the string:"; cin >> temp; for ( i=0; i<20 ; i++
    A+
热门评论