02 2019 档案
摘要:cin 中“<<”流 输入运算符 cout <<setw(数字)<< 设置宽度类似于 %数字d 格式控制包含在头文件#include<iomanip>里,不可为负号数值过大,默认输出7位(含小数点) <<setfill(‘字符’)<<setw(数字) 在空白处,“前面”设置填充符,配合下面语句后面充
阅读全文
摘要:#include #include #define M 7 #define N 3 int main() { int a[M]={1,3,5,7,9,11,20}; int b[N]={2,6,8}; int c[M+N]={0}; int i=0; //a的下标 int j=0; //b的下标 int zu_he=0; //组合下标 ...
阅读全文