-
主页地址
https://www.cnblogs.com/glassheart06 -
实验1
实验任务1 #include <stdio.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); system("PAUSE"); return 0; } 实验结论 实验任务1(2) 1 #include<stdio.h -
1
https://www.cnblogs.com/jj11/ -
实验2
1、实验任务1 问题1:以当前系统时间为种子,生成一个随机数 问题2:随机生成一个学号 2、实验任务2 问题1:如果去掉,总价格不会清零,会积累到下一次购买价格中 问题2:跳过循环中continue之后的代码,进入下一循环 3、实验任务3 点击查看代码 #include<stdio.h> int m -
实验报告2
实验1 问题1:srand(time(NULL))设置时间为随机种,保证每次随机数都不一样 问题2:在两个班中随机抽五个学号 实验2 问题1:每次循环总价不清空,导致后面询问时数据出错 问题2:结束这一轮循环,跳过后面的语句; 实验3 #include<stdio.h> int main(){ ch -
实验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 ra -
实验二
实验任务一 `#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_ -
实验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; -
实验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; 11 int r -
高级语言程序设计第一次作业
班级链接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业要求链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500327 姓名:李文涛 1.安装成功后的界面 2.编写代码 3 -
高级语言程序设计第一次作业
这个作业属于https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业的要求在https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13xue 学号:102500433 姓名:黄思哲 1.a.下载dev-c++ b.下 -
高级语言程序设计第一次作业
这个作业属于哪个课程: https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500334 姓名:吴俊杰 1.安装c程序的 -
地址
https://www.cnblogs.com/zhj910 -
实验1
#include<iostream> #include<string> #include<vector> #include<algorithm> template<typename T> void output(const T& c); void test1(); void test2(); voi -
实验1
实验任务1: 源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T &c); 8 -
实验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, -
第一次作业
C++ 编码规范 一、版式规范 1.1 缩进规则 程序块(如循环体、条件体、函数体等)采用 4 个空格缩进,禁止使用制表符(TAB),确保在不同编辑器与环境下显示格式一致。 1.2 空行规则 相对独立的程序块之间需加空行(如连续的条件判断块、循环块之间)。 变量 / 常量声明语句结束后,若紧跟执行语 -
实验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)缩进和空格别乱加:写代码时,遇到if、for这类语句,里面的代码要