- 博客(5)
- 资源 (9)
- 收藏
- 关注
转载 C语言--memset结构体初始化
memset可以方便的清空一个结构类型的变量或数组。如: struct sample_struct { char csName[16]; int iSeq; int iType; };对于变量 struct sample_strcut stTest;一般情况下,清空stTest的方法:stTest.csName[0]='\0';st...
2019-05-30 22:21:16 20825
原创 C语言--结构体成员指针变量与结构体指针变量的区别
先看一段代码:#include <stdio.h> #include <stdlib.h> #include <string.h> struct student{ char *name; int score; struct student* next; }stu,*stu1; int...
2019-05-29 22:43:15 12238 6
原创 C语言--if…if…和if…else if的区别
if (条件1){ //语句1}if (条件2){ //语句2}这种格式中,程序会依次判断条件1和条件2是否成立并根据结果决定是否执行语句1和语句2,也就是说,第一个 if 块和第二个 if 块没有影响(除非在执行第一个 if 块的时候就凶残地 return 了)而下面这种格式:if (条件1) { //语句1}else if (条件...
2019-05-28 23:02:59 8345 5
转载 C语言--指针一般在什么时候需要申请内存空间
1. 指针所指向的地址需要存放数据的时候需要申请空间。int *q;只有地址,没有内存空间。这个地址是随机地址。(1)没有申请内存空间:int *q;*q = 1;cout<<*q<<endl;错误! 指针变量q没有空间,不能直接存放数据。(2)申请内存空间:int *q = new int;*q = 1;cout<<*q...
2019-05-28 22:18:08 8571 1
转载 成功解决TypeError: a bytes-like object is required, not 'str'
解决问题TypeError: a bytes-like object is required, not 'str'解决思路问题出在python3.5和Python2.7在套接字返回值解码上有区别:python bytes和str两种类型可以通过函数encode()和decode()相互转换,str→bytes:encode()方法。str通过encode()方法可以转换为bytes。...
2019-05-24 14:47:44 167932 8
candictionary_v1_cn.pdf
2020-05-05
AVS到MPEG-4的视频转码研究与实现
2017-02-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人