
C语言
yhgao96
在读硕士,研究方向:机器人、机器学习,深度学习、图像处理等
展开
-
C/C++内存对齐
从一个例子引出内存对齐:#include<iostream>using namespace std;struct st1{ char a; int b; short c;}s1;struct st2{ short c; char a; int b;}s2;int main(){ cout << "sizeof(s1) is " << sizeof(s1) << endl; cout << "sizeof(s2)原创 2020-08-14 15:35:51 · 314 阅读 · 0 评论 -
冒泡排序
冒泡排序:将最大得数据下沉,最小的数字上浮,最后形成一组由小到大有序的数字。void Bubble_Sort(ElementType A[], int N){ for (P=N-1; P>=0; P--){ flag = 0; for (i=0; i<P; i++){ //一趟冒泡 if( A[i] > A[i+1]){...原创 2020-04-16 10:13:43 · 144 阅读 · 0 评论 -
C语言——typedef
最近在重新学习C语言,遇到了C语言里面得typedef问题,之前一直没有仔细研究过,上网发现了一篇博客写的非常不错,把链接发在这里,供大家学习!! (1)https://www.cnblogs.com/ktao/p/8578074.html (2)https://blog.youkuaiyun.com/superhoy/article/details/53504472...原创 2019-10-24 15:41:34 · 139 阅读 · 0 评论 -
C指针学习
对这篇博客讲解的指针进行学习与总结https://blog.youkuaiyun.com/constantin_/article/details/79575638https://blog.youkuaiyun.com/qq_36754767/article/details/89429475原创 2019-10-23 10:28:32 · 96 阅读 · 0 评论