#include <iostream> //����ָ��������������������ʵ�ε�ֵ //ʵ���������ֽ��н����Ĵ��� #if(0) void swap01(int a, int b) { int temp = a; a = b; b = temp; std::cout << "swap01 a =" << a << std::endl; std::cout << "swap01 b =" << b << std::endl; } void swap02(int* p1, int* p2) { int temp = *p1; *p1 = *p2; *p2 = temp; } int main() { //1��ֵ���� int a = 10; int b = 20; swap01(a, b); std::cout << "a = " << a << std::endl; std::cout << "b = " << b << std::endl; //2����ַ���� //�����ַ���ݿ�������ʵ�� swap02(&a, &b); system("pause"); return 0; } #endif //�ܽ���������ʵ�Σ�����ֵ���ݣ��������ʵ�Σ����õ�ַ���ݡ�