某模块作为前台进程独立运行时,运行命令携带命令行参数;作为某平台下守护进程子进程运行时,需要将命令行参数固化在代码里。类似如下写法:char *argv[] =
{"./DslDriver", "-t", "/bin/VdslModemSco.bin"};int argc = sizeof(ar.....
分类:
系统相关 时间:
2014-05-23 06:44:22
阅读次数:
401
创建存储过程:1 delimiter //2 create procedure
printname (id int,out name char(50) )3 begin4 select user into name from user
where id=id;5 end6 //7 delimiter...
分类:
其他好文 时间:
2014-05-23 06:11:51
阅读次数:
184
#include#include#include#includeusing namespace
std;struct city{char name[50];int jd;int jf;int jm;int wd;int wf;int wm;string
jdf;float a;float b;int...
分类:
其他好文 时间:
2014-05-23 04:20:29
阅读次数:
600
1 #include 2 #include 3 #include 4 #include 5
#include 6 7 8 int main(int argc, char **argv) 9 {10 QApplication app(argc,
argv);11 12 ...
分类:
其他好文 时间:
2014-05-21 19:54:45
阅读次数:
242
http://acm.hdu.edu.cn/showproblem.php?pid=1358求某个前缀的周期,用Next求循环节的题目#include
#include #include #include using namespace std ;char B[1000005] ;int Next[...
分类:
其他好文 时间:
2014-05-21 19:23:01
阅读次数:
241
1 #include 2 #include 3 #include 4 #include 5 6
int main(int argc, char *argv[]) 7 { 8 QApplication app(argc, argv); 9 10
QWidget *windo...
分类:
其他好文 时间:
2014-05-21 19:19:08
阅读次数:
204
#include "stdafx.h"#include #include #pragma
comment(lib,"ws2_32.lib")using namespace std;int main(int argc, char* argv[]){
WSADATA wsaData; int...
DES加密解密的C++源程序
--测试版本,希望大家多多交流
#include
#include"stdio.h"
#include"math.h"
#include "string.h"
static char key[16][48];
static char Hex[16][4];
...
分类:
编程语言 时间:
2014-05-21 15:42:24
阅读次数:
389
以下内容系原创,转载请务必注明地址
主要参考资料:我在 Stackoverflow 上提的问题 Why
the first is right but the second is wrong ?
这令人纠结的两行代码如下:
const char *cval = "nothing"; // 正确
int *ival = {1, 2, 3, 4}; // 错误...
分类:
其他好文 时间:
2014-05-21 15:32:47
阅读次数:
277
析构函数和构造函数是一对,就像C语言中的malloc和free,C++中的new和delete一样
先从一个实例说起:
#include
#include
using namespace std;
class Student
{
public:
Student(int n, string nam, char s)
{
num = n;
name = nam;
sex...
分类:
其他好文 时间:
2014-05-21 12:33:43
阅读次数:
259