#include<iostream> using namespace std; struct teacher { char name[20]; int teachage; float pay; }; int main() { int x, y; cout << "请输入教师职工的信息\n"; stru...
#include<iostream> using namespace std; int main() { char x[5]; char *p; cout << "请输入一个字符串(5位):\n"; cin >> x; cout << "字符串反转后为:"; ...
/******************************************************************** * 功能:实现将一个字符串连接到另一个字符串尾部,并输出结果 * * ...
#include<iostream> using namespace std; int main() { int a[5] = { 1,2,3,4,5 }; int *p = 0; cout << "下标运算a[i]:" << "\n"; for (int x = 0; x < ...
#include<iostream> using namespace std; int main() { int i, z = 0, min, max; int a[8] = { 12,23,34,45,56,67,78,89 }; max = a[0]; min = a[0]; for (i = 0; i < 8; i++) ...