上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: C# 控制台应用 实现 2048游戏 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game 阅读全文
posted @ 2020-01-24 14:50 no樂on 阅读(548) 评论(0) 推荐(0) 编辑
摘要: Python 使用selenium抓取网页文本和下载音频 #!\usr\bin\env python # -*- coding: utf-8 -*- '一个自动从https://podcast.duolingo.com/spanish中下载音频并且爬取文本的程序' '需要配置下载以下所需库,并且配置 阅读全文
posted @ 2020-01-20 16:15 no樂on 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: C++ 输入int类型出错处理 #include <iostream> #include <stdio.h> using namespace std; int main() { int n; char ch; while (true) { cout << "输入一个int类型的整数:"; // 如果 阅读全文
posted @ 2019-12-31 14:59 no樂on 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 递归(Recursion) 栈(Stack) 先进后出(FILO, First In Last Out) 满足了函数调用(Call)和返回(Return)的顺序 需要维护每个函数调用信息直到返回后才释放,占用内存大 递归函数 基线条件(Base Condition) 递归条件(Recursive C 阅读全文
posted @ 2019-12-26 15:58 no樂on 阅读(226) 评论(0) 推荐(0) 编辑
摘要: C swap实现任意数据类型调换 /* swap.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* 从<string.h>中包含memcpy函数 void *memcpy(void *p1, const void * 阅读全文
posted @ 2019-12-26 14:24 no樂on 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Python实现网络图形化界面多人聊天室 - Windows 项目名称:网络多人聊天室图形界面版本 项目思路: server.py 服务端文件,主进程中,创建图形化界面,询问地址(主机名,端口),点击开始进入聊天室。 创建子进程,开始网络连接,使用select.select循环接收客户端连接请求,使 阅读全文
posted @ 2019-12-21 22:35 no樂on 阅读(2943) 评论(1) 推荐(1) 编辑
摘要: C 单链表(Singly Linked List) /* * singly_linked_list.c * 单向链表 * sll = singly_linked_list * */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> 阅读全文
posted @ 2019-12-20 22:41 no樂on 阅读(396) 评论(0) 推荐(0) 编辑
摘要: C 顺序表(Sequence List) /* * sequence_list.c * 顺序表 * sl = sequence list * 线性表的顺序存储是指在内存中用地址连续的一块存储空间顺序存放线性表中的各数据元素 * 用这种存储形式的线性表称为顺序表 * */ #include <stdi 阅读全文
posted @ 2019-12-20 22:40 no樂on 阅读(231) 评论(0) 推荐(0) 编辑
摘要: C 函数与指针(function & pointer) /* * function.c * 函数在C中的使用 * */ #include <stdio.h> int noswap(int x, int y) { /* * 函数会将传进来的参数复制一份,所以main中的x和y和noswap函数中的x和 阅读全文
posted @ 2019-12-19 21:54 no樂on 阅读(284) 评论(0) 推荐(0) 编辑
摘要: C 指针(pointer) /* * pointer.c * 指针在C中的应用 * */ #include <stdio.h> int main(void) { /* * i是一个int类型,在内存中占4个字节,存储整数 * p是一个指向int类型的指针,指向i,存储i的地址,它本身也有一个地址 * 阅读全文
posted @ 2019-12-19 21:42 no樂on 阅读(337) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页