gitalk's People
gitalk's Issues
queue.h | 徐南木
http://blog.xunanmu.com/2020/03/13/queue.h/
queue示例#include <stdio.h>
#include "queue.h"
QUEUE_TYPE_SET(char);
typedef struct person Person;
struct person {
contact | 徐南木
http://blog.xunanmu.com/contact/
contact | 徐南木
古诗词鉴赏的六种题型及答题技巧 | 徐南木
http://blog.xunanmu.com/2020/02/08/gu-shi-ci-jian-shang-de-liu-chong-ti-xing-ji-da-ti-ji-qiao/
古诗词鉴赏的六种题型及答题技巧
[TOC]
诗词鉴赏表达技巧包括:表达方式、语言艺术(修辞方法、语言风格)、结构形式、写作技巧 等四个方面。例题:下面这首诗从哪些角度入手,可以体会到作者怎样的**感情?天净沙·秋思(元 马致远 ) 枯
Java设计模式 | 徐南木
http://blog.xunanmu.com/2020/02/15/java-she-ji-mo-shi/
设计模式:解决问题最行之有效的**。是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。
1、单例模式
分类:懒汉式、饿汉式
1、构造方法私有化
array.h | 徐南木
http://blog.xunanmu.com/2020/03/13/array.h/
[TOC]
array泛型模板示例#include <stdio.h>
#include "array.h"
ARRAY_TYPE_SET(char);
typedef struct person Person;
ARRAY_TYP
c语言链表封装 | 徐南木
http://blog.xunanmu.com/2019/11/01/lian-biao-feng-zhuang/
链表基本介绍
我们都学过链表,单链表,循环链表,双向链表. 有没有想过把这些链表操作全部结合到一起呢?
把他们的函数调用像调用成员那样,直接用.就可以操作.
废话不多说,由于C语言不像C++可以直接在结构体struct定义函数成员,但是
二叉树--概念篇 | 徐南木
http://blog.xunanmu.com/2019/11/04/er-cha-shu-gai-nian-pian/
前言
写这个主要是以后我考研可能要用,死记一下这个概念.
定义
二叉树是n(n>=0)个结点的有限集合,该集合或者为空集(称为空二叉树),或者由一个根结点和两棵互不相交的、分别称为根结点的左子树和右子树组成。下面展示了一棵普通二叉树
c语言泛型模板 | 徐南木
http://blog.xunanmu.com/2020/01/23/c-yu-yan-fan-xing-mo-ban/
前言
我们都知道c语言没有泛型,大多数人都是通过void*泛型指针来模拟,这也是我前段时间使用过的方法,但是这个方法无法模拟出真正的类型,你们也看见了我那篇stack强制转换的操作,这个很不方便.
今天我们来用宏模拟类型,创建简单数据结构
list.h | 徐南木
http://blog.xunanmu.com/2020/03/13/list.h/
list模板示例#include "list.h"
#include <time.h>
LIST_TYPE_SET(int);
int main(){
list(int) this=new(list(int));
f
Java面对对象 | 徐南木
http://blog.xunanmu.com/2020/02/15/java-mian-dui-dui-xiang/
一、前言1:将复杂的事情简单化。
2:面向对象将以前的过程中的执行者,变成了指挥者。
3:面向对象这种**是符合现在人们思考习惯的一种**。
过程和对象在我们的程序中是如何体现的呢?过程其实就是函数;对象是将函数等一些内容进行了封装。
匿名
markdown折叠语法 | 徐南木
http://blog.xunanmu.com/2020/01/23/markdown-zhe-die-yu-fa/
示例
<details>
<summary><mark>折叠文本</mark></summary>
\\这是代码
</details>
效果
折叠文本
150个文言文实词大全 | 徐南木
http://blog.xunanmu.com/2020/02/08/150-ge-wen-yan-wen-shi-ci-da-quan/
目录
[TOC]
1、爱(1)名词。恩惠。(古之遗爱也《左传》)(2)动词①加惠于人。(吴广素爱人。《陈涉世家》)(此四君者,皆明智而忠信,宽厚而爱人。《过秦论》)②喜爱,爱护。(父母之爱子,则为之计深远。《触龙说赵太后》)(爱其子,择师
c语言的lambda闭包函数 | 徐南木
http://blog.xunanmu.com/2020/06/27/c-yu-yan-de-lambda-bi-bao-han-shu/
现在大部分高级语言都有lambda闭包函数,今天我们来讲讲C语言的lambda表达式和闭包函数。
简述lambda闭包与Blocks语法
Blocks语法是Apple在Apple LLVM 2.0中贡献给LLVM开源社区的C语言扩展语法
scanf()和printf()函数详解 | 徐南木
http://blog.xunanmu.com/2019/09/20/scanf-he-printf-han-shu-xiang-jie/
1.printf()简介
printf() 是 C 语言标准库函数,用于将格式化后的字符串输出到标准输出。标准输出,即标准输出文件,对应终端的屏幕。printf() 申明于头文件 stdio.h。
函数原型
int printf ( co
Java内部类 | 徐南木
http://blog.xunanmu.com/2020/02/15/java-nei-bu-lei/
内部类:如果A类需要直接访问B类中的成员,而B类又需要建立A类的对象。这时,为了方便设计和访问,直接将A类定义在B类中。就可以了。A类就称为内部类。内部类可以直接访问外部类中的成员。而外部类想要访问内部类,必须要建立内部类的对象。
分类
JAVA概述 | 徐南木
http://blog.xunanmu.com/2020/02/14/java-gai-shu/
前言
1991 年Sun公司的James Gosling等人开始开发名称为 Oak 的语言,希望用于控制嵌入在有线电视交换盒、PDA等的微处理器;1994年将Oak语言更名为Java
- Java的三种技术架构
JAVAEE:Java
C语言泛型数据结构模板 | 徐南木
http://blog.xunanmu.com/2020/03/13/template.h/
前面时间我讲了c语言的泛型结构和this指针实现,这次我写了几个常用的数据结构通用模板。
文件层次注意: 此源码只适用于gcc编译器!!!注意: 此源码只适用于gcc编译器!!!注意: 此源码只适用于gcc编译器!!!
-----tem
stack.h | 徐南木
http://blog.xunanmu.com/2020/03/13/stack.h/
stack.h示例#include <stdio.h>
#include "stack.h"
STACK_TYPE_SET(char);
typedef struct person Person;
struct person{
二叉树--递归遍历 | 徐南木
http://blog.xunanmu.com/2019/11/15/er-cha-shu-di-gui-bian-li/
前言
前面我们讲了四种二叉树遍历方式,本文主要是以递归方式遍历二叉树,非递归方式请看下一篇.
A
/ \
B C
宏运用 | 徐南木
http://blog.xunanmu.com/2020/01/23/hong-yun-yong/
宏定义还记得C预处理的三种形式吗?条件编译、文件包含、宏定义。今天来总结一下宏定义。
宏定义(或者宏替换、宏代换),包含两种用法,含参和不含参,其中含参类似函数。
#define 宏名 字符串
#define 宏名(参数列表) 字符串
注
Java语法基础 | 徐南木
http://blog.xunanmu.com/2020/02/15/java-yu-fa-ji-chu/
1.标识符
其实就是在程序中自定义的名词。比如类名,变量名,函数名。包含 0-9、a-z、$、_ ;
1.命名规则由字母、下划线、数字和美元符号组成,不能以数字开头,区分大小写,不能是关键字和保留字(goto、const)
2.驼峰式命名
friends | 徐南木
http://blog.xunanmu.com/friends/
friends | 徐南木
c语言模板与this指针 | 徐南木
http://blog.xunanmu.com/2020/03/05/c-yu-yan-mo-ban-yu-this-zhi-zhen/
前言
上次我简单讲了一下C语言的泛型模板,这次详解C语言泛型模板的封装和this指针构造.
操作内容如下:
#include <stdio.h>
#include "template.h"
#include "Array.h"
i
柔性数组 | 徐南木
http://blog.xunanmu.com/2020/02/12/rou-xing-shu-zu/
前言
在日常的编程中,有时候需要在结构体中存放一个长度动态的字符串,一般的做法,是在结构体中定义一个指针成员,这个指针成员指向该字符串所在的动态内存空间,例如:
typedef struct test
{
int l
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.