会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
请叫我巴依老爷
双向链表
摘要: 双向链表的对称性:
阅读全文
posted @ 2016-06-20 01:18 请叫我巴依老爷
阅读(115)
评论(0)
推荐(0)
c++入门05
摘要: #include "iostream"template<class T>class Sqlist{//顺序表 private: int n; int last;//表尾指针 int MaxSize;//最大变长 T*data;//表元素数组 public: Sqlist(int Max=10);//
阅读全文
posted @ 2016-06-18 01:37 请叫我巴依老爷
阅读(127)
评论(0)
推荐(0)
c++入门04
摘要: #include "iostream.h" //模版函数:高度复用代码。特点是代码相同数据类型不同时使用template <class T>T ads(T x){ return x<0?-x:x;}template <class M>class A{public: }; void main04(){
阅读全文
posted @ 2016-06-18 00:29 请叫我巴依老爷
阅读(106)
评论(0)
推荐(0)
c++入门02
摘要: #include "stdio.h"#include "iostream" void main02(){int max(const int &x,const int &y); int x,y; std::cin>>x>>y; int v=max(x,y); std::cout<<"较大数为:"<<v
阅读全文
posted @ 2016-06-18 00:28 请叫我巴依老爷
阅读(97)
评论(0)
推荐(0)
c++入门03
摘要: #include "iostream.h"//1函数重载 int add(int a,int b){ return a+b;}float add(float a,float b,float c){ return a+b+c;} float add(float a,float b){ return a
阅读全文
posted @ 2016-06-18 00:28 请叫我巴依老爷
阅读(111)
评论(0)
推荐(0)
c++入门01
摘要: #include "iostream"//预编译(在编译之前进行的操作)命令 文件包含命令//定义类(抽象数据类型)相当于定义类型 根据类型可以定义变量变量就是对象//如Data A;A就是对象。Data是数据类型#include "rect.h"//包含rectangle和Data类的声明定义 v
阅读全文
posted @ 2016-06-18 00:25 请叫我巴依老爷
阅读(134)
评论(0)
推荐(0)
SQL语言
摘要: name:scott password:12~y 数据插入: insert into emp(empno,ename) values(1212,'xiao_ming'); 数据库的查询语言 select e.ename,e.sal,s.grade from ename e join salgrade
阅读全文
posted @ 2016-06-18 00:18 请叫我巴依老爷
阅读(221)
评论(0)
推荐(0)
c语言文章编辑实现代码
摘要: 文章编辑 功能:输入一页文字,程序可以统计出文字、数字、空格的个数。 静态存储一页文章,每行最多不超过80个字符,共N行;要求(1)分别统计出其中英文字母数和空格数及整篇文章总字数;(2)统计某一字符串在文章中出现的次数,并输出该次数;(3)删除某一子串,并将后面的字符前移。 存储结构使用线性表,分别用几个子函数实现相应的功能; 输入数据的形式和范围:可以输入大写、小写的英文字母、任何数字及标点符号。 输出形式:(1)分行输出用户输入的各行字符;(2)分4行输出"全部字母数"、"数字个数"、"空格个数"、"文章总字数"(3)输出删除某一字符串后的文章;
阅读全文
posted @ 2016-06-15 21:24 请叫我巴依老爷
阅读(2014)
评论(0)
推荐(0)
关于c语言中的回车和换行
摘要: 无聊的c语言。今天被逼无赖要写程序交作业。然后发现了一个秘密。 好了牢骚就发到这了。 问题大概是这样的。发现,在使用回车键(也就是Enter键)时, 发现当按回车且要保存回车时发现,回车键将被保存为换行。回车的Asii码是13 换行的asii码是10.也就是保存的不是13而是10
阅读全文
posted @ 2016-06-13 22:13 请叫我巴依老爷
阅读(1178)
评论(0)
推荐(0)
关于使用数组创建数据链表的方法和基本操作
摘要: #include<stdio.h>#define MaxSize 10//定义链表的最大长度#include<stdlib.h> //链表的插入操作 void insertElem(int *sqlist,int*len,int index,int elem){ if(index>(*len)||i
阅读全文
posted @ 2016-06-07 21:23 请叫我巴依老爷
阅读(2433)
评论(0)
推荐(0)
导航
博客园
首页
联系
订阅
管理
公告