恢复内容开始 实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); for(n=1; n<=N; n++) { x = ran ...
分类:
其他好文 时间:
2021-04-16 12:00:33
阅读次数:
0
// 一元二次方程求解(函数实现方式) // 重复执行, 直到按下Ctrl+Z结束 #include <math.h> #include <stdio.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { d ...
分类:
其他好文 时间:
2021-04-16 11:59:33
阅读次数:
0
#include <stdio.h> //赋值号=,具有方向性,只能将赋值号右边的表达式的值给左边的变量 //赋值语句具有计算功能,赋值号右边可以是常量,变量或表达式都可以 //赋值就是将表达式的值存入一段连续的具有若干个存储单元的存储空间,存储空间的名称就是变量名 //没有赋值的变量,其值是不确定 ...
分类:
编程语言 时间:
2021-04-16 11:48:01
阅读次数:
0
strcpy 和 memcpy 的区别 源码实例: #include<cstdio> #include<cstring> #include<cassert> char *myStrcpy(char* dest, const char* src){ if ((NULL == dest) || (NUL ...
分类:
其他好文 时间:
2021-04-15 12:39:55
阅读次数:
0
简介 是什么 文件包含,一个简单的例子,和 c 语言 include 一样,将一个文件包含到另一个文件。通常出现在多文件开发,模块化开发的场景下。 文件包含,就是代码中通过某种方法包含了其它文件,可以将另一个文件的内容引入到当前文件。从而可以执行代码。 # 本地文件包含 http://example ...
分类:
其他好文 时间:
2021-04-15 12:36:17
阅读次数:
0
//本模板是离散后对权值建树 #include<bits/stdc++.h> #define mid (l+r>>1) using namespace std; const int N=2e5+10; struct TR { int sum,lo,ro; }tr[N<<5]; int tr_cnt; ...
分类:
其他好文 时间:
2021-04-15 12:28:09
阅读次数:
0
实验1 //生成N个0~99之间的随机整数,并打印输出 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x,n; srand(time(0)); for(n=1;n<=N;n+ ...
分类:
编程语言 时间:
2021-04-15 12:26:09
阅读次数:
0
MarkDown学习 标题 三级标题 四级标题 分割线 字体 斜体 加粗 斜体加粗 列表 无序 A B 代码 #include<iostream> using namespace std; int main(){ cout<<"HelloWorld!"<<endl; return 0; } ...
分类:
其他好文 时间:
2021-04-15 12:10:09
阅读次数:
0
在做STM32f405 移植过程中,编译出现了cannot open source input file "core_cmInstr.h": No such file or directory的错误,显然我们需要将core_cmInstr.h添加keil include path中,具体如下图: 查 ...
分类:
其他好文 时间:
2021-04-15 12:04:39
阅读次数:
0
VS2010 NX8.5 #include <NXOpen/Annotations_Dimension.hxx>#include <NXOpen/Annotations_DimensionCollection.hxx>#include <NXOpen/Annotations.hxx>#include ...
分类:
其他好文 时间:
2021-04-15 11:59:30
阅读次数:
0