今天上了java课,学会了好多东西,先写一下课堂测试吧
就是随机写30道题目给小学生,两位数加减乘除

#include<iostream>
using namespace std;
#include<time.h>
#include<cstdlib>
int main()
{
	srand((unsigned)time(NULL));
	int a, b, c;
	
	
	string m = "+-*/";
	for (int i = 0; i < 30; i++)
	{
		a = rand() % 100 + 1;
		b = rand() % 100 + 1;
		c = rand() % 4;
		cout << a << m[c] << b << "=" << endl;
	}
}
posted on 2023-09-12 00:01  许七安gyg  阅读(2)  评论(0编辑  收藏  举报
$(document).ready(function() { // 禁止右键 $(document).bind("contextmenu", function(){return false;}); // 禁止选择 $(document).bind("selectstart", function(){return false;}); // 禁止Ctrl+C 和Ctrl+A $(document).keydown(function(event) { if ((event.ctrlKey&&event.which==67) || (event.ctrlKey&&event.which==86)) { //alert("对不起,版权所有,禁止复制"); return false; } }); });