- 博客(15)
- 资源 (2)
- 收藏
- 关注
原创 运算符重载
#include "iostream"using namespace std;class Complex{public: int a; int b;public: Complex(int a = 0, int b = 0) { this->a = a; this->b = b; } void pr...
2018-06-12 18:57:59
148
原创 c++_友元函数
#include "iostream"using namespace std;class A{private: int i; int a; int b;public: A(int a, int b) { this->a = a; this->b = b; }public: friend v...
2018-06-12 14:58:50
163
原创 单链表--基本操作 (增删改销毁、逆置)
#define _CRT_SECURE_NO_WARNINGS#include "stdio.h"#include "malloc.h"typedef struct DataList{ int x; struct DataList *next;}DataList;// 链表创建int List_Create(DataList **p){ DataList ...
2018-06-02 19:38:56
718
原创 结构体套二级指针.c
#define _CRT_SECURE_NO_WARNINGS#include "stdio.h"#include "string.h"//// 查找字符在数组中出现的位置//void Search_Str_Pos(const char *table[], const int size,char *str, int *pos)//{// char **temp;// int ...
2018-05-24 23:28:05
226
原创 结构体套一级指针
#define _CRT_SECURE_NO_WARNINGS#include "stdio.h"#include "string.h"//// 查找字符在数组中出现的位置//void Search_Str_Pos(const char *table[], const int size,char *str, int *pos)//{// char **temp;// int ...
2018-05-24 21:24:33
210
原创 两个赋值指针变量挖字符串.c(高级)
#include "string.h"#include "stdio.h"//遍历扫描字符串中字符出现的个数int Scan_Charnum(char *str,int *char_count,char c){ int num = 0; char *temp_str = str; char *temp; if (str == NULL
2018-05-19 22:01:07
158
原创 玩轉多級指針
#include "stdio.h"#include "string.h"int getMem(char ***p,int num){ char **temp = NULL; int i = 0; if (p == NULL) { return -1; } temp = (char **)malloc(sizeof(char *...
2018-05-16 15:04:10
129
原创 二级指针做输入第三种数据类型
#define _CRT_SECURE_NO_WARNINGS#include "stdio.h"#include "string.h"//打印函数---打印数组void print_array(char *string_word, char *array[], int num){ int i = 0; printf("%s\n", string_word); f...
2018-05-15 22:56:07
158
原创 二级指针做输入第二种数据类型
#define _CRT_SECURE_NO_WARNINGS#include "stdio.h"#include "string.h"//打印函数---打印数组void print_array(char *string_word, char array[10][20], int num){ int i = 0; printf("%s\n", string_word);...
2018-05-15 22:26:20
216
原创 二级指针做输入第一种数据类型
include “stdio.h”include “string.h”//打印函数—打印数组 void print_array(char *string_word,char *array[],int num) { int i = 0; printf(“%s\n”, string_word); for (i = 0; i < num; i++) ...
2018-05-15 21:17:42
162
原创 查找字符串子串个数
#include "stdio.h"#include "string.h"int count_str(char *p,char * sub,int *num){ int temp=0; if (p == NULL || sub == NULL || num == NULL) return -1; while (strstr(p, sub)!=NUL...
2018-05-15 18:49:32
1482
原创 C语言-排序(冒泡、选择)封装
#include "stdio.h"// 打印函数void print(int arrary[], int num){ int i = 0; for (i = 0; i < num; i++) printf("%d\n", arrary[i]);}// 排序--冒泡void bubbule_sort_array(int array[], int n...
2018-05-03 22:26:29
556
原创 C语言进阶学习--作业
// function: 去除一组字符串中的空格// author: sunny townvoid trimSpace(char *inbuf, char *outbuf){ char *temp = NULL; temp = inbuf; while (*temp) { while (*temp == ' ') { ...
2018-04-18 11:06:52
128
原创 java实现简单五子棋
package crazyit;/**Description: * CopyRight,stc * program 简单五子棋的设计 * Date:6.17 * @author sunt * @version 1.0 */import java.io.BufferedReader;import java.io.InputStreamReader;public class Gobang
2016-06-17 09:52:33
950
原创 java实现浮点数转换成人民币读法字符串,希望大家多多指教!
java实现浮点数转换成人民币读法字符串 package crazyit;public class Num2Rmb { private String[] hanArr = {"零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"}; private String[] danArr = {"十", "百", "千", "万"}
2016-06-16 11:58:28
485
svn的所有jar包
2016-05-23
SVN的jar包
2016-05-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人