c++ day2

c++ day2_第1张图片

#include 

using namespace std;
/*void row(int &p,int &q)//引用
{
    int t;
    t=p;
    p=q;
    q=t;
}*/
/*struct ab
{
    string name;
   // int &age;
};
void add(int a,int b)
{
    cout << a+b<< endl;
}
void add(float a,float b)
{
    cout << a+b << endl;
}
void add(string a, string b)
{
    cout << a+b <

c++ day2_第2张图片

你可能感兴趣的:(c++,算法,开发语言)