摘要: //linuc command >man >pipe,mkfifo,kill&signal,semget,shmget,msgget,inet_addr //三次握手四次挥手//client==>connect req,//server==>ack,//client >ack////client== 阅读全文
posted @ 2022-10-19 16:02 cgy33 阅读(60) 评论(0) 推荐(0)
摘要: class Class { public: Class() = default; void f(){printf("hhhhh\n");} } int main() { Class c; void (Class::*ptrMemberFun)() = &Class::f; //对指针指向的修饰在*星 阅读全文
posted @ 2022-10-08 16:31 cgy33 阅读(22) 评论(0) 推荐(0)
摘要: #include <QCoreApplication> #include <iostream> #include <QDebug> #include <string> #if !NotLog #define cdebug(format,any) ({fprintf(stderr,"[cdebug]" 阅读全文
posted @ 2022-05-14 21:39 cgy33 阅读(62) 评论(0) 推荐(0)
摘要: 1 2 day05 3 4 5 回顾: 6 1》控制流 7 分支结构: 8 if else if else 9 switch case break 10 goto 11 2》函数: 12 返回值 函数名字(函数参数) 13 { 14 函数体 15 } 16 17 void fun(void) 18 阅读全文
posted @ 2021-09-28 20:22 cgy33 阅读(66) 评论(0) 推荐(0)
摘要: package first import kotlinx.coroutines.* import kotlinx.coroutines.flow.* var getInt:()->Int={ 1/0 } fun getInt2():Int { if((1/1)!=0) { throw object 阅读全文
posted @ 2021-09-11 13:57 cgy33 阅读(28) 评论(0) 推荐(0)
摘要: package myfirstimport kotlin.reflect.KPropertyclass A { var index=0 var oldValue:Int=1 var newValue:Int by this.oldValue//新值通过旧值改变来赋值,设置旧值得属性构造器 priva 阅读全文
posted @ 2021-09-09 19:20 cgy33 阅读(70) 评论(0) 推荐(0)
摘要: package myfirstimport kotlin.reflect.KPropertyclass A { var i:Int=1 var j:Int by this.i//通过旧值改变新值,执行顺序get,by,set}private operator fun Int.setValue(a: 阅读全文
posted @ 2021-09-09 18:30 cgy33 阅读(31) 评论(0) 推荐(0)