摘要: #include <iostream> #include <string> #include <windows.h> using namespace std; int main() { int count = 0; for (int i=0;i < 24; i++){ for (int j = 0; 阅读全文
posted @ 2022-08-14 18:13 wshidaboss 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.while循环:#include <iostream> using namespace std; int main() { int b = 1; int sum = 0 ; while (b<101) { sum += b; b++; } cout << "总数为:" << sum << end 阅读全文
posted @ 2022-08-14 18:05 wshidaboss 阅读(993) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { string name; string pwd; while (1) { system("cls"); cout << "请输入账号:"; cin >> name; cout << "请输入密 阅读全文
posted @ 2022-08-14 17:58 wshidaboss 阅读(345) 评论(0) 推荐(0) 编辑