-
高级程序语言第一次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:<102500321> 姓名:<陈传星> ****安 -
实验2
任务1:1.除去后第一次生成随机学号,当再次运行程序则生成与第一次一样的学号。2.作用为在当前程序重新随机生成学号。 任务2:没有影响 语义为重新运行循环中的程序。 任务3: #include <stdio.h> int main() { char color; while(1) { printf( -
实验一
task1 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #include <str -
博客地址
https://www.cnblogs.com/gentlelight -
实验1 现代C++编程初体验
实验任务1: 源代码: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 #include <iostr -
实验1 现代C++编程初体验
实验1 现代C++编程初体验 实验一 源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(co -
experiment2
Task1 问题1: srand(time(NULL));的作用:经过查询,发现这行代码用于初始化随机数生成器的种子,srand()是设置随机种子的函数,time(NULL)返回当前系统时间,将当前时间作为种子,确保每次程序运行时产生的随机数序列不同.如果去掉这行代码,发现每次运行时产生的"随机"学 -
实验1 现代C++编程初体验
任务1: 源代码task1.cpp 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T -
实验2
实验任务1 test1.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_maj -
实验二
#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; sr -
实验一
##实验任务一 ##代码 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 template<typename T> 6 void output(const T &c); 7 -
实验二
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_ -
实验1 现代C++编程初体验
一、实验任务1源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 // 模板函数声明 6 template<typename T> 7 void output(cons -
实验二
实验一 点击查看代码 #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 -
实验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_majo -
实验作业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, -
博客地址
https://www.cnblogs.com/Carloschan-Giraffe -
实验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 现代C++编程初体验
task1.cpp reverse修改原始序列,reverse_copy不修改; rotate算法可以将元素移动到序列的另一个位置,first代表移动的起始位置。middle代表中间位置,last代表结束位置 #include <iostream> #include <vector> #includ -
实验2
任务1 问题1:生成一个随机数 问题2:生成一个随机学号 任务2 问题1:会把上次运行的结果加进去 问题2:继续循环 任务3 #include <stdio.h> int main() { char ch; while ((ch = getchar()) != EOF) { if (ch == '\