摘要:
#include <iostream>#include <stdio.h>#include <string.h>#include <conio.h>using namespace std; int main(){float a = 1.0f; cout << sizeof(int) <<endl;/ 阅读全文
摘要:
#include <iostream>using namespace std;int main(){ bool b=true; cout << "b=" << b << endl; b = false; cout << "b=" << b << endl; cout < 阅读全文
摘要:
1、C中printf计算参数时是从右到左压栈的。 定义一个数组 int arr[ ] = {6 , 7, 8 , 9, 10} 再定义一个指针 sint *prt = arr; printf("%d\n",*ptr); 此时ptr指向第一个元素6; *(ptr++)+ = 123展开为*ptr = 阅读全文