摘要: 基础: list——https://www.cnblogs.com/noonjuan/diary/2019/08/24/11405239.html string——https://www.cnblogs.com/noonjuan/diary/2019/08/24/11405517.html dict 阅读全文
posted @ 2019-08-10 21:48 no樂on 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Bootstrap可以让我们快速地创建出漂亮的前端页面,而通过Coding.net可以实现个人静态页面的免费部署。 个人主页:http://9dmraa.coding-pages.com/ 阅读全文
posted @ 2020-03-10 12:39 no樂on 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 线性表(Linear List) 顺序存储结构 顺序表(Sequence List) 顺序栈(Sequence Stack) 循环队列(Circular Queue) 链式存储结构 单链表(Singly Linked List) 双链表(Doubly Linked List) 循环链表(Circul 阅读全文
posted @ 2020-03-03 23:29 no樂on 阅读(336) 评论(0) 推荐(0) 编辑
摘要: Fibonacci.h使用递归方法实现斐波那契数列函数。Stack.h,定义一个Stack模板类,接收任意类型,模拟栈的使用,内部使用一个数组,通过size和capacity不断根据输入的多寡增容或缩小数组,实现push函数,压入数据到栈中,以及top函数,查看栈顶数据,pop函数,弹出栈顶数组。 阅读全文
posted @ 2020-02-26 14:04 no樂on 阅读(512) 评论(0) 推荐(0) 编辑
摘要: // matrix.cpp #include <iostream> #include <stdarg.h> #include <typeinfo> using namespace std; // 使用模板类,实现任意类型矩阵类 template <class T> class Matrix { pr 阅读全文
posted @ 2020-02-23 14:33 no樂on 阅读(1613) 评论(0) 推荐(0) 编辑
摘要: 使int n依次和2的次方进行与操作(&),得知每个位是0还是1,并且写入字符数组,返回写有数字二进制信息的字符指针。 #include <stdio.h> #include <stdlib.h> char *toBinary(int num) { char *binary = (char *)ma 阅读全文
posted @ 2020-02-21 20:54 no樂on 阅读(3149) 评论(0) 推荐(1) 编辑
摘要: 十进制数字和二进制数字的对应关系如下: 256 128 64 32 16 8 4 2 1 0 0 0 0 0 0 1 1 1 (7) 我们可以看到,除了最后一位可能出现奇数,其他位置都是2的倍数,不可能出现奇数,所以我们可以通过对数字7进行与运算(&),获取最后一位,来判断是否为奇数或偶数。即:7 阅读全文
posted @ 2020-02-21 20:14 no樂on 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 当我们使用MinGW-w64作为编译器在windows系统环境下进行C语言编程时,如果源代码文件(.c)保存格式为Ansi格式,则在打印汉字时不会出现乱码;反之,如果我们使用UTF-8格式保存,则会出现乱码,需要在编译时加上“-fexec-charset=gbk”来解决乱码问题。 #include 阅读全文
posted @ 2020-02-20 23:57 no樂on 阅读(3425) 评论(0) 推荐(0) 编辑
摘要: 关于UTF-8的规则:https://baike.baidu.com/item/UTF-8/481798?fr=aladdin 使用windows系统下的Ubuntu子系统,实现C语言对UTF-8编码格式的文字处理。 #include <stdio.h> // 根据UTF-8的编码格式,打印处文字以 阅读全文
posted @ 2020-02-19 13:19 no樂on 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 系统:windows 64 编译器:gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 文本编辑器:notepad 控制台:Cmder 编程语言:C、Python 首先,要想打印汉字,必须考虑到编码问题。在win 阅读全文
posted @ 2020-02-17 00:19 no樂on 阅读(13332) 评论(1) 推荐(1) 编辑
摘要: C# GUI应用 实现 2048游戏 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System. 阅读全文
posted @ 2020-01-25 01:00 no樂on 阅读(793) 评论(0) 推荐(0) 编辑