#include <iostream> #include "swap.h" //�����ķ��ļ���д //���ã��ô���ṹ�������� //ʵ���������ֽ��н����ĺ��� ////���������� //void swap(int a, int b); ////�����Ķ��� //void swap(int a, int b) //{ // int temp = a; // a = b; // b = temp; // // std::cout << "a = " << a << std::endl; // std::cout << "b = " << b << std::endl; //} //�����ķ��ļ���дһ�����ĸ����� //1����������Ϊ.h ��ͷ�ļ� //2����������Ϊ.cpp��Դ�ļ� //3����ͷ�ļ���д���������� //4����Դ�ļ���д�����Ķ��� ����������ͷ�ļ� //�õ�ʱ�����κ����ļ������������ͷ�ļ� int main() { int a = 10; int b = 20; swap(a, b); system("pause"); return 0; }