C++常用函数

 暂停:

Sleep(3000);   //暂停3秒 S要大写
//需要   #include<windows.h>

获取变量类型:

    int i;
    char aa[20];
    strcpy_s(aa, typeid(i).name());  //获取变量的类型
    //返回值类型:char *
    //需要 #include<typeinfo>

    cout << aa << endl;

原文地址:https://www.cnblogs.com/liming19680104/p/10432333.html