草草集

博主分享了尝试在Word中优雅地插入伪代码的经历,包括使用Aurora与Word2013组合失败,遇到安装问题及运行错误,以及尝试使用Word2019搭配Texsword.0.8未果的过程。文章提供了相关博客参考链接,并提出了使用表格作为临时解决方案。
摘要由CSDN通过智能技术生成

【1】在word中优雅的插入伪代码
1.word2013(32位 )+Aurora 惨败
据传说该组合是最优雅的方式,由于Aurora不在维护更新,只能兼容32位的office。

出现的问题:

  • 安装 Aurora时,报err:invalid file handle 32 ;回车操作强装最终需要下载什么东东有无法访问到
  • 忽略安装时的问题 回到world使用Aurora,refresh 时提示 problems running Latex

卸载office2013 和 Aurora
2.word2019 + texsword.0.8
目前还未解决[2020.10.23]
参考blog[1]: https://www.neusncp.com/user/blog?id=151
参考blog[2]:http://www.pc0359.cn/downinfo/59555.html
3.先用表格插入s

首先,我们假设有一个基础的学生类`Student`,包含姓名(name)和三门课程的成绩(scores)。这里我会给出一个简单的例子,然后展示如何计算总分和平均分。 ```java public class Student { private String name; private int mathScore; private int englishScore; private int scienceScore; public Student(String name, int math, int english, int science) { this.name = name; this.mathScore = math; this.englishScore = english; this.scienceScore = science; } // 计算总分 public int getTotalScore() { return mathScore + englishScore + scienceScore; } // 计算平均分 public double getAverageScore() { return (double) getTotalScore() / 3; } // 打印学生的成绩信息 public void printScores() { System.out.println("学生:" + name); System.out.println("数学总分:" + mathScore); System.out.println("英语总分:" + englishScore); System.out.println("科学总分:" + scienceScore); System.out.println("平均分:" + getAverageScore()); } } // 创建花花、草草、叶叶三位同学实例并打印成绩 Student huahua = new Student("花花", 90, 85, 95); Student caocao = new Student("草草", 75, 80, 88); Student yeyue = new Student("叶叶", 95, 98, 90); huahua.printScores(); caocao.printScores(); yeyue.printScores(); ``` 在这个示例中,每个学生都是`Student`类的实例,并通过`printScores`方法输出他们的总分和平均分。你可以将这个结构应用于其他类似的学生对象上,如花花、草草和叶叶。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值