摘要: #include<iostream>#include<malloc.h>#include<stdlib.h>#include<stdio.h>using namespace std; typedef struct node{ char data; struct node *prior; struct 阅读全文
posted @ 2017-03-21 16:44 mykonons 阅读(561) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<malloc.h>#include<string.h>#include<stdio.h>using namespace std;#define maxsize 100typedef struct node{ int data; struct no 阅读全文
posted @ 2017-03-20 22:36 mykonons 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<malloc.h>#include<string.h>#include<stdio.h>using namespace std;#define maxsize 100typedef struct node{ int data; struct no 阅读全文
posted @ 2017-03-20 22:05 mykonons 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<malloc.h>#include<string.h>#include<stdio.h>#define max 100using namespace std;typedef struct node{ int data[max]; int len; 阅读全文
posted @ 2017-03-15 19:31 mykonons 阅读(352) 评论(0) 推荐(0) 编辑
摘要: c盘中program files文件夹中建立一个Java文件夹 设置环境变量在系统变量中JAVA_HOMEC:\Program Files\Java\jdk1.6.0_43 pathC:\Program Files\Java\jdk1.6.0_43\bin主要是找到bin文件地点 classpath 阅读全文
posted @ 2017-03-07 00:21 mykonons 阅读(159) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;public class c1 { public static void main(String args[]){ cs a=new cs(); //隐式调用 cs b=new cs("hello");//显式调用 c c1=new c("the"); c c2 阅读全文
posted @ 2017-03-06 22:40 mykonons 阅读(232) 评论(0) 推荐(0) 编辑
摘要: //1.继承时必须先实现父类的函数/*2.一个.java文件中只允许出现一个public class,并且用public修饰的类作为文件的名字,例如A.java中public class A{//do something}class B{//do something}class C{//do som 阅读全文
posted @ 2017-03-06 22:03 mykonons 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdlib.h>#include<malloc.h>#include<stdio.h>#define max 100using namespace std;typedef struct { int stack[max]; int top;}se 阅读全文
posted @ 2017-01-18 22:43 mykonons 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: //尽量多声名几个指针 避免使用到 头节点 还有 /* 第一点 :初始化和建造链表放在一起了 且返回值用linklist类型 第二点:多项式相加是本质是链表的交集 交集需要注意的是(比较指数大小 小的放在新链表上 指针后移 如果那个表空了直接把 剩下的链到新链表) #include<stdio.h> 阅读全文
posted @ 2017-01-11 20:44 mykonons 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 写的非常简单 看看思路就可以 //6 1 2 7 9 3 4 5 10 8#include<stdio.h>int a[100],n;void quick(int l,int r){ int i,j,temp,t; if(l>r) { return; } temp=a[l]; i=l; j=r; w 阅读全文
posted @ 2017-01-10 17:46 mykonons 阅读(145) 评论(0) 推荐(0) 编辑