摘要:
C++编译环境 黑窗输入时,win可用ctrl+Z linux可用ctrl+D Xcode可用control+D告诉系统已经到了EOF #include <cstdio> int main(int argc, const char * argv[]) { // insert code here... 阅读全文
posted @ 2019-11-05 20:21
炳文
阅读(254)
评论(0)
推荐(0)
摘要:
C++编译环境 判断字符数组对称位置 #include <cstdio> #include <cstring> const int maxn = 256; //判断字符串是否为回文字符串 bool judge(char str[]){ size_t len = strlen(str); for(lo 阅读全文
posted @ 2019-11-05 19:44
炳文
阅读(120)
评论(0)
推荐(0)
摘要:
C++环境编译 十进制数加法除基取余 #include <cstdio> int main(int argc, const char * argv[]) { // insert code here... int a,b,c; printf("input:"); scanf("%d%d%d",&a,& 阅读全文
posted @ 2019-11-05 19:31
炳文
阅读(185)
评论(0)
推荐(0)
摘要:
C++环境下编译 算法思想日期不断加1,直至两个日期相等 #include <cstdio> int month[13][2] = {{0,0},{31,31},{28,29},{31,31},{30,30},{31,31},{30,30},{31,31},{31,31},{30,30},{31,3 阅读全文
posted @ 2019-11-05 19:20
炳文
阅读(163)
评论(0)
推荐(0)
摘要:
C实现booth算法,定点小数补码一位乘法 #include <stdio.h> #include <string.h> #include<stdlib.h> #define N 10 char strA[N] = {1}; char strpB[N] = {0}; char strnB[N] = 阅读全文
posted @ 2019-11-05 18:38
炳文
阅读(585)
评论(0)
推荐(0)
摘要:
大多是OS X系统都默认安装了Python。确定安装了Python后,你还需要安装一个文本编辑器,并确保其配置正确无误。 1.检查是否安装了Python 按住Command+Space,再输入terminal并按回车。输入命令python,输出指出了Python的版本,最后的>>>是一个提示符,意为 阅读全文
posted @ 2019-11-05 18:33
炳文
阅读(324)
评论(0)
推荐(0)

浙公网安备 33010602011771号