原文:http://blog.hexu.org/archives/41.shtml#id2874788awk编程14.1. 变量在awk中,变量不需要定义就可以直接使用,变量类型可以是数字或字符串。赋值格式:Variable = expression,如$ awk ‘$1 ~/test/{count...
分类:
系统相关 时间:
2014-08-19 02:08:03
阅读次数:
513
// int array[] = {3, 2, 6, 9, 8, 5, 7, 1, 4}; // int count = sizeof(array) / sizeof(array[0]); // int flag = 1; // for (int i = 0; i array[j ...
分类:
其他好文 时间:
2014-08-19 00:54:43
阅读次数:
186
选择排序 // int array[] = {3, 2, 6, 9, 8, 5, 7, 1, 4}; // int count = sizeof(array) / sizeof(array[0]); // // for (int i = 0; i array[j]) { // ...
分类:
编程语言 时间:
2014-08-18 23:19:53
阅读次数:
280
11.20 使用insert代替下标操作。#include#include#include#includeusing namespace std;int main(){ map word_count; string word; while(cin>>word) { ...
分类:
其他好文 时间:
2014-08-18 23:18:43
阅读次数:
209
知识关键词:DATE_FORMATselect DATE_FORMAT(create_time,'%Y%u') weeks,count(caseid) count from tc_case group by weeks; select DATE_FORMAT(create_time,'%Y%m%d'...
分类:
数据库 时间:
2014-08-18 20:06:22
阅读次数:
242
Php面向对象—静态成员
静态属性
使用static关键字声明的属性
该静态属性,在逻辑上,是定义在类上面的属性。保证一个类,对应一个属性。
例子:
class Student
{
public $stu_id;
public $stu_name;
public static $stu_count = 0;
public functi...
分类:
Web程序 时间:
2014-08-18 18:32:22
阅读次数:
189
11.4 编写单词计数程序,忽略大小写和标点。例如,“example.”,“example,"和”Example“应该递增相同的计算器。#include#include#include#includeusing namespace std;int main(){ map word_count;...
分类:
其他好文 时间:
2014-08-18 18:24:22
阅读次数:
181
简单使用: private void UpdateTitle(DataTable dt) { if (dt != null && dt.Rows.Count > 0) { using...
分类:
数据库 时间:
2014-08-18 18:19:22
阅读次数:
246
这段时间在开发网站,想要去记录自己的开发代码量,所以写了一个小脚本,用来记录,代码如下:#-*- coding: UTF-8 -*-#用来检测当前的代码量import sys,oscount = 0def readfile(file): global count f = open(f...
分类:
其他好文 时间:
2014-08-18 17:51:02
阅读次数:
185
系列文章导航:LINQ to SQL语句(1)之WhereLINQ to SQL语句(2)之Select/DistinctLINQ to SQL语句(3)之Count/Sum/Min/Max/AvgLINQ to SQL语句(4)之JoinLINQ to SQL语句(5)之Order ByLINQ ...
分类:
数据库 时间:
2014-08-18 12:58:42
阅读次数:
255