typedef 为类型取别名
生活随笔
收集整理的這篇文章主要介紹了
typedef 为类型取别名
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
#include <stdio.h>
int main() {
typedef int myint; // 為int 類型取自己想要的名字
myint a = 10;
printf("%d", a);
return 0;
}
其他類型的用法也是一樣的
typedef 類型 自己想要取得名字;
?
轉(zhuǎn)載于:https://www.cnblogs.com/hello-dummy/p/9196812.html
總結(jié)
以上是生活随笔為你收集整理的typedef 为类型取别名的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: vue使用(二)
- 下一篇: 光大喜马拉雅联名信用卡年费是多少?免年费