![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++后台
奕起学习
这个作者很懒,什么都没留下…
展开
-
int类型数组压缩为char类型数组存储
本文以C++语言实现int数组压缩存储以及解压缩取出的例子。 原理:int类型数占16位,char类型占8位。int转为char默认保留低八位。 #include<iostream> using namespace std; #include<cstdlib> #include<ctime> void pack(int a[], unsigned char b[], int n); void原创 2017-11-28 20:53:42 · 1666 阅读 · 0 评论 -
手机选择问卷调查分析——PHP与C++进行数据处理
本系统项目源代码:https://github.com/ahongl/StudentManage 手机选择问卷调查分析——PHP与C++进行数据处理 PHP连接数据库并操作 C++连接数据库并操作 完整调查问卷实现原创 2017-07-31 21:21:04 · 2570 阅读 · 0 评论 -
C++大整数相加
C++大整数相加算法,采用数组保存大整数,然后进行大整数的相加。#include<stdio.h> #include<memory.h> char *LongAdd(char *b, char *c); int main() { int a,n,i; char *b=new char[1000]; char *c=new char[1000]; scanf("%d",原创 2017-12-15 19:40:55 · 1760 阅读 · 0 评论 -
C++链表操作
#define _CRT_SECURE_NO_DEPRECATE #include<iostream> //#include<malloc.h> #include<stdio.h> using namespace std; struct Node { int number; char *a; /*int grade;*/ Node * next; }; Node* i原创 2017-12-15 19:49:57 · 121 阅读 · 0 评论 -
C++文件读写对象
将对象数组对象写入文件,并读取出来,并重新赋值。#define _CRT_SECURE_NO_WARNINGS #include<iostream> #include <stdio.h> #include<cmath> using namespace std; struct STU { int sn; char name[20]; int score; } students;原创 2017-12-17 17:10:33 · 4249 阅读 · 1 评论