《关于我写小说这件逝》

讨论 已结
41 3926
none
NOT FOUND
404
回帖
  • 1 回复
  • 2025-04-17 01:17
    2 回复
  • 2025-04-17 01:16
    2 回复
  • 2025-04-17 01:15
    2 回复
  • 2025-03-26 20:21
    https://www.********.com/opus/690246582353788948
    2 回复
  • 2025-03-26 20:20
    @别胶 还有那个我给你发的攻略你多看看
    3 回复
  • 2025-03-26 20:18
    @别胶 别提了,第72天我都也不知道能不能过去
    3 回复
  • 2025-03-25 20:22
    @小键人12834598 到后期我觉得好难打(我现在只能到51天)
    2 回复
  • 2025-03-24 23:07
    @小键人12834598 我一般喜欢在每一次进攻前暂停游戏,再购买设备,升级装备和基地,加固城墙,完善运输链,然后再点击开始。
    1 回复
  • 2025-03-24 23:05
    @小键人12834598 自己总结的攻略1
    1 回复
  • 2025-03-24 19:46
    2 回复
  • 2025-03-23 00:03
    2 回复
  • 2025-03-22 23:52



    2 回复
  • 2025-03-22 23:49



    1 回复
  • #include <iostream>
    #include <cstdlib>
    #include <ctime>
    #include <string>
    #include <iomanip>

    using namespace std;

    int main() {
    srand(time(0));
    int cntT = 0, cntF = 0;
    char L[] = {'+', '-', '*'}; // 替换为char数组?:ml-citation{ref="3" data="citationList"}
    const int MAX_ANSWERS = 100;
    int answers[MAX_ANSWERS]; // 替换为固定数组?:ml-citation{ref="2,3" data="citationList"}

    int a;
    cout<<"小学1~3年级加减口算练习题"<<endl;
    cout << "如果输入0,进入在线答题模式(输入-1终止程序);如果输入别的大于等于1的整数n(n<=20),则将自动输出n份口算练习题(无乘法)\n";
    cin >> a;
    if(a<0 or a>20){
    while(a<0 or a>20){
    cout<<"输入错误!请重新输入\n";
    cin>>a;
    }
    return 0;
    }
    if (a == 0) {
    while(true) {
    int w = rand() % 100 + 1;
    int s_val = rand() % 100 + 1;
    int y = rand() % 3;
    int u = rand() % 2;
    int t = rand() % 2;

    if (s_val > w) swap(w, s_val);

    char op;
    int result;
    if (t == 0 && (w < 10 || s_val < 10)) {
    op = L[y];
    } else {
    op = L[u];
    }

    switch(op) {
    case '+': result = w + s_val; break;
    case '-': result = w - s_val; break;
    case '*': result = w * s_val; break;
    }

    cout << w << " " << op << " " << s_val << " = ";
    int input;
    cin >> input;
    if(input<0){
    if(input == -1) {
    cout << "正确 " << cntT << " 道\n";
    cout << "错误 " << cntF << " 道\n";
    cout << "一共 " << cntT + cntF << " 道\n";
    break;
    }
    while(input<0){
    cout<<"输入错误!请重新输入\n";
    cin>>input;
    }
    }

    if(input == result) {
    cntT++;
    cout << "True\n";
    } else {
    cntF++;
    cout << "False\n";
    cout << ": " << result << endl;
    }
    }
    }
    else {
    int n = a;
    if(n >= 1) {
    for(int i = 0; i < n; ++i) {
    cout << " 小学口算练习题\n 建议用时 10 分钟 实际用时: 分钟\n";

    // 生成题目并存储答案
    for(int o = 0; o < MAX_ANSWERS; ++o) { // 使用固定循环次数?:ml-citation{ref="2" data="citationList"}
    int w = rand() % 90 + 10;
    int s_val = rand() % 90 + 10;
    int u = rand() % 2;

    if(s_val > w) swap(w, s_val);

    char op = L[u];
    switch(op) {
    case '+': answers[o] = w + s_val; break; // 直接存入数组
    case '-': answers[o] = w - s_val; break;
    case '*': answers[o] = w * s_val; break;
    }

    cout << setw(5) << w << op << s_val << "= ";
    if((o+1) % 5 == 0) cout << endl;
    }

    // 输出答案
    cout << "************************************************************************\n"
    << "******************************* 答案 *********************************\n";
    for(int j = 0; j < MAX_ANSWERS; ++j) { // 遍历数组输出?:ml-citation{ref="4" data="citationList"}
    cout << setw(5) << answers[j] << " ";
    if((j+1) % 10 == 0) cout << endl;
    }
    cout << endl;
    }
    }
    }
    return 0;
    }
    0 回复
  • 2024-11-14 20:15
    @4664946 加油
    1 回复
  • 0 回复
  • 2023-03-29 11:18
    说起这个就很惭愧 从初中就和同学一块儿瞎写 就没写完结过一本 甚至连超过3万的单本也没有 现在工作了 只能摸鱼练练打字 写写大纲[可怜]
    1 回复
  • 2023-03-25 10:31
    2 回复
  • 2023-03-25 07:59
    有没有跟同学一起更的?我之前一起跟同学更的
    2 回复
1 2 3 下一页 末页 到第 总共 3 页
hr
有账号去 登录 ,无账号 去打字 可自动生成!
还未登录,登录