输入字符串,并比较输入频率最大的那个字符串 难点:1.字符串的比较 可以用strcmp(a,b),若相等,则返回的是0,若不等,返回1!别弄错咯 #include<iostream>using namespacestd;intmain( ) {intround;cin>>round;while(round) {charballo[1001][16];intfre[1001] = {0};chartem[15];intm=0,n=0;intcoun...
计算两个m行n列矩阵相加后,共有几行几列全为零, #include"iostream" #include"stdio.h" usingnamespacestd; voidadd(inta[10][10],intb[10][10],intm,intn) { for(inti = 0; i < m; i++) { for(intj = 0; j < n; j++) a[i][j] = a[i][j] + b[i][j]; } } intcount(i...
1.尝试完成一个shell脚本的编写,脚本内容为给多台主机发送kafka的启停命令 2.建立虚拟机集群中,多台服务器的免密互信关系 生成公密钥对 ssh-keygen -t rsa 进入/root/.ssh路径下可查看 ssh-copy-id -i id_dsa.pub root@ip 即可完成