自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 数字转换字符串

#include<iostream>using namespace std;char *intTostring(int num, char *result){ int len=0;int str1[100]; if(num<0){num=-num;*result='-';++result;} while(num){ str1[len++]=num%10+...

2020-04-28 23:15:57 175

原创 词频统计C++

#include<iostream>#include<fstream>#include<string>#include<stdlib.h>#include<cmath>using namespace std;static int kvcount=1;struct Data{ char word[30]; //stri...

2020-04-28 23:11:37 1853

原创 输入一个字符串,计算各字符的个数C++可运行

输入一个字符串,计算各字符的个数,按个数从大到小排序,个数相同按ASCLL码排序#include<iostream>using namespace std;struct MyStruct{ char z; int num;};int isexist(char a,MyStruct str[100]){ int flag=0; for(int i=0;i<10...

2020-04-28 23:05:24 1512

转载 二维点数据kmeans算法聚类C++实现(可直接运行)

转载自Wa_o_Fi#include<iostream>#include<vector>#include<math.h> #define k 2 //聚类数,可在kmeans算法处作参数using namespace std;struct Tuple //数据结构{ float attr1;//可看作x float attr2;//可看作...

2019-11-10 07:29:21 2076

原创 数组连续子数组最大和 C++求解

#define length 8 //数组长度int Array[8]={1,-2,4,8,-4,7,-1,-5}; //例子数据#include<iostream>using namespace std;#define length 8 //数组长度int width; //子数组长度int BestArray[length];//最大子数组int Best...

2019-09-24 20:59:31 429

原创 通讯录管理系统C++类对象实现

通讯录管理系统C++#include#include#include#includeusing namespace std;#define MAXPEOPLE 100static int scount=0;class telephone{char name[20]; //姓名char number...

2019-09-12 15:28:23 5693 19

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除