关于Sizeof
sizeof(Gen()),Gen()是一个函数,Gen不会运行。
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;
int Gen()
{
cout << "!!!!" << endl;
return 0;
}
int main()
{
cout << sizeof(Gen()) << endl;
return 0;
}
输出的是Gen()的返回值int的sizeof
据说是sizeof的值在编译的时候就已经处理完毕了
Putchar的返回值
putchar的返回值即是它要输出的值
Perror,Strerror 错误捕捉后的输出字符串
!!Num=1 将数字转换成0,1
atof,atoi 字符串转浮点或整形
memcpy在内存重合的时候可能会出错,用memmove会好一点
#include <typeinfo>
typeid(t).name() 得到t的类型名称
Chocolatey Windows包管理系统..但是听说只有一个源,速度很慢。
C中使用Restrict 来解决 Pointer aliasing 的问题