//从终端获取一个字符串,分别统计其中大写字母、小写字母、数字及其它字符的个数。
#include
#include
int main(int argc,const char *argv[])
{
char str[100];
char ch;
int len,i;
int letter = 0, number = 0, space = 0, other = 0;
get...
分类:
其他好文 时间:
2015-07-03 17:27:59
阅读次数:
116
摘要: 前面介绍完了副本集的搭建、用户的管理、参数和日常操作的说明,那副本集搭建好该如何管理呢?现在来说明下副本集的日常查看和管理。说明:1)查看命令行参数:db.serverCmdLineOpts()zjy:PRIMARY> db.serverCmdLineOpts(){ "argv" ...
分类:
数据库 时间:
2015-07-03 13:44:29
阅读次数:
348
// main.m// C3_循环结构//// Created by dllo on 15/7/2.// Copyright (c) 2015年 cml. All rights reserved.//#import int main(int argc, const char * argv[]) {/...
分类:
其他好文 时间:
2015-07-03 12:18:55
阅读次数:
119
#coding=utf-8#!/usr/bin/pythonimport sys;print("The command line parameters are : ");for i in range(0, len(sys.argv)) : print str(i) + ' -> ' +...
分类:
编程语言 时间:
2015-07-02 23:55:48
阅读次数:
162
因为只是笔记,所以只记录自己觉得要注意与需要理解的地方,其他就不记了函数定义上F#有自己的写法:[]let main argv = let f1 = fun x -> x * x - 2 * x let f2 x = let x1 = x - 2 x * ...
分类:
其他好文 时间:
2015-07-02 22:29:14
阅读次数:
645
最近研究了一下qt下对xml文件的读写,小计一下,成为自己的知识。main函数调用: 1 #include 2 #include "readconfig.h" 3 #include "writeconfig.h" 4 5 int main(int argc,char **argv) 6 { 7 .....
分类:
其他好文 时间:
2015-07-02 19:17:46
阅读次数:
135
getopt(分析命令行参数)getopt(分析命令行参数)短参数的定义返回值范例getopt_long相关函数表头文件#include定义函数int getopt(int argc,char * const argv[ ],const char * optstring);函数说明getopt()用...
分类:
其他好文 时间:
2015-07-02 17:05:49
阅读次数:
122
设置Cookie时要把一个json整体放入Cookie而不是单独放入,影响效率。var Cookies = {}; /** * 设置Cookies */ Cookies.set = function(name, value){ var argv = arguments; var ar...
分类:
Web程序 时间:
2015-07-02 13:59:15
阅读次数:
162
package IO_Test;
import java.io.*;
public class FileIO {
public static void main(String argv[]) {
try {
BufferedReader br = new BufferedReader( new FileReader("I:\\IO.txt"));
String line = br...
分类:
编程语言 时间:
2015-07-01 14:12:23
阅读次数:
144
common/cmd_cache.c
int do_getmac(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
//usend d43d7e45371c 192.168.1.134 1234 1234 hhaa
char ethsrc[6]={0xff ,0xff ,0xff ,0xff ,0xff, 0xff};
char e...
分类:
其他好文 时间:
2015-07-01 14:10:35
阅读次数:
429