-
实验1 现代C++编程初体验
任务 1: reverse 无返回值,会改变原容器 reverse_copy不修改原容器 rotate 将一段元素移动至另一段后,分别代表序列起始,支点,末尾 #include <iostream> #include <string> #include <vector> #include <algo -
实验二
任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major, random_no -
experiment2
一、实验目的 能正确使用if语句实现分支结构 能正确使用while语句、do...while语句实现循环结构 能在具体问题场景中正确区分、使用continue和break 能灵活、组合使用c语句编程解决简单应用问题 二、实验准备 实验前,请复习第3章以下内容: 分支语句 if 和循环语句 while -
1
https://www.cnblogs.com/jj11/ -
实验2
实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main(){ 10 int cnt; 1 -
实验2
实验任务1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { in -
实验一 现代C++基础编程
#任务1 ##代码 代码1 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #incl -
实验2
任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 80 6 #define N2 35 7 int main() { 8 int cnt; 9 int rando -
实验1 现代C++编程初体验
实验任务1 task1.cpp // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #in -
SY2
TASK1` #include <stdio.h> include <stdlib.h> include <time.h> define N 5 define N1 80 define N2 35 int main() { int cnt; int random_major, random_no; -
实验2
实验任务1 task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int random_major, -
实验二
实验任务一 `#include <stdio.h> include <stdlib.h> include <time.h> define N 5 define N1 80 define N2 35 int main () { int cnt; int random_major, random_no; -
实验2
1 include <stdio.h> include <stdlib.h> include <time.h> define N 5 define N1 80 define N2 35 int main() { int cnt; int random_major, random_no; srand( -
实验2
task1 代码 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include<time.h> 5 6 #define N 5 7 #define N1 80 8 #define N2 -
实验2
实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 80 6 #define N2 35 7 int main() { 8 int cnt; 9 int ran -
实验二
task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major, random_ -
实验二
实验一 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major, ra -
oop实验一
实验任务一 源代码 void test1(); void test2(); void test3(); int main() { std::cout << "测试1: \n"; test1(); std::cout << "\n测试2: \n"; test2(); std::cout << "\n测 -
实验1
任务1 源代码task1.cpp 1 // 现代C++标准库、算法库体验 2 // 功能:使用reverse/reverse_copy/rotate操作string和vector,体验标准库便捷性 3 #include <iostream> 4 #include <string> 5 #includ -
第一周作业
C++编码规范: 用4个空格缩进,禁用Tab键。 函数间、变量声明后、逻辑片段间加空行。 超80字符的语句分行,操作符放新行首。 每行仅一条语句,不允许多语句同处一行。 if、for、while等语句独自占行,执行语句加花括号{}。 关键字后留空格,函数名后不留,二元操作符前后加空格。 读《数学之美