阅读下列程序,写出运行结果: #include <iostream> using namespace std; struct Employee { char name[ 20 ]; char sex; }; void fun( |
问答 |
阅读下列程序,写出运行结果: #include <iostream> using namespace std; struct Node { char * s; |
问答 |
判断一个整数n的奇偶性,可以利用位运算判断吗?请你试一试。 |
问答 |
长度为N的数组可以表示N个元素的集合,若有: S[i]==1,表示对应元素在集合中 如何实现集合的基本运算?请你试一试。并从内存和处理要求上与5.2.2节中集合的实现方法进行比较。 |
问答 |
分析以下说明结构的语句: struct Node { int data; Node error; //错误 Node * ok; //正确 }; error和 |
问答 |