看c++语言引用,一般,结构体型,和指针形。做了生日贺卡。
明日任务:继续看书看视频
#include<iostream>
using namespace std;
int main()
{char name1[41],name2[41];
cout<<endl<<"Please input your friend's name:";
cin>>name1;
cout<<endl<<"Please input your name:";
cin>>name2;
cout<<endl<<"========================================="<<endl;
cout<<"My dear"<<","<<endl;
cout<<"Happy birthday to you!"<<endl;
cout<<" yours,"<<endl;
cout<<" "<<name2<<endl;
cout<<"================================================="<<endl;
return 0;
}