摘要: 1 枚举 1 enum ShapeType 2 { 3 circle, 4 square, 5 rectangle 6 }; 7 8 int main() { 9 10 ShapeType shape = circle;11 12 switch(shape)... 阅读全文
posted @ 2015-05-30 15:02 asnjudy 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 通常,不用const来区别数据的类型,在声明过程中,const关键字起到的是修饰限定的作用。1 符号常量(通常,在赋初值后,其值不能改变;而常量在定义时必须赋初值)int i;const int k = 3; //标识符k代表的内存单元中存放的int型的数据,关键字const限定,不能通过该标识符k... 阅读全文
posted @ 2015-05-16 17:58 asnjudy 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1. Web服务定义描述头文件typedef double xsd__double;int ns__add(xsd__double a, xsd__double b, xsd__double &result);int ns__sub(xsd__double a, xsd__double b, xsd... 阅读全文
posted @ 2015-03-26 16:12 asnjudy 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 1. wsdl2h 生成服务定义头文件wsdl2h -o calc.h http://www.genivia.com/calc.wsdl2. 从服务定义头文件calc.h生成客户端代码soapcpp2 -C -IC:\Users\Administrator\Desktop\gsoap-2.8\gso... 阅读全文
posted @ 2015-03-24 16:49 asnjudy 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 原文链接http://youlvconglin.blog.163.com/blog/static/52320420106243857254/使用图形界面远程登录linux和Solaris,首先要在服务端开启xdmcp服务,windows下使用xmanager连接Ubuntu下则使用下默认也安装了该客... 阅读全文
posted @ 2015-03-10 14:40 asnjudy 阅读(2690) 评论(0) 推荐(0) 编辑
摘要: 转载自 http://www.jb51.net/os/RedHat/1307.htmlLinux下find命令在目录结构中搜索文件,并执行指定的操作。Linux下find命令提供了相当多的查找条件,功能很强大。由于find具有强大的功能,所以它的选项也很多,其中大部分选项都值得我们花时间来了解一下。... 阅读全文
posted @ 2015-02-01 22:34 asnjudy 阅读(238) 评论(0) 推荐(0) 编辑
摘要: NAME xargs - build and execute command lines from standard input 从标准输入构建并执行命令行SYNOPSIS xargs [-0prtx] [-E eof-str] [-e[eof-str]] [--eof[=eof-str]] [... 阅读全文
posted @ 2015-02-01 22:31 asnjudy 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 1. svcs 显示服务实例的状态信息svcs - report service status 显示服务状态命令DESCRIPTION The svcs command displays information about serviceinstances as rec... 阅读全文
posted @ 2015-01-31 23:24 asnjudy 阅读(932) 评论(0) 推荐(0) 编辑
摘要: =====================较为重要的几个文件:/etc/nodename 主机名(即 hostname命令的输出)/etc/defaultdomain 默认域名/etc/inet/hosts ip-hostname映射 (注:/etc/host... 阅读全文
posted @ 2015-01-30 23:50 asnjudy 阅读(3725) 评论(0) 推荐(0) 编辑
摘要: ==================solaris中mysql安装1 增加mysql用户 groupadd user; useradd -G mysql mysql2 安装 pkgadd -dmysql-5.5.38-solaris10-x86_64.pkg3 增加配置文件/opt/mysql/my... 阅读全文
posted @ 2015-01-29 15:04 asnjudy 阅读(181) 评论(0) 推荐(0) 编辑