摘要: 左值 右值 (纯右值,将亡值) 可以在等号左边 只能在等号右边 能够取到地址 不能取地址 具名 不具名 1. 变量名 2.返回左值引用的函数 3.解引用 (*this) 4. ++i是左值 5. 声明出来的左值引用 6.右值引用 1.返回非引用类型的函数调用 (int func(void)) 2.i 阅读全文
posted @ 2024-05-07 13:30 于光远 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash now=$(/bin/date +%y%m%d%H%M%S%N) echo $now $line 阅读全文
posted @ 2022-08-03 14:12 于光远 阅读(79) 评论(0) 推荐(0) 编辑
摘要: App调用接口,依赖头文件和库。 库文件更新,App代码不需要重新编译,直接就可以运行。 //main.cpp //main.cpp #include "IStudent.h" int main(){ getIStudent()->TellStory(); } //IStudent.h//#prag 阅读全文
posted @ 2022-07-14 20:21 于光远 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <tuple> using namespace std; template<class... Args> class student{ public: template<typename HEAD> void displayParam(con 阅读全文
posted @ 2022-07-13 18:23 于光远 阅读(47) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; #define INITIALIZER(f) \ static void f(void) __attribute__((constructor)); \ static void f(void) #define DEIN 阅读全文
posted @ 2022-03-10 18:56 于光远 阅读(41) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class interface{ public: virtual int getAge()=0; virtual int getAge1()=0; }; class person:virtual public inte 阅读全文
posted @ 2022-03-10 15:58 于光远 阅读(62) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <iostream> #include <string> class test{ public: test(const std::string _domain,const std::string _interface,const std::s 阅读全文
posted @ 2022-03-10 14:26 于光远 阅读(605) 评论(0) 推荐(0) 编辑
摘要: Linux系统eeprom bit 可能会用,可有可无 一般MCU会使用,也有的时候诊断信息会存在mcu内部nor flash里(RH850)nor flash byte 根据芯片决定的,有的芯片不支持nand flash启动,就需要从nor flash启动(sram,ddr内存的读取结构相同)na 阅读全文
posted @ 2021-09-07 16:23 于光远 阅读(207) 评论(0) 推荐(0) 编辑
摘要: https://source.android.com/devices/architecture/hidl/interfaces https://www.jianshu.com/p/fd73ab98e423 https://www.jianshu.com/p/ca6823b897b5 mkdir -p 阅读全文
posted @ 2020-08-05 20:33 于光远 阅读(2796) 评论(1) 推荐(0) 编辑
摘要: 随机产生数独初始值。 #include <iostream> #include <vector> #include <stack> #include <queue> #include <algorithm> #include <algorithm> using namespace std; void 阅读全文
posted @ 2020-08-02 03:29 于光远 阅读(270) 评论(0) 推荐(0) 编辑