C++勉強しようと思うんだけど・・・
■ このスレッドは過去ログ倉庫に格納されています
0154153
NGNG#include <iostream.h>
int main( void )
{
int nolist[100];
int no, x;
no = 1;
x = 0;
while ( no && x < 100 ) {
cout << "数字を入力(0で表示)> ";
cin >> no;
nolist[x] = no;
x++;
}
for ( x--; x >= 0; x-- ) {
if ( nolist[x] ) {
cout << x + 1 << "回目の入力 = ";
cout << nolist[x] << "\n";
}
}
return( 0 );
}
■ このスレッドは過去ログ倉庫に格納されています