
学习ING
文章平均质量分 54
qsd007
这个作者很懒,什么都没留下…
展开
-
推荐个好用轻便的UML画图工具
请大家推荐个好用轻便的UML画图工具楼主kerosun()2005-07-10 20:11:13 在 Java / 非技术区 提问不需要代码生成功能,只要能画各种UML图,操作简便即可。 问题点数:100、回复次数:15Top 1 楼qiyadeng(。。。。。)回复于 2005-07-10 20:23:18 得分 0 roseTop2 楼wingtrace(虽然生活很艰原创 2007-04-28 18:33:00 · 13792 阅读 · 2 评论 -
十二章 类————返回自身类型的引用*this const
#include #include using namespace std;class Test{public: Test() { m_int = 0; } ~Test(){};protected:private: int m_int;public: Test& get(); Test& move(); Test& display() const;};Test& Test::displa原创 2007-03-13 14:40:00 · 665 阅读 · 0 评论 -
十二章 类————返回自身类型的引用*this
#include #include using namespace std;class Test{public: Test() { m_int = 0; } ~Test(){};protected:private: int m_int;public: Test& get(); Test& move();};inline Test& Test::move(){ m_int++; retu原创 2007-03-13 14:31:00 · 846 阅读 · 0 评论 -
十二章 类————类的数据成员可以是指向自身类型的指针或引用
类的数据成员可以是指向自身类型的指针或引用class link{ link *next;}原创 2007-03-13 14:24:00 · 1040 阅读 · 0 评论 -
十二章 类————inline格式
#include #include using namespace std;class Test{public: Test() { m_int = 0; } ~Test(){};protected:private: int m_int;public: int get();};inline int Test::get(){ cout return 0;}int main(){ Tes原创 2007-03-13 14:22:00 · 615 阅读 · 0 评论 -
pl/sql 笔记1
1 基本块结构declarebeginexceptionend;3.2 词法单元 引证标识符 "a number AAA"3.2.3 字符型文字mikes string 表示 mikes string 表示一个单引号3.3 变量声名3。3。1 声明语法variable_name type [CONSTANT] [原创 2007-03-13 11:31:00 · 581 阅读 · 0 评论 -
inserter 和front_inserter的区别code
#include #include #include #include using namespace std;void printList(list ilist){ list::iterator it_ilist; for (it_ilist = ilist.begin(); it_ilist != ilist.end(); it_ilist++) { cout } cout}int原创 2007-03-12 16:49:00 · 1033 阅读 · 0 评论 -
linux ps
1)ps a 显示现行终端机下的所有程序,包括其他用户的程序。 2)ps -A 显示所有程序。 3)ps c 列出程序时,显示每个程序真正的指令名称,而不包含路径,参数或常驻服务的标示。 4)ps -e 此参数的效果和指定"A"参数相同。 5)ps e 列出程序时,显示每个程序所使用的环境变量。 6)ps f 用ASCII字符显示树状结构,表达程序间的相互关系转载 2007-03-12 13:18:00 · 1229 阅读 · 0 评论 -
文本查询程序(关联容器使用)二
//TextQuery.h#pragma once#include #include #include #include #include #include #include #include using namespace std;class TextQuery {public: typedef vector::size_type line_no; void read_file(if原创 2007-03-07 16:28:00 · 600 阅读 · 0 评论 -
如何一次终止同一名字的多个进程
ps -aux|grep csh 假设得到: root 1345 1345 ……… /bin/csh root 2434 2434 ……… /bin/csh root 3678 3678 ……… grep csh 2.执行kill命令: kill 1345 2434 而如果我们原创 2007-03-12 13:26:00 · 762 阅读 · 0 评论 -
linux grep
用‘grep’搜索文本文件如果您要在几个文本文件中查找一字符串,可以使用‘grep’命令。‘grep’在文本中搜索指定的字符串。假设您正在‘/usr/src/linux/Documentation’目录下搜索带字符串‘magic’的文件:$ grep magic /usr/src/linux/Documentation/* sysrq.txt:* How do I enable the m转载 2007-03-12 13:19:00 · 574 阅读 · 0 评论 -
十二章 类————返回自身类型的引用 const与非const的重载,和mutable(好的风格)
#include #include #include using namespace std;class Test{public: Test() { m_int = 0; contents ="hello qsd~!/n";access_ctr = 0; } ~Test(){};protected:private: int m_int; string contents; mutable s原创 2007-03-13 14:59:00 · 702 阅读 · 0 评论 -
友元和static 关键字在类的内部出现就可以了
友元和static 关键字在类的内部出现就可以了原创 2007-03-13 16:50:00 · 682 阅读 · 0 评论 -
十二章 类————static
------------------------------------------static在类内部声明 static double interestRate; 在类外定义 double Account::interestRate= 10;------------------------------------------ 特殊的整型 const s原创 2007-03-13 17:01:00 · 612 阅读 · 0 评论 -
长用不变的FTP账号
长用不变的FTP账号 长期不变的FTP账号 极品匿名ftp ftp://219.157.126.10 影视FTP(太原理工大学终极网域FTP) ftp://finalmov:finalmov@202.207.240.119转载 2007-04-17 14:04:00 · 2581 阅读 · 0 评论 -
TinyXml学习笔记
TinyXml学习笔记张弛com>一、 TinyXml的特点TinyXml是一个基于DOM模型的、非验证的轻量级C++解释器。1. SAX和DOM目前XML的解析主要有两大模型:SAX和DOM。其中SAX是基于事件的,其基本工作流程是分析XML文档,当发现了一个新的元素时,产生一个对应事件,并调用相应的用户处理函数。这种方式占用内存少,速度快,但用转载 2007-04-17 13:51:00 · 1139 阅读 · 0 评论 -
交换空间和虚拟内存的区别
交换空间和虚拟内存的区别在于使用的系统不一样,产生的技术手段不一样,以下是详解,希望对你有所帮助! 交换空间: Linux 中的交换空间(Swap space)在物理内存(RAM)被充满时被使用。如果系统需要更多的内存资源,而物理内存已经充满,内存中不活跃的页就会被移到交换空间去。虽然交换空 间可以为带有少量内存的机器提供帮助,但是这种方法不应该被当做是对内存的取代。交换空间位于硬盘驱动器上转载 2007-04-17 15:54:00 · 4093 阅读 · 0 评论 -
ERP(Enterprise ResourcePlanning)企业资源计划系统
ERP(Enterprise ResourcePlanning)企业资源计划系统,是指建立在信息技术基础上,以系统化的管理思想,为企业决策层及员工提供决策运行手段的管理平台。 一天中午,丈夫在外给家里打电话:"亲爱的老婆,晚上我想带几个同事回家吃饭可以吗?"(订货意向) 妻子:"当然可以,来几个人,几点来,想吃什么菜? " 丈夫:"6个人,我们7点左右回来,准转载 2007-04-07 19:53:00 · 2362 阅读 · 0 评论 -
MapInfo生成gst文件的步骤
1、 用Mapinfo Professional 打开地图文件中的 .wor文件。2、 选择菜单 工具->工具管理器。3、选中Mapx Geoset工具,确定。 3、 选择菜单 工具->Mapx Geoset工具->另存Mapx Geoset为 ,选择 4.5 确定 保存gst文件为 map.gst 到地图目录原创 2007-04-03 09:13:00 · 5811 阅读 · 3 评论 -
在Win 2000 XP 中移动收藏夹
在Win 2000 XP 中各个用户的收藏夹被保存在自己特定的文件夹中,不过我们完全可以将它移动到其他地方让所有用户都可以看到,具体方法如下: 打开注册表编辑器,进入主键[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/User Shell Folders],然后将其中的“Favorites”的键原创 2007-04-02 11:16:00 · 977 阅读 · 0 评论 -
istream迭代器问题解决了
#include #include #include using namespace std;int main(){ vector ivec; istream_iterator cin_it(cin); istream_iterator end_of_steam; cout while (cin_it != end_of_steam) { cout ivec.push_back原创 2007-03-14 15:37:00 · 730 阅读 · 0 评论 -
十二章 类————初始化const或引用类型要用初始化列表,隐式转换问题等,友元
初始化const或引用类型要用初始化列表 -------------------------------------------------Test mytest();///// errorTest mytest;/////rightTest mytest= Test();/////right-------------------------原创 2007-03-13 16:36:00 · 758 阅读 · 1 评论 -
Advanced Programming in the UNIX® Environment: Second Edition(Chapter 3. File I/O 3.1 3.2 3.3)
Chapter 3. File I/O 3.1. IntroductionWell start our discussion of the UNIX System by describing the functions available for file I/Oopen a file, read a file, write a file, and so on. Most file转载 2007-03-14 12:44:00 · 1218 阅读 · 0 评论 -
析构 复制 赋值 三法则
复制构造函数Sales_item 是一个类Sales_item::Sales_item (const Sales_item &obj):isbn(obj.isbn),units_sold(obj.units_sold{}----------------------------------------------------复制构造函数声明为private可以防止非友元和成员原创 2007-03-14 14:32:00 · 770 阅读 · 0 评论 -
神秘的DUAL
DUAL ? 有什么神秘的? 当你想得到ORACLE系统时间, 简简单单敲一行SQL 不就得了吗? 故弄玄虚…. SQL> select sysdate from dual; SYSDATE --------- 28-SEP-03 哈哈, 确实DUAL的使用很方便. 但是大家知道DUAL倒底是什么OBJECT, 它有什么特殊的行为吗? 来,我们一起看转载 2007-03-12 13:17:00 · 581 阅读 · 0 评论 -
linux 神奇的压缩指令与正规表示法
》》 *.Z compress程序压缩的文件 *.bz2 bzip2程序压缩的文件 *.gz gzip程序压缩的文件 *.tar tar程序打包的数据,没有经过压缩 *.tar.gz tar程序打包的文件,且经过gzip压缩》》compress -d:解压缩参数 example: 先复制/etc/man.config到root下,再将他压缩 c转载 2007-03-09 11:10:00 · 733 阅读 · 0 评论 -
泛型算法——容器元素的排序算法(统计长度不小于6的单词个数)sort unique stable_sort count_if
#include #include #include #include #include #include #include using namespace std;// 打印容器内容void printVec(const vector &vecT){ vector::const_iterator vecIt= vecT.begin(); for (; vecIt != vecT.end()原创 2007-03-09 11:07:00 · 1083 阅读 · 0 评论 -
泛型算法之——fill fill_n back_inserter copy replace replace_copy
泛型算法之——fill fill_n back_inserter copy replace replace_copy(未解决问题)#include #include #include #include #include #include #include using namespace std;// 打印容器内容void printVec(const vector &vecT){ ve原创 2007-03-09 10:21:00 · 1200 阅读 · 0 评论 -
文本查询程序(关联容器使用)一
TextQuery文件输入,查找单词,输出出现单词的行数及那一行。任务:1:用户指定文件名,程序存文件内容,以便输出每个单词的原始行2:每一行分解成各个单词,并记录每个单词所在的行。输出行号时,保证以升序输出,且不重复。3:对单词返回所有的行及行好4:每行对应一个行号数据结构:1:用vector存输入文本的副本,每行一个string元素。读取时用行下标即可。2:原创 2007-03-07 14:20:00 · 575 阅读 · 0 评论 -
vector——ing
//h.h#pragma once#include #include #include #include #include //CStringusing namespace std;typedef struct { int i; string str; CString Cstr;}node;template void PushMyVector(vector &str){ T word原创 2007-01-18 13:17:00 · 680 阅读 · 0 评论 -
shell case...esac
[dev@abtsvr shellTest]$ vi test7.shcase $1 in one) echo "one" ;; two) echo "two" ;; three) echo "three" ;; *) echo "usage{one|two|three|" e原创 2007-03-09 14:16:00 · 1636 阅读 · 0 评论 -
C++资源之不完全导引(完整版)
C++资源之不完全导引(完整版)来源:www.youkuaiyun.com撰文:曾毅、陶文声明:本文2004年5月首发于《优快云开发高手》,版权归该杂志与《程序员》杂志社所有。-------------------------------------------------------------------------------- 1,前言 无数次听到“我要开始学习C++!”转载 2007-03-08 08:52:00 · 673 阅读 · 0 评论 -
C++Primer4 笔记
C++Primer4 笔记 第一章 快速入门1 std::cin, std::cout, std::endl using namespace std; // 使用std命名空间 cin >> para; // 从cin流中读取值到para cout // 将para的值写入到cout流 endl; // 换行并刷新与设备相关连的缓冲区原创 2007-03-06 14:35:00 · 918 阅读 · 0 评论 -
linux学习笔记
linux目录架构/ 根目录/bin 常用的命令 binary file 的目錄/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内 /boot/grub/menu.lst GRUB设置 /boot/vmlinuz 内核 /boot/initrd 核心解壓縮所需 RAM Disk/dev 系统周边设备原创 2007-03-06 10:07:00 · 496 阅读 · 0 评论 -
gcc与g++
gcc与g++Linux 中最重要的软件开发工具是 GCC。GCC 是 GNU 的 C 和 C++ 编译器。实际上,GCC 能够编译三种语言:C、C++ 和 Object C(C 语言的一种面向对象扩展)。利用 gcc 命令可同时编译并连接 C 和 C++ 源程序。GCC 可同时用来编译 C 程序和 C++ 程序。一般来说,C 编译器通过源文件的后缀名来判断是 C 程序还是 C++ 程序。在 Li原创 2007-03-05 15:27:00 · 856 阅读 · 0 评论 -
我的string参考
#include #include #include using namespace std;void main(){ string word; //while (cin>>word) //while(getline(cin,word)) getline(cin,word); cout basic_string::size_type i; i= word.size(); cout原创 2007-01-16 17:32:00 · 591 阅读 · 0 评论 -
c基础
//h1.h #ifndef ABCDEFG_QSD#define ABCDEFG_QSDconst int i = 111;#endif//or//#pragma once////const int i = 111;// T1.cpp#include "h1.h"#include "h1.h"#include #include //using std::string;//原创 2007-01-16 13:12:00 · 648 阅读 · 0 评论 -
shell脚本一:简单命令declare read ==
$ vi test1.sh hello=hello/ /!/ how/ are/ you/ /?echo $hello输出hello ! how are you ? #!~/qsd/testShell##date:2007/03/09#written by qsdname=qsdname1="qiushengdan $name"name2=qiushengdan原创 2007-03-09 13:35:00 · 1377 阅读 · 0 评论 -
shell 脚本 if then else fi
---------------------------------------------------------------echo "Please y to continue"read ynif [ "$yn" = "y" ] || [ "$yn" = "Y" ]; then echo "script is running..."else echo "stop!原创 2007-03-09 14:07:00 · 27295 阅读 · 0 评论 -
shell 循环 for while until ....
declare -i sfor(( i=1; ido s=s+idoneecho "The count is --> $s" [dev@abtsvr shellTest]$ sh test8.sh The count is --> 5050---------------------------------declare -i sdeclare -i iwhile [原创 2007-03-09 15:46:00 · 1578 阅读 · 0 评论