- 博客(5)
- 收藏
- 关注
原创 排序
记录一下,排序的一些算法:选择排序,插入排序,冒泡排序,希尔排序,快速排序还有数组输入,随机数快速初始化数组的小心得。#include<stdio.h>#include<stdlib.h>#include<time.h>int array_length = 6;int n;void chose_sort(int* arr);void insert_sort(int* arr);void bubble_sort(int* arr);..
2020-12-24 12:47:33
90
原创 内部类和外类的相互调用
package Dot;public class dot{ //静态内部类_水仙花数计算 /* static staticInner _staticInner=new staticInner(); public static class staticInner { public int i,a,b,c; public void function() { for(i=100;i<=9.
2020-08-08 22:00:58
166
原创 重载输出流与重载++,--运算
为什么将重载的输出流第二个参数设置为常引用编译器就不报错了啊?求教学?#include<iostream>using namespace std;class point{ int _x, _y;public: point(int x = 0, int y = 0) :_x(x), _y(y) {} point& operator++(); point operator++(int); point& operator--(); point operato.
2020-06-14 19:53:50
163
原创 ostresm简单使用
#include<iostream>using namespace std;class point{ public: int x; int y; point(int x, int y) :x(x), y(y) {} friend ostream& operator << (ostream &_cout, const point& p);};ostream& operator<< (ostream &_c.
2020-06-13 17:11:33
162
原创 动态二维字符数组:
动态二维字符数组:为什么输出前后每个字符串的地址都没变,但输出后的字符串明显不对?求大佬赐教【谢谢】//动态二维数组测试#include<stdio.h>#include<stdlib.h>void Function(char* p,int n);int main(){char* p = NULL;int m,n,k;printf(“please inp...
2020-02-02 18:45:01
611
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人