-
unknownexercice
#include < stdlib.h >
#include < stdio.h >
#include < sys/types.h >
#include < sys/stat.h >
#include < fcntl.h >
int 主要 (int argc、 char *argv[])
{
int fd、 fd2、 fd3 ;
int i;
浅黄色 char [10] ;
fd=open(argv[1],O_RDONLY) ;
if(fd2=open(argv[2],O_WRONLY) = =-1)
{
fd3 = 共创 (argv [2],S_IRUSR |S_IWUSR) ;
read(fd,buff,10) ;
write(fd3,buff,10) ;
}
其他
{
fd2=open(argv[2],O_TRUNC) ;
read(fd,buff,10) ;
write(fd2,buff,10) ;
}
返回 0 ;
}
- 2023-05-04 19:30:03下载
- 积分:1
-
这是用VC++编写的计算器的源代码,可以进行简单的数学运算
这是用VC++编写的计算器的源代码,可以进行简单的数学运算-This is used VC++ Prepared calculator source code, you can perform simple arithmetic
- 2022-12-01 18:05:03下载
- 积分:1
-
中文分词1.0
简介 ChineseSplitter中文分词系统集成了单字(一元切分)、双字(二元切分)、词义切分等分词方法。提供很好的权重计算办法。类结构 BaseSplitter(分词基类)─SingleSplitter(一元切分)─DoubleSplitter(二元切分)─DefaultSplitter(词义切分)────NICTCLAS(中科院分词系统)KeywordsSort(关键字排序类)
- 2022-01-30 17:14:00下载
- 积分:1
-
3D FDTD code for electromagnetic simulation
In the pFDTD, pre-defined, a number of functions helps you to input complex dielectric/metallic
structures by the repeated use of rather simple geometric structures. For example, the later
use of input object functions will take over the overlapped region with the previously defined
structures. In the present pFDTD version, only metals that can be described by simple Drude
model can be handled.
- 2022-04-18 00:45:50下载
- 积分:1
-
三元组算法
在稀疏矩阵相乘的算法当中,关键是通过给定的行号i和列号j找出原矩阵的对应元素值,这里设计了一个函数value,当在三元组表示中找到时返回其元素值,找不到时说明该位置处的元素值为0,因此返回0。然后利用该函数进行矩阵相乘,若求出某个元素值不为0,则将其存入结果矩阵的三元组表示中,否则不存入。
- 2022-09-23 17:45:04下载
- 积分:1
-
through algorithm PI values, the median Open
通过算法计算PI值,不限位数-through algorithm PI values, the median Open-
- 2022-01-25 18:23:28下载
- 积分:1
-
迷宫里的最短路径-深度优先搜索
资源描述迷宫里的最短路问题是相当经典的问题,也是一个图的遍历问题,这里遍历用的是宽度优先搜索
- 2022-08-10 13:50:51下载
- 积分:1
-
ural 卷1解题报告(代码)
按照难度排列,差不多也有80道左右了,代码都很精简,附有注释还有解析神马的,适合初学者参考。
- 2022-08-04 04:47:13下载
- 积分:1
-
C + + 中的快速模表达式求值
这是 c + + 中的快速模表达式求值。它有没有其他库的依赖,将使用 g + + 在 Linux 上构建 / Mac / Android 或在 Windows 上使用 MSVC。它有一个非常简单的界面:
CFloatExpression 前 ;或 CExpression < 浮法 >
ex。解析 ("1 + 1") ;
std:: cout
- 2022-03-16 04:28:36下载
- 积分:1
-
随机表面生成
采用高斯分布函数,生成具有很强随机性的随机表面,可用于粗糙面、海面等起伏随机表面的生成,也可生成褶皱起伏表面
- 2022-04-18 21:15:56下载
- 积分:1