摘要: #include <stdio.h> int main() { int i, j, k, n = 0; for (i = 1; i <= 5; i++) { for (j = 1; j <= 5; j++) { if (j == i)continue; for (k = 1; k <= 5; k++ 阅读全文
posted @ 2023-04-13 11:04 258333 阅读(15) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int i, j, k; for (i = 0; i <= 20; i++) //公鸡 { for (j = 0; j <= 33; j++) //母鸡 { //for (k = 0; k <= 100; k+=3) //小鸡 //{ 阅读全文
posted @ 2023-04-13 11:03 258333 阅读(32) 评论(1) 推荐(0) 编辑
摘要: #include < iostream > using namespace std; class BaseClass { public: virtual void fn1() { cout << "B1" << endl; } void fn2() { cout << "B2" << endl; } 阅读全文
posted @ 2023-04-13 08:54 258333 阅读(12) 评论(0) 推荐(0) 编辑