码迷,mamicode.com
首页 >  
搜索关键字:strcpy memcpy    ( 1401个结果
题解 P1203 【[USACO1.1]坏掉的项链Broken Necklace】
"[USACO1.1]坏掉的项链Broken Necklace" "22892 破碎的项链" 方法一:很容易想到枚举断点,再分别两头找,但是要注意很多细节 ...
分类:其他好文   时间:2019-12-31 21:39:58    阅读次数:79
实验七
《实验七》 验证性实验1: 验证性内容2: 验证性内容3: 验证性内容4: 以二进制形式存入file4.dat后,内容不可以直接读出 编程练习: #include <stdio.h>#include <stdlib.h>#include <string.h>const int N = 5;typed ...
分类:其他好文   时间:2019-12-31 17:08:02    阅读次数:83
实验七
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:其他好文   时间:2019-12-31 01:38:21    阅读次数:79
实验6
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:其他好文   时间:2019-12-25 01:54:14    阅读次数:99
A1006
输入n行员工id以及到达和离开的时间,输出最早到达的员工的id和最晚离开的员工的id 注:字符串赋值函数strcpy(目标字符串,原字符串)字符串之间的赋值使用该函数,需要#include<string.h> 1 #include<cstdio> 2 #include<string.h> 3 int ...
分类:其他好文   时间:2019-12-24 14:00:06    阅读次数:153
实验6
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:其他好文   时间:2019-12-24 09:53:26    阅读次数:59
实验六
#include <stdio.h> #include <stdlib.h> const int N=5; typedef struct student { long no; char name[20]; int score; }STU; void input(STU s[], int n); in ...
分类:其他好文   时间:2019-12-22 20:22:29    阅读次数:96
C# 接收C++ dll 可变长字节或者 字符指针 char*
网络上查找到的几乎都是 需要提前固定知道 接收字符(字节)数据的大小的方式,现在的数据大小方式 不需要提前知道如下 思路: 1 .C++,返回变长 指针或者字节 的地址给C# 接收,同时返回 该地址的数据长度给C#。 2 .C# 通过C++ 返回的数据长度,创建接收数据的byte[] 长度。 3.C ...
分类:编程语言   时间:2019-12-21 18:55:06    阅读次数:95
实验5
// 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i ...
分类:其他好文   时间:2019-12-15 22:18:28    阅读次数:106
字符串排序解题报告
字符串排序 题目 思路及流程图 1.定义数组用于储存str[5][80] 2.输入输入字符串 3.用选择排序将字符串从小到大排列 4.按题目格式输出 流程图: 核心代码 问题 1.scanf中把所读入的字符串传递给str[i]即可 2.排序时不能直接将一个数组赋值给另一个数组,要调用strcpy函数 ...
分类:编程语言   时间:2019-12-15 20:15:53    阅读次数:123
1401条   上一页 1 ... 9 10 11 12 13 ... 141 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!