摘要: 我大摇大摆的来了 上帝懂编程? 构造器 : 是一个默认属性吗 析构器到底又是什么了:对前面所做的事情 进行清理; 构造器 -- 是一种特殊的方法, 它和普通方法的主要区别: --构造器的名字必须和它所在类的的名字一样 --系统在创建 某个类的实例时会第一时间自动调用这个类的构造器 --构造器永远不会返回任何值 创建构造器 class Car{Car(void):}定义构造器:注意大小写与类... 阅读全文
posted @ 2013-03-01 15:02 搅着青春吹泡泡 阅读(163) 评论(0) 推荐(0)
摘要: 对继承关系的描述转化为c++代码 -class sublclass: public superClass{…} -class pig : public Animal{…} 工具 -- 这里介绍一款 编译器 code:Blocks svn bulid 各种集合#include <iostream>#include <string>class Animal //this i... 阅读全文
posted @ 2013-03-01 14:37 搅着青春吹泡泡 阅读(205) 评论(0) 推荐(0)
摘要: what is dns? 有什么用 如何设置 一般常用的有什么 阅读全文
posted @ 2013-03-01 13:57 搅着青春吹泡泡 阅读(125) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <stdlib.h>struct Node{ int data; struct Node *pnext;} ;struct Node * creat_list(void);int main(int argc, char *argv[]){ struct Node * head =NULL; head = creat_list(... 阅读全文
posted @ 2013-03-01 12:22 搅着青春吹泡泡 阅读(515) 评论(0) 推荐(0)
摘要: 1: //w我们来造一辆车 2: 3: #include <iostream> 4: #define FULL_GAS SS 5: using namespace std; 6: class Car{ 7: public: //这里是冒号 不是分号 8: string color; 9: string engime; //引擎 10: float gas_ta... 阅读全文
posted @ 2013-02-28 23:31 搅着青春吹泡泡 阅读(176) 评论(0) 推荐(0)
摘要: #if(0)#include <iostream>void changeage(int age,int newage);using namespace std;int main(int argc, char *argv[]){ int age =24; cout <<"MY age is"<<age<<endl; changeage(age,age+1); cout<<"Now my age ... 阅读全文
posted @ 2013-02-28 22:08 搅着青春吹泡泡 阅读(171) 评论(0) 推荐(0)
摘要: 什么是联合查询 union是什么意思 如何使用 我的高亮语法还不出来,我想死了 阅读全文
posted @ 2013-02-28 20:55 搅着青春吹泡泡 阅读(110) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-02-28 11:03 搅着青春吹泡泡 阅读(96) 评论(0) 推荐(0)
摘要: 这个是大家最早接触的算法吧总在写 总在错, 面试也还忘记学习就是这么个过程, 温故才知新, 望自己谨记忘记不要紧复习就好//排序是有很多种方法的 ,完成从小到大的排列 #include <stdio.h>void sort(int *a,int len){int i=0; int j; int t; for(i=0;i<len;i++) { for(j=0;j<len-i-1;j++) { if(a[j]>a[j+1]) { t=a[j]; a[j]=... 阅读全文
posted @ 2013-02-28 10:52 搅着青春吹泡泡 阅读(272) 评论(0) 推荐(0)
摘要: 1.编写程序在字符串ABCDEF中匹配字符串CDE,并给出时间复杂度#include <stdio.h>#include <string.h>int main(int argc, char *argv[]){ char *str="abcdedab"; char *str2="abd"; int i; int count =0; i=strlen(str2); int n; while(*str !='\0') { for(n=0;n<i;n++) { if( (*(str+n)) != (*(str2+n) 阅读全文
posted @ 2013-02-28 02:49 搅着青春吹泡泡 阅读(378) 评论(0) 推荐(0)