-
实验2
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,r -
实验1 现代C++基础编程
实验任务1: 问题一:reverse直接将s1反转,反转后结果存到s1本身,reverse_copy则是将s1反转后的结果存在s2,s1自身不变 问题二:rotate 算法通过将容器中 [first,middle) 区间的元素移到[middle,last)之后,实现元素循环移位 first:旋转范围 -
实验1
实验1现代C++编程初体验 实验任务一 : task1.cpp: #include <iostream> #include <string> #include <vector> #include <algorithm> template <typename T> void output(const -
实验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 rando -
博客地址
https://www.cnblogs.com/yahuao -
高级语言程序设计第一次作业
这个作业属于 https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业的要求在 https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500435 姓名:林俊杰 一、下载dev-c++ 二、安 -
实验1 现代c++编程初体验
实验1 : 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 6 //模板函数声明 7 template<typename T> 8 void output(const T &c); -
高级语言程序设计第一次作业
这个作业属于哪个课程: 这个作业要求在哪里: 学号:102500401 姓名:林含悦 1.安装过程 载入文件 载入中 启动 2.代码编写与运行 2.1 2.2 2.3 总结 进行了下载devc++的操作,在编码中虽然屡屡碰壁会有差错,但仍在跌跌撞撞中成长。是一次难忘的体验。 -
实验2
task1.c 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; 11 int -
实验一
1.实验任务1 源代码task1.cpp 1 #include <iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 template<typename T> 6 void output(const T &c -
实验一
##实验任务一 ##代码 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 template<typename T> 6 void output(const T &c); 7 -
实验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_ -
task2
实验一: 问题一:以时间为随机数,确保每次输出的数据都是随机的。 问题二:随机生成两个班里五个人的学号,且并不重复。 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define -
T2
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include <stdlib.h> #include <time.h> int main() { srand((int)time(NULL)); int luckyDay = rand() % 3 -
实验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_ -
实验二
任务1 问题一 给与随机的输出.问题二给出五个随机的学号. 任务2 问题一是用来重置的,要是没有这串代码总价会持续增加。问题二结束本次循环,并且开始下一次循环。 任务3 1 #include<stdio.h>; 2 int main() 3 { 4 char ans; 5 6 while (1) 7 -
代码规范
阅读虚幻引擎代码总结: 在软件开发中,软件生命周期的80%的成本都在维护上,几乎没有任何软件是由原作者终身维护的。当团队成员都遵循统一的编码规约时,协作变得更加顺畅。代码审查(code review)也会变得更加高效,因为开发人员不需要花费大量时间去检查代码风格的问题,而是能更多地专注于代码的功能和 -
Exp2
Task 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; s -
高级程序语言第一次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:<102500321> 姓名:<陈传星> ****安