码迷,mamicode.com
首页 >  
搜索关键字:strcpy strncpy    ( 1000个结果
实验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
实验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
20175325 实现mypwd(选做,加分)
20175325 实现mypwd(选做,加分) ================================ 一、题目内容: 1 学习pwd命令 2 研究pwd实现需要的系统调用(man k; grep),写出伪代码 3 实现mypwd 4 测试mypwd 二、步骤: 功能:查看”当前工作目录“ ...
分类:其他好文   时间:2019-12-15 14:46:13    阅读次数:91
c++实现文件复制并修改相应属性
问题描述 完成一个目录复制命令mycp,包括目录下的文件和子目录, 运行结果如下: 思路 这道题目主要涉及文件读写操作和属性修改。需要支持文件夹复制、文件复制,在Linux下还要支持软链接的复制。 思路如下: 获取待复制目录的绝对路径 根据绝对路径进行dfs或者bfs搜索所有子目录项 判断子目录是属 ...
分类:编程语言   时间:2019-12-14 22:47:03    阅读次数:117
字符串处理函数集合
目录 1 c ? strcpy ? strcat ? strlen ? strncat ? strncpy ? strcspn ? strdup ? stricmp ? strerror ? strcmp strcpy 原型:extern char *strcpy(char *dest,char * ...
分类:其他好文   时间:2019-12-07 12:36:32    阅读次数:104
字符串相关函数
strcmp:C++自带函数 字典序 strcpy:交换顺序 getline: 本质上有两种getline函数,一种在头文件中,是istream类的成员函数。一种在头文件中,是普通函数。 在中的getline函数有两种重载形式: 作用是从istream中读取至多n个字符保存在s对应的数组中。即使还没 ...
分类:其他好文   时间:2019-12-07 12:09:31    阅读次数:87
NX二次开发-UFUN编辑图层类别名字UF_LAYER_edit_category_name
1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_layer.h> 5 6 7 UF_initialize(); 8 9 //创建图层类别 10 UF_LAYER_category_info_t category_info1; 11 strcpy(ca ...
分类:其他好文   时间:2019-11-13 22:13:04    阅读次数:99
NX二次开发-UFUN编辑添加哪些图层UF_LAYER_edit_category_layer
1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_layer.h> 5 6 7 UF_initialize(); 8 9 //创建图层类别 10 UF_LAYER_category_info_t category_info1; 11 strcpy(ca ...
分类:其他好文   时间:2019-11-13 22:12:17    阅读次数:94
1000条   上一页 1 ... 5 6 7 8 9 ... 100 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!