アカウント名:
パスワード:
void examination(Student *student, int nStudent) { for(int i = 0 ; i < nStudent) { if(student[i].score > 80) { student[i].おこずかい += 100 ; } else if(student[i].score < 60) { student[i].おこずかい = 0 ; }
増えないだけじゃん
60以下をとって今までの分取り上げになるよりまし、てことかと。
より多くのコメントがこの議論にあるかもしれませんが、JavaScriptが有効ではない環境を使用している場合、クラシックなコメントシステム(D1)に設定を変更する必要があります。
UNIXはただ死んだだけでなく、本当にひどい臭いを放ち始めている -- あるソフトウェアエンジニア
プログラム? (スコア:1)
void examination(Student *student, int nStudent) {
for(int i = 0 ; i < nStudent) {
if(student[i].score > 80) {
student[i].おこずかい += 100 ;
} else if(student[i].score < 60) {
student[i].おこずかい = 0 ;
}
Re:プログラム? (スコア:0)
Re: (スコア:0)
増えないだけじゃん
60以下をとって今までの分取り上げになるよりまし、てことかと。