11 2017 档案
摘要:习题(15-1) 前缀表达式 (1010) 1 #include <iostream> 2 #include<cstring> 3 using namespace std; 4 char str[100][20]; //定义一个字符数组,以空格为界,每行存放一个符号或数 5 int strcount
阅读全文
摘要:1069 浮点数加法 1 #include <iostream> 2 #include<stdlib.h> 3 #include<string> 4 using namespace std; 5 int main() 6 { 7 int point1, point2,point,len1,len2,
阅读全文
摘要:1 #include <iostream> 2 using namespace std; 3 int queen[9],qcount=0; 4 void print() 5 { 6 for(int i=1;i<9;i++) 7 { 8 if (queen[i] == 1) 9 cout << "*"
阅读全文
摘要:1 #include <iostream> 2 #include<string.h> 3 using namespace std; 4 int f(int i,char a,char b,char c) //定义一个函数为i个圆盘从a经过b全部套到a上的函数 5 { 6 if (i == 1) //
阅读全文
摘要:1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int n, m,a,b,sumlin=0,summax=0; 6 cin >> n >> m; 7 int max[81][81],num[81]; 8 for(int l
阅读全文
摘要:1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int N, n,flat=0; 6 cin >> N >> n; 7 int chess[50][50]; 8 int col1, line1,col2,line2; 9
阅读全文

浙公网安备 33010602011771号