#!/usr/bin/expect
set username [lindex $argv 0]
set server_ip [lindex $argv 1]
set command [lindex $argv 2]
set timeout 10
if {$argc
puts stderr "the argument number for execute remot...
分类:
其他好文 时间:
2015-03-08 18:53:06
阅读次数:
161
在这一章节中,我们将开始编写第一个GTK+程序。超级简单的例子我们要“制造”一个超级简单的GTK+程序。就是显示一个空白的窗口。#include int main( int argc, char *argv[]){ GtkWidget *window; gtk_init(&argc, &argv.....
分类:
其他好文 时间:
2015-03-08 18:38:31
阅读次数:
148
template class visibility{public: void say(double d){};private: void say(int i){}; void say(T t){};};int _tmain(int argc, _TCHAR* argv[]){ visibil...
分类:
编程语言 时间:
2015-03-07 19:57:27
阅读次数:
181
man 3 errno /* * 1.8DemonstrateStrerrorAndPerror.cpp * * Created on: Feb 11, 2015 * Author: sunyj */ #include "../apuesunyj.h" int main(int argc, char...
分类:
其他好文 时间:
2015-03-07 19:56:34
阅读次数:
230
Title:Linux C 调用MYSQL API 函数mysql_escape_string()转义插入数据 --2013-10-11 11:57#include #include #include #include "mysql.h" int main(int argc, char *argv....
分类:
数据库 时间:
2015-03-07 18:34:14
阅读次数:
2629
#include "stdafx.h"#include#includeint main(int argc, char* argv[]){ int i,j,k,sum; for(int t = 0;t<30;t++) { i = rand()%50; j = rand()%50; k = ran...
分类:
其他好文 时间:
2015-03-06 18:44:28
阅读次数:
131
dp[i] 代表能否凑出总数为i的cash 1 #include 2 #include 3 4 int n[11], d[11], cash, N; 5 bool dp[100010]; 6 7 int main(int argc, char const *argv[]) 8 { 9 ...
分类:
其他好文 时间:
2015-03-06 16:28:41
阅读次数:
139
平时写程序时,有时需要对命令行参数进行处理。在接触本文所涉及的内容前,我们可能想到的方法是顺序提取命令行参数,进行顺序判断处理;然而,这种方法相当不灵活,尤其是在遇到带有可选参数的情况时,很难处理。为此,Linux提供了如下接口进行命令行参数的处理:
#include
int getopt(int argc, char * const argv[],cons...
分类:
其他好文 时间:
2015-03-06 15:58:39
阅读次数:
188
1 #include "stdafx.h" 2 #include 3 4 using namespace std; 5 6 int _tmain(int argc, _TCHAR* argv[]) 7 { 8 cout << "Hello world!" << endl; 9 ...
分类:
其他好文 时间:
2015-03-06 15:47:33
阅读次数:
95
#include "stdafx.h"#include#includeint main(int argc, char* argv[]){ int i,j,k,sum; for(int t = 0;t<30;t++) { printf("第%d道题:",t+1); i = rand()%50; ...
分类:
其他好文 时间:
2015-03-06 13:57:35
阅读次数:
120