- 博客(9)
- 问答 (1)
- 收藏
- 关注
原创 串的赋值操作(C++)
#include <iostream>#include <malloc.h>using namespace std;typedef struct{ char* ch; int length;} Str;void Strassign(Str& str,char *ch)//结构体的引用{ cout<<str.ch<<endl; if(str.ch)
2017-04-30 16:55:04 3284
原创 传递指针和传递指针的指针
总是不懂指针 看了一个csdn的问题 豁然开朗在写一个栈的东西,在销毁的时候有点小问题#define POSITION int#define SIZE_T int#define ELEMTYPE char#define BUTTOM -1struct stStack {POSITION top;ELEMTYPE *buffer;SIZE_T MAXNUM;SIZE_T lengt
2017-04-26 15:33:56 1071
原创 hashmap的key排序--还不懂
按这个人的写的package test;import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.
2017-04-24 22:42:19 526
原创 Calendar类
package test;import java.util.*;public class Pillar { public static void main(String args[]){ Scanner in=new Scanner(System.in); int year=in.nextInt(); int month=in.nextInt(
2017-04-24 18:08:05 133
原创 复数相加减(对象的拷贝构造函数)
package test;import java.util.*;class Complex{ int a; int b; Complex(int a,int b) { this.a=a; this.b=b; } Complex() { } Complex(Complex t1){
2017-04-20 23:36:41 407
原创 大整形数--两种
自己写的package test;import java.math.BigInteger;import java.util.*;public class Main{ public static void main(String[] args) { BigInteger n1=new BigInteger("100"); BigInteger n2=ne
2017-04-20 20:28:11 188
原创 Arraylist的对象排序
package test;import java.awt.List;import java.util.ArrayList;import java.util.Collection;import java.util.Collections;import java.util.Scanner;//write here//要实现comparable接口中的compareToclass Emplo
2017-04-19 23:26:01 339
原创 数据结构 hanoitower --c语言
#include <stdio.h>#include <stdlib.h>void HanoiTower(int n,char from,char aux,char to){ if(n==1) printf("move 1 from a to c\n"); else { HanoiTower(n-1,from,to,aux);
2017-04-03 22:18:24 552
空空如也
用hibernate连mysql出错
2017-12-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人