9.51 设计一类,它又三个unsigned成员,分别表示年月日。为其编写构造函数,接受一个表示日期的string参数。程序如下:#include#includeusing namespace std;class My_Date{public: My_Date(const string &s)...
分类:
其他好文 时间:
2014-08-15 17:32:49
阅读次数:
170
记录以下我的vim的插件1.ctags使用命令ctags -R2.cscope目前还没怎么使用3.Toglist4.winmanager5.pathogen6.nerdtree附:我的.vimrc""my vim configuration"" 关闭compatibleset nocompatibl...
分类:
其他好文 时间:
2014-08-15 17:22:59
阅读次数:
302
1,创建字符串,有@都是对象。NSString *myString1 = @"My String One”;将一个utf8编码的字符串实例化成对象NSString *myString2 = [NSString stringWithUTF8String:"My String Two"];第三种写法NS...
分类:
其他好文 时间:
2014-08-15 14:25:48
阅读次数:
289
#!/usr/bin/perl -w
use strict;
use Net::SMTP;
my $to = ‘toMail‘;
my $from = ‘fromMail‘;
my $site = ‘mail.126.com‘;
my $smtp_host = ‘smtp.126.com‘;
my $pop_host = ‘pop3.126.com‘;
my $username =...
分类:
Web程序 时间:
2014-08-15 13:04:18
阅读次数:
236
在Linux平台上开发,经常会在console(控制台)上执行另外一个脚本文件,经常用的方法有:./my.sh或source my.sh或. my.sh;这三种方法有什么不同呢?我们先来了解一下在一个shell脚本中如何调用另外一个shell脚本,其方法有fork exec source。1...
分类:
其他好文 时间:
2014-08-14 23:12:56
阅读次数:
290
设置cookie:$cookie=newCHttpCookie('mycookie','this is my cookie');$cookie->expire=time()+60*60*24*30;//有限期30天Yii::app()->request->cookies['mycookie']=$c...
分类:
其他好文 时间:
2014-08-14 20:25:59
阅读次数:
215
配置好的mysql replication数据库导入一切正常,同步正常.php通过mysql proxy返回的数据是乱码的,数据库中的数据一切正常百度了半天找到了一个设置,添加到my.cnf就okskip-character-set-client-handshakeinit-connect='SET...
分类:
数据库 时间:
2014-08-14 19:50:19
阅读次数:
257
在mysql安装目录下的data目录中发现有几个系统目录,把my.ini文件中的datadir值设为此目录.更改后的主要配置为:[mysqld]basedir=C:/databases/mysqldatadir=D:/databases/mysql/databasedir: 为你数据库程序放置目录d...
分类:
数据库 时间:
2014-08-14 13:49:48
阅读次数:
258
1.如果Linux上没有安装NodeJS,先安装NodeJS 2.安装LoopBack npm install -g strongloop 3.创建项目 slc loopback
// Create your project [?] Enter a directory name where to create the project: my-new-pro...
分类:
其他好文 时间:
2014-08-14 11:05:38
阅读次数:
170
In the partime, a simle program attracted my attention whose content is to change number to english by reading rule of money.It took about one hour to deal with this question.
Now the source was sh...
分类:
其他好文 时间:
2014-08-14 01:30:57
阅读次数:
268