- 博客(6)
- 收藏
- 关注
原创 字符串的长度、比较、拼接
//字符串的拷贝,比较,拼接#include"pch.h"#include<stdio.h>#include<iostream>#include<limits>using namespace std;int my_strelen(const char *str)//字符串的长度{ if (str == NULL) return -1;...
2019-04-07 18:50:57
359
原创 字符串的长度与拷贝学习
#include"pch.h"#include<stdio.h>#include<iostream>#include<limits>using namespace std;int My_Strelen(const char *ar){ if (ar == 0)return -1; const char *p = ar; whi...
2019-04-06 21:29:42
283
原创 小型计算器c实现
//小型计算器C实现#include<stdio.h>#include<iostream>using namespace std;int Add(int a, int b){ return (a+b);}int Sub(int a, int b){ return (a-b);}int Mul(int a, int b){ re...
2019-04-06 18:48:13
371
原创 年月日(c实现)
//模块化程序设计的思想//设计一个年月日的程序,实现输入年月日,输出是这一年的第几天。//首先考虑的是否为闰年,然后考虑这是哪一月的哪一天。//最后考虑是总共的天数#include"pch.h"#include<stdio.h>#include<iostream>using namespace std;/*bool Is_LeapYear(int year...
2019-04-06 17:09:21
1398
原创 冒泡原理以及c实现
主要讲下冒泡、选择、插入排序的原理以及c的代码实现(其实我是不想写的,因为大夫放学不走)首先说下这个冒泡排序,这个冒泡分为两种,单冒泡和双冒泡并行排序(其实这个双冒泡我也是今天才知道这个老师一天就讲一些有的没的,我都跟不上),废话不多说,开始吧(你要是觉得我废话多那就不要看,反正我写的我也不会看,错了我也不改)。1.单冒泡排序单冒泡,这个图是从上到下,实现的是从小到大的排序的功能...
2019-03-31 21:19:05
438
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人