while产生怪物源码:
// 09-while循环.cpp: 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
int s = 0;
cout << "系统将自定义生产怪物" << endl;
while (s < 10)
{
cout << "系统怪" << endl;
s++;
}
cout << "本次系统共产生了怪物" << s << endl;
return 0;
}