新建 文本文档.txt
来自「编译程序的实验~~ 很详细哈..需要的下来看看!」· 文本 代码 · 共 29 行
TXT
29 行
if(c!='+'&&c!='-'&&c!='*'&&c!='/'){
if(c!='#'){
if(k==0)
str1.Insert(str1.GetLength(),c);
else
str2.Insert(str1.GetLength(),c);
printf(str1+"\n");
}
else
k=1;
}
else{
if(c=='+'){
str1.Format("%d",atoi(str1)+atoi(str2));
str2.Empty();
}
if(c=='-'){
str1.Format("%d",atoi(str1)-atoi(str2));
str2.Empty();
}
if(c=='*'){
str1.Format("%d",atoi(str1)*atoi(str2));
str2.Empty();
}
if(c=='/'){
str1.Format("%d",atoi(str1)/atoi(str2));
str2.Empty();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?