-
第一周作业
C++编码规范: 用4个空格缩进,禁用Tab键。 函数间、变量声明后、逻辑片段间加空行。 超80字符的语句分行,操作符放新行首。 每行仅一条语句,不允许多语句同处一行。 if、for、while等语句独自占行,执行语句加花括号{}。 关键字后留空格,函数名后不留,二元操作符前后加空格。 读《数学之美 -
浅谈自学习编程以来学到的代码规范
命名是重中之重 变量/函数名:使用有意义的、描述性的名称,采用小驼峰命名法,如 calculate_Total_Price(),user_ProfileList。坚决杜绝 a, b, temp 这类无意义的命名。 类名:使用大驼峰命名法,如 Student_Manager, Http_Request -
实验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 -
高级语言作业第一次随笔
这个作业属于 https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业的要求在 https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500415 姓名:林帅前 一.安装dev.c 1.过程 -
实验1 现代C++编程初体验
任务1 ·源代码 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> //模板函数声名 template<typename T> void output(const T &c); vo -
实验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_n -
实验1 现代C++编程初体验
一、实验任务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); -
实验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 -
实验一:现代C++初体验
实验一 源代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1(); void -
102500416 王浩宇
这个作业属于:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业的要求:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500416 姓名:王浩宇 一.安装dev c加加 二.代码 -
实验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 源代码 1 int main(){ 2 int cnt; 3 int random_major,random_no; 4 srand(time(NULL)); 5 cnt =0; 6 while(cnt<N){ 7 random_major =rand()%2; 8 if(ra -
实验1 现代C++编程初体验
实验1-1 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #include <str -
work1
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500331 姓名:余武 安装过程: 安装成功: -
高级语言程序设计第一次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500407 姓名:胡晨怡 1、安装环境的过程和 -
高级语言程序设计第一次作业
班级链接: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/13558 学号:102500325 姓名:李志鹏 1.成功安装编译环境 -
2025高级语言程序设计第一次作业lcr
班级链接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业要求链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 我的学号:102500417 我的名字:刘朝榕 1.安装dev-c++ 2.成 -
实验2
task1 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 -
高级语言程序设计第一次作业
班级链接:https://edu.cnblogs.com/campus/fzu/gjyycx 作业要求链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500328 姓名:刘宇桓 1.安装成功后的界面 2.编写代码 3