234234234
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: #include <stdio.h> int main(int argc, char * argv[]) { int x;float y; scanf("%2d%f", &x, &y); printf("%d %f", x, y); return 0; } 阅读全文
posted @ 2020-09-29 17:29 你若愿意,我一定去 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 简单记录一下: 以#define ABC(x) x*x 为例 错误的认识:int a = 3; 则 ABC(a+1)=(a+1)*(a+1)=4*4=16 正确:int a = 3; 则ABC(a+1)=a+1*a+1=7 (把x直接用a+1替换) 额,不知道这样讲哦不哦看 更新下......... 阅读全文
posted @ 2020-09-29 17:12 你若愿意,我一定去 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 参考博客:http://c.biancheng.net/view/2054.html 交大家一个记忆的方法,我觉得挺好用: 第一:记住全称 。r=>read(读), w=>write(写), a=>append(追加),这个应该是最好记住的。 第二:打开失败。包含r打开方式的,文件不存在就会打开失败 阅读全文
posted @ 2020-09-29 16:50 你若愿意,我一定去 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main(int argc, char * argv[]) { // 参数的个数,包括自身的文件名 printf("%d\n", argc); int i = 0; while(i < argc) { printf("%s\n", argv[i++]); 阅读全文
posted @ 2020-09-29 16:24 你若愿意,我一定去 阅读(138) 评论(0) 推荐(0) 编辑
摘要: var canvas = document.getElementById('canvas');canvas.setAttribute('width', window.innerWidth);canvas.setAttribute('height', window.innerHeight); 阅读全文
posted @ 2020-08-23 20:02 你若愿意,我一定去 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 我的情况: 没有部署前的spring boot项目:前台请求的参数编码格式是utf8在打成jar包后:前台请求的参数编码格式是gbk 代码: String reqUrl = ""; String str = new String(reqUrl.getBytes(), "gbk");byte[] by 阅读全文
posted @ 2020-08-18 20:25 你若愿意,我一定去 阅读(1336) 评论(0) 推荐(0) 编辑
摘要: 今天在修改之前一位老哥留下的bug,就是做一个计时器,然后自己做了一个,顺便记录一下。 代码: // this.paparTime 为时间戳,秒为单位 // this.countdownClock 把时间转成00:00:00 的时间字符串格式 const timeOclock = setInterv 阅读全文
posted @ 2020-07-30 18:01 你若愿意,我一定去 阅读(198) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Object.defineProperty</title> </head> <body> <script> class Test { constructor(d 阅读全文
posted @ 2020-07-25 15:45 你若愿意,我一定去 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 本来想搬砖,无奈没砖可搬,DIY 吧,反正也花不了多长事件 BigInteger求欧拉函数: public static BigInteger bigIntegerEuler(BigInteger n) { BigInteger ret = new BigInteger(n.toString()); 阅读全文
posted @ 2020-07-21 15:56 你若愿意,我一定去 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 额............我也不知道(先记下) printf("%d\n", (scanf("%d", &n), n)) printf("%d\n", (~scanf("%d", &n))); 打印结果都相同........ 测试题目连接:http://acm.hdu.edu.cn/showprob 阅读全文
posted @ 2020-07-20 22:53 你若愿意,我一定去 阅读(256) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
23423423423