★初心者にVisual C++を教えるスレ★ Part5
■ このスレッドは過去ログ倉庫に格納されています
0286281
NGNG#include <iostream>
#include <time.h>
#include <math.h>
#include <stdlib.h>
void main()
{
//変数宣言
int ans, myans, score;
bool bContinue = true;
char res;
//ゲームのループ
while(bContinue){
cout << "***** 数当てゲーム *****" << end1
<< "こちらが考えている0-99の範囲の数を当ててください" << endl;
score = 0;
srand((unsigned)time(NULL));
ans = rand() % 100;
■ このスレッドは過去ログ倉庫に格納されています