#7360: 到底錯在哪???怎改啊?


Deather (Deather死神)


#include<iostream> 

 #include <cstdlib>

using namespace std;

int main()

{

    float a, b, c;

    cin>>a>>b;

     c=a+b;

 cout<<c<<endl;

return 0;

}

#7362: Re:到底錯在哪???怎改啊?


tomoyaken14 (歐練)


#include 

 #include

using namespace std;

int main()

{

    float a, b, c;

    cin>>a>>b;

     c=a+b;

 cout<

return 0;

}


while?
#7382: Re:到底錯在哪???怎改啊?


akira0331 (小迷糊)


#include 

 #include

using namespace std;

int main()

{

    float a, b, c;

    cin>>a>>b;

     c=a+b;

 cout<

return 0;

}
 


你的程式只做1遍就結束了,依造題意有多組輸入多組輸出,參考第1題的寫法吧
#7406: Re:到底錯在哪???怎改啊?


cs1010223 (O.O)


#include 

 #include

using namespace std;

int main()

{

    float a, b, c;

    cin>>a>>b;

     c=a+b;

 cout<

return 0;

}
 


你的程式只做1遍就結束了,依造題意有多組輸入多組輸出,參考第1題的寫法吧
神秘人:你應該要加個"while"= =