摘要: #include <iostream>#include <stdio.h>#include <string.h>#include <conio.h>using namespace std; int main(){float a = 1.0f; cout << sizeof(int) <<endl;/ 阅读全文
posted @ 2017-07-08 13:50 半夏生 阅读(379) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;int main(){ bool b=true; cout << "b=" << b << endl; b = false; cout << "b=" << b << endl; cout < 阅读全文
posted @ 2017-07-08 12:28 半夏生 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1、C中printf计算参数时是从右到左压栈的。 定义一个数组 int arr[ ] = {6 , 7, 8 , 9, 10} 再定义一个指针 sint *prt = arr; printf("%d\n",*ptr); 此时ptr指向第一个元素6; *(ptr++)+ = 123展开为*ptr = 阅读全文
posted @ 2017-07-08 12:04 半夏生 阅读(142) 评论(0) 推荐(0) 编辑