#2282: 請問為什麼總是在line 1就錯誤


kai7537 (kai)


請問為什麼總是在line 1就錯誤

可是執行的結果都是對的....

 #include <iostream>

using namespace std;

int main()
{
    char a;
    int s;
    while(cin >> a)
    {
        s=a;
        s=s-7;
        a=s;
        cout << a;
    }
    return 0;
}

 

麻煩幫忙一下

謝謝

#2315: Re:請問為什麼總是在line 1就錯誤


a13032002 (國王的子民(23rd))


請問為什麼總是在line 1就錯誤

可是執行的結果都是對的....

 #include

using namespace std;

int main()
{
    char a;
    int s;
    while(cin >> a)
    {
        s=a;
        s=s-7;
        a=s;
        cout << a;
    }
    return 0;
}

 

麻煩幫忙一下

謝謝

你好像沒處理換行喔