会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孤独的程序员dis1500
知识就是希望
2021年12月10日
TI CC2540
摘要: TI CC2540 低功耗蓝牙 TI 德州仪器 https://e2echina.ti.com/support/wireless-connectivity/bluetooth/f/bluetooth-forum
阅读全文
posted @ 2021-12-10 23:36 lydstory
阅读(28)
评论(0)
推荐(0)
结构体指针sizeof 4
摘要: struct abc { int a; char b[12]; char c[3]; }; int main() { cout << sizeof(struct abc *) << endl; system("PAUSE"); return 0; }
阅读全文
posted @ 2021-12-10 19:53 lydstory
阅读(31)
评论(0)
推荐(0)
输出20
摘要: struct abc { int a; char b[12]; char c[3]; }; int main() { cout << sizeof(abc) << endl; system("PAUSE"); return 0; } struct abc{ int a; char c[5];}; 1
阅读全文
posted @ 2021-12-10 19:51 lydstory
阅读(28)
评论(0)
推荐(0)
输出5,21
摘要: int main() { char a[] = "abcde"; char b[] = { 'a', 'b', 'c', 'd', 'e' }; cout << strlen(a) << endl; cout << strlen(b) << endl; system("PAUSE"); return
阅读全文
posted @ 2021-12-10 19:48 lydstory
阅读(13)
评论(0)
推荐(0)
交换a,b两个的值,不使用第三方变量
摘要: void swap(int &a, int &b) { a = a^b; b = a^b; a = a^b; } int main() { int a = 5; int b = 3; swap(a, b); cout << a << endl; cout << b << endl; system("
阅读全文
posted @ 2021-12-10 19:40 lydstory
阅读(25)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告