
自学自编代码
文章平均质量分 68
huzhen919
2005年低开始学习Java,2006年学会用java开发基本的管理软件,2007年做网络半年,从西安到广州,北京,看到大城市的软件公司确实很让人心动,最主要是视乎我还达不到那些大公司要求。现在我开始适应那,因为每个公司进去并不是我们想象的那样,很多需要重头开始!
展开
-
SQL简单脚本查询
select count(*) as 人数 from student where classid = 1goselect sum(sage) as 年龄总和 from student goselect avg(sage) as 平均年龄 from studentgoselect max(sage) as 最大年龄 from studentgosel原创 2009-06-24 23:13:00 · 724 阅读 · 0 评论 -
C++范型
#include#include#include#includeusing namespace std;templatetype add(type a,type b){ return a+b;}templateclass Array{ private: type* p; public: Array() {原创 2009-06-24 23:32:00 · 566 阅读 · 0 评论 -
C++模板
#include/*函数模板*/template //type 叫做模板参数type add(type a,type b){ type c = a+b; return c;}class complex //重载{public: double a; double b; complex() { } complex(do原创 2009-06-24 23:34:00 · 666 阅读 · 0 评论 -
C++类,构造函数,修饰符等
#include#includeclass student{private: int sid; char name[20]; int age; int score; const int uid; //声名:uid为常量,声名时不能初始化 static int count; //声名:count为静态成员,必须在类的内部声名,原创 2009-06-24 23:39:00 · 676 阅读 · 0 评论 -
C++数据结构算法
#includetypedef struct position{ int i; int j;}POSITION;typedef struct node{ POSITION pos; struct node* pNext;}NODE,*PNODE;class mystack{private: PNODE pTop,pBottom原创 2009-06-24 23:42:00 · 494 阅读 · 0 评论 -
C++运算符的重载
#includeclass complex{public: int a; int b;public: complex() { } complex(int x,int y) { this->a = x; this->b = y; } complex operator+(complex c) { complex cm; c原创 2009-06-24 23:49:00 · 342 阅读 · 0 评论 -
C二叉树
#include #include typedef char DataType;typedef struct Node { DataType data; /*数据域*/ struct Node *leftChild; /*左子树指针*/ struct Node *rightChild; /*右子树指针*/}BiTreeNode;原创 2009-06-25 00:00:00 · 1269 阅读 · 1 评论 -
C++链表list
#includetypedef struct node { int val; struct node* pNext;}NODE,*PNODE;//NODE == struct node//PNODE == struct node*class MyList{private: PNODE pHead;//struct node* pHead原创 2009-06-25 00:04:00 · 2140 阅读 · 0 评论 -
C算法专题
#include#include//冒泡排序……int a传一个数组,int n数组个数。void maopaoSort(int a[],int n){ int k; for(int i=0;i<n-1;i++) { for(int j=0;j<n-1-i;j++) { if(a[j]>a[j+1]) { k = a[原创 2009-06-25 00:05:00 · 433 阅读 · 0 评论 -
C++单链表的动态创建,查找,遍历,删除,插入,添加,排序
//单链表的动态创建,查找,遍历,删除,插入,添加,排序#includetypedef struct node //定义一个结构体,在c++中也是一个类{ int val; struct node* pNext;}NODE,*PNODE;//NODE == struct node 定义一个新的接点//PNODE == struct node* 定义一个原创 2009-06-25 00:10:00 · 19064 阅读 · 3 评论 -
构造函数和析构函数
#include#define SIZE 3class student{ //属性private: int sid; char name[20]; int age; char sex; float chinese; float math; float english; float total; //行为public:原创 2009-06-24 23:16:00 · 264 阅读 · 0 评论 -
C语言打印回文---------判断一句话中有几个单词------求和
#includeint a[10];int chaifen(int x){ int i=0; do { a[i]=x%10; x=x/10; i++; }while(x!=0); return i;}bool add(int x){ bool flag=true; for(int i=0,j=x-1;i<=j;原创 2009-06-24 23:17:00 · 1135 阅读 · 0 评论 -
C++构造函数重载
#include#includeclass student {public: int sid; char name[15]; int age; student() { this->sid = 1001; strcpy(this->name,"张三"); this->age = 20; } student(int sid,char *原创 2009-06-24 23:49:00 · 529 阅读 · 0 评论 -
C语言函数指针
#includeint add(int a,int b){ return a+b;}int mul(int a,int b){ return a*b;}void main(){ int (*pf)(int a,int b);//定义了一个函数的指针 pf //pf 必须指向带有两个整数作为参数原创 2009-06-24 23:17:00 · 291 阅读 · 0 评论 -
C语言指针,malloc.h函数使用
#include#includestruct student{ int sid; char name[20]; float score;};void Input(student* ps,int n){ for(int i=0;i<n;i++) { printf("请录入第 %d 个学生信息:/n",i+1); printf("sid原创 2009-06-24 23:14:00 · 1294 阅读 · 0 评论 -
求质数和----------算年份--------=统计各个类型数据的个数
求质数和 #includebool prime(int k){ if(k==1) { return false; } for(int i=2;i<k;i++) { if(k%i==0) { return false; } } return true;}void main(){ int n;原创 2009-06-24 23:21:00 · 538 阅读 · 0 评论 -
C链表节点大小
#include #include #include typedef struct NODE{ int data; struct NODE *pNext;}SLNode;//求练表节点的大小int ListSize = sizeof(SLNode);SLNode * head = NULL; //头指针//初始化void In原创 2009-06-25 00:02:00 · 1655 阅读 · 0 评论 -
SQL异常和游标
11月10日异常和游标declare rec scott.emp%routypebegin select count (*) into cnt from scott.emp if cnt > 10 then raise too many cmp end if;原创 2009-06-25 00:08:00 · 366 阅读 · 0 评论 -
XML基本东西
类型定义命名空间 什么是文档定义文件? DocumentTypeDefintion约束XML使得同一个领域或 规范相同。 Enumerated枚举 Required必须 zmplied隐藏 nmtoken只能为英文 Enumerated事先定义的一些值后在选择 自定义实体: 引用这个实体:&pic 元素定义用PCDATA DTD三种类型:内部DTD,外部DTD,内外DTD1.直原创 2009-06-25 00:11:00 · 556 阅读 · 0 评论 -
软件工程需要简单掌握的
……软件工程……软件需求规格说明书1、需求的特征和重要性2、定义软件需求和术语SRS。3.需求分析活动一……什么是需求? 有问题存在,并且需要解决方安! 有机会可以根据这个创意一个软件产品! SRS软件规格说明书 SOFTWARE REQUIREMENT SPECIFICATION二……需求工程目标是什么,要实现什么……三…原创 2009-06-25 00:13:00 · 562 阅读 · 0 评论 -
C语言写的位移运算,一看就懂
很简单的C语言写的,不多解释,看代码就懂 #includevoid main(){ unsigned int x; int p=4; int n=3; int z; //z=(x >> (p+1-n)) & ~(~0 << n);//z=3 //>> <<左右移动操作符 只能转换为二进制后在移。 //>>>右移,无符号的unsigned的右移原创 2009-06-24 23:07:00 · 918 阅读 · 0 评论 -
指针冒泡算法====学生成绩的排序
#include#includevoid put(int* p,int n){ for(int i=0;i<n;i++) { printf("请输入第%d个数:",i+1); scanf("%d",p+i); }}void sort(int* p,int n){ int temp; for(int i=0;i<n-1;i++)原创 2009-06-24 23:27:00 · 814 阅读 · 0 评论 -
C++友元函数
如何声明友元函数 #include#includeclass student;class zhangyaxiang{public: void Printup(student st4);};class student{private: int sid; char name[20];//protected://原创 2009-06-24 23:46:00 · 375 阅读 · 0 评论 -
C++函数重载
#include ---------------函数重载#includeclass student{private: int sid; char name[20]; int age;public: student() { this->sid=0; strcpy(name,""); this->age=0; } student(in原创 2009-06-24 23:50:00 · 349 阅读 · 0 评论 -
C++数组array
#includeclass Array{private: int* p; int n;//数组总长 int cnt;//元素个数public: Array() { p = NULL; n = 0; cnt = 0; } Array(int n) { p = new int[n]; this->n = n;原创 2009-06-25 00:08:00 · 1503 阅读 · 0 评论 -
C语言一些运算符的使用
#includevoid main(){ int i=5; int a,b; a=++i;//表示i加1后在赋值给a printf("a=%d/n",a);//a=6 b=i++;//表示将i的值赋给b后, b在加1 printf("b=%d/n",b);//b=6} 二元运算 #includevoid main(){ int原创 2009-06-24 23:10:00 · 411 阅读 · 0 评论 -
C++学习大纲
C++ 1. C部分(结构化程序设计部分) 数据类型 和 变量 运算符 算术 关系 逻辑 位运算 控制流程 顺序 选择 if else switch case 循环 while for do while 函数 高级概念 自定义数据类原创 2009-06-25 00:15:00 · 938 阅读 · 0 评论