2585283

本站停用,新站已更换地址
http://limohan.cn/
本站点留作纪念

©2585283
Powered by LOFTER

抄英语作业必备神器,
老师再也发现不了我抄英语作业了。。
摇到哪个号就错哪个题。。手动滑稽


程序代码

#include <iostream>

#include <stdlib.h>

#include <time.h> 

#define a 16 //完型题号开始

#define b 35 //完型题号结束

#define c 36 //语法填空题号开始

#define d 45 //语法填空题号结束

using namespace std; 

int main()

srand((unsigned)time(NULL)); 

for(int i = 0; i < 4;i++ ) 

        cout << '\t' << (rand() % (b-a+1))+ a << '\t'; 

cout << endl; 

cout << "---------------------------完型--------------------------------------"; 

cout << endl; 

//system("pause"); 

for(int i = 0; i < 2;i++ ) 

        cout << '\t' << (rand() % (d-c+1))+ c << '\t'; 

cout << endl; 

cout << "---------------------------语法--------------------------------------"; 

cout << endl; 

system("pause"); 

main();

return 0;

}