摘要: 1. 下面程序执行后输出结果为( ) #include <stdio.h> int main() { int i, j, m=6,n=4, *p=&n, *q=&m; i=p==&m; j=(-*p)/(*q)+7; printf("i=%d,j=%d\n", i,j); return 0; } < 阅读全文
posted @ 2019-10-15 15:36 GuoXinxin 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 1. 对下面变量声明描述正确的有() int *p[n]; int (*)p[n]; int *p(); int (*)p(); <!-- --> int *p[n];—–指针数组,每个元素均为指向整型数据的指针 int (*)p[n];—p为指向一维数组的指针,这个一维数组有n个整型数据 int 阅读全文
posted @ 2019-10-15 14:57 GuoXinxin 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1. 变量void (*s[5])(int)表示意思为() 函数指针 函数指针数组 数组指针函数 语法错误 正确答案:B https://www.cnblogs.com/tp-16b/p/7860491.html 数组和指针是没关系的! ①用sizeof关键字求数组所占的内存是整个数组大小,指针不是 阅读全文
posted @ 2019-10-15 14:22 GuoXinxin 阅读(483) 评论(0) 推荐(0) 编辑
摘要: <condition_variable >头文件主要包含有类和函数相关的条件变量。 包括相关类 std::condition_variable和 std::condition_variable_any,还有枚举类型std::cv_status。另外还包含函数 std::notify_all_at_t 阅读全文
posted @ 2019-10-15 00:24 GuoXinxin 阅读(12850) 评论(3) 推荐(0) 编辑