程序A创建子进程,并调用进程B,根据不调用的不同情况,最后显示结果不同。#include
#include #include #include #include int main() { pid_t pid, rpid; int stat; if
((pid = fork()) i...
分类:
系统相关 时间:
2014-05-23 12:35:12
阅读次数:
1758
编译警告:This project was created using a version of
compiler that is not currently installed: 6.0.3 [C2000]. Another version of the
compiler will be used...
分类:
其他好文 时间:
2014-05-23 12:16:21
阅读次数:
3014
“fread”以二进制形式,从文件读出数据。语法1:[a,count]=fread(fid,size,precision)语法2:[a,count]=fread(fid,size,precision,skip)size:
不指定 :到尾返回读。 N : 读出N个数据,构成列向量。 inf ...
分类:
其他好文 时间:
2014-05-23 11:37:57
阅读次数:
360
SELECT a.hsid, a.house_code, a.sale_date, a.pjid,
COUNT( sdid ) AS num, b.hsid, b.pscid, b.hscode, b.hsarea1, b.hsrealarea1,
b.hsusage, b.hsprice, b.h...
分类:
数据库 时间:
2014-05-23 11:18:50
阅读次数:
397
在eclipse下的日志文档:!SESSION 2014-05-19 17:23:10.833
-----------------------------------------------
eclipse.buildId=4.3.2.M20140221-1700 java.version=1.8....
分类:
编程语言 时间:
2014-05-23 10:56:13
阅读次数:
457
假设给我们一个泛型对象List,T为int类型,要求我们使用该对象方法FindAll(Predicate match)从中找出该List中的偶数,您如何实现?
说明一下:Predicate是一个泛型委托,它的原型为public delegate bool Predicate(T obj),该委托传....
分类:
其他好文 时间:
2014-05-23 10:04:08
阅读次数:
350
Gallery和swithcer联合使用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian...
分类:
其他好文 时间:
2014-05-22 11:19:05
阅读次数:
288
<!--
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the L...
分类:
移动开发 时间:
2014-05-22 08:41:44
阅读次数:
377
#查看数据库版本
mysql> select @@version;
+------------+
| @@version |
+------------+
| 5.5.16-log |
+------------+
1 row in set (0.00 sec)
mysql> select * from information_schema.schemata; # 保存了系统...
分类:
数据库 时间:
2014-05-20 15:05:07
阅读次数:
456
在创建MFC项目时,如果没有设置好项目参数, 就会在编译时产生很多连接错误,
如我今天遇到的:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol
_main解决方法:控制台项目要使用windows子系统, 而不是consol...
分类:
其他好文 时间:
2014-05-20 13:01:32
阅读次数:
275