- 2024-11-1911.19随笔
这里是11.19随笔。题目留档:使用键盘输入数学表达式(含数字,四种运算符+、-、、/和小括号,其中运算数都是一位数(0~9)),将数学表达式转化成后缀表达式输出,利用后缀表达式求表达式的值并输出。输入格式:输入正确的表达式(可以有空格)后回车,得到后缀表达式和结果。输入括号缺失的表达式,输
- 2024-10-20今日总结
importjavax.swing.;importjava.awt.;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjava.util.ArrayList;importjava.util.List;importjava.util.Random;classArithmeticProblem{privateint[]operands;char[]operators;
- 2024-10-142024/10/14
今天我写了一个生成随机四则运算题的程序。importjavax.swing.;importjava.awt.;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjava.util.ArrayList;importjava.util.Arrays;importjava.util.List;importjava.util.Random;class
- 2023-04-27== vs === in js
Equalitycomparisonsandsameness-JavaScript|MDN(mozilla.org)Looseequalityissymmetric:A==BalwayshasidenticalsemanticstoB==AforanyvaluesofAandB(exceptfortheorderofappliedconversions).Thebehaviorforperforminglooseequa
- 2023-02-08x ? : y Conditionals with Omitted Operands
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Conditionals.html 6.8ConditionalswithOmittedOperandsThemiddleoperandinaconditionalexpress
- 2022-11-20risc-v gcc 编译 atomic 指令时产生 illegal operands 错误的解决办法
错误的写法:amoadd.wa1,a0,a2这是参照OpenRISC-VReferenceCard的格式书写的,这将将产生错误:illegaloperands`amoadd.wa1,a0,a2'正确的写法:amoadd.wa1,a2,(a0)凡
- 2022-08-25Assembler Instructions with C Expression Operands
UsingtheGNUCompilerCollectionForgccversion4.9.3 (GNUToolsforARMEmbeddedProcessors)Inanassemblerinstructionusingasm,youcanspecifytheope