fqy131314

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 27 下一页

2022年10月18日

C++——循环的经典应用

摘要: client.cpp #include <iostream> #include <Windows.h> #include <string> using namespace std; int main (void){ string pwd; while (1) { cout << "Please in 阅读全文

posted @ 2022-10-18 09:04 会飞的鱼-blog 阅读(13) 评论(0) 推荐(0)

控制台上跳极乐净土(完善动画版)

摘要: 要先安装EasyX图形界面库哦 _T( ) 补充说明: 如果项目使用的是字符集是”多字节字符集” 那么在使用easyx的相关接口时, 就不需要使用 _T( ) 如果项目使用的是字符集是”Unicode字符集”或其他字符集 那么在使用easyx的相关接口时, 就要使用 _T( ) 不论什么字符集, 都 阅读全文

posted @ 2022-10-18 09:04 会飞的鱼-blog 阅读(55) 评论(0) 推荐(0)

C++——循环控制强化训练

摘要: 循环练习第1关 难度: 1 行数和每行*的个数,由用户输入。 #include <iostream> #include <Windows.h> using namespace std; int main(void) { int rows; int cols; cout << "请输入行数: "; c 阅读全文

posted @ 2022-10-18 09:04 会飞的鱼-blog 阅读(39) 评论(0) 推荐(0)

2022年10月16日

C++——循环中的特殊控制:continue与break

摘要: break 结束本层循环。 continue 结束本次循环,进入一次循环 for语句中的continue while语句中的continue demo: #include <iostream> #include <Windows.h> #include <string> using namespac 阅读全文

posted @ 2022-10-16 11:25 会飞的鱼-blog 阅读(37) 评论(0) 推荐(0)

C++——循环

摘要: “愚公移山”之while循环 使用场合: 当需要反复执行某些“过程”时,就可以使用while循环。 移山,移到什么时候? 只要山还在,就一直挖! while (门前的山还在) { 一直挖 } 使用方法 while (条件) { 语句1 语句2 ....... } 强烈建议,无论循环体内有几条语句,都 阅读全文

posted @ 2022-10-16 11:23 会飞的鱼-blog 阅读(47) 评论(0) 推荐(0)

C++——程序员的逼格神器-github

摘要: github的重要性: 网络时代的程序员必备。 github的作用: 版本管理多人协作开源共享 常用方案: git+TortoiseGit+github [Tortoise,程序员常称其为小乌龟,小海龟] 安装配置步骤 1.注册 GitHub: Where the world builds soft 阅读全文

posted @ 2022-10-16 11:11 会飞的鱼-blog 阅读(18) 评论(0) 推荐(0)

项目练习1.2

摘要: 习题1. 让用户输入一个字符, 然后进行转换: 如果是大写字母,就转换为小写字母 如果是小写字母,就转换为大写字母 如果是其它字符,不做任何转换。 #include <iostream> #include <string> #include <Windows.h> using namespace s 阅读全文

posted @ 2022-10-16 11:06 会飞的鱼-blog 阅读(21) 评论(0) 推荐(0)

C++常见英文单词总结

摘要: bool 布尔 逻辑类型 if 如果 else 否则 switch 开关 case 情况 default 默认 阅读全文

posted @ 2022-10-16 10:58 会飞的鱼-blog 阅读(67) 评论(0) 推荐(0)

C++——常见错误总结1.4

摘要: switch错误 以下错误,在vs/vc中有提示,但是仍可以通过编译。 在gcc编译器中,不能通过编译。 #include <stdio.h> int main(void) { int c; scanf("%d", &c); switch(c) { case 1: int x = 0; //错误! 阅读全文

posted @ 2022-10-16 10:57 会飞的鱼-blog 阅读(36) 评论(0) 推荐(0)

C++——条件判断

摘要: if语句的三种形态 形态1: #include <iostream> using namespace std; int main(void) { int salary; cout << "你月薪多少?"; cin >> salary; if (salary < 20000) { cout << "你 阅读全文

posted @ 2022-10-16 10:49 会飞的鱼-blog 阅读(59) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 27 下一页

导航