首先下载glog-0.3.3.tar.gz,解压,直接打开VS工程,我用了动态库,
新建win32 console test
把src\windows包含进来,../Debug/libglog.lib链接进来,这样就ok了。
新建main.cpp:
#define GLOG_NO_ABBREVIATED_SEVERITIES
#include
#include
using...
分类:
其他好文 时间:
2014-07-22 22:59:35
阅读次数:
1075
用通过代码:类内部usingSystem;classMod{voiddefaultMethod(){Console.WriteLine("thisisadefaultmethod");}publicvoidpublicMethod(){Console.WriteLine("thisisapublic...
分类:
其他好文 时间:
2014-05-03 22:54:54
阅读次数:
367
usingSystem;
usingSystem.Collections.Generic;
usingSystem.IO;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespace读文件案例
{
classProgram
{
staticvoidMain(string[]args)
{
Console.WriteLine("请输入文件名");
stringfileName=Console.Read..
分类:
其他好文 时间:
2014-05-02 04:00:58
阅读次数:
289
在C++控制台应用程序中可以控制控制台输出的字体颜色和 接受任意按键退出#ifndef
CONSOLE_UTILS_H#define CONSOLE_UTILS_H#include #include #include //default text
colors can be found in win...
分类:
编程语言 时间:
2014-05-02 00:23:19
阅读次数:
450
Android C编程技巧运行模拟器 emulator -console *
将文件写入到模拟器的userdata.img文件中 adb push *将一个目录拷贝到模拟器中,包括子目录 adb push * 将一个目录从模拟器中拷出来
adb pull * 使得模拟器可以运行arm...
分类:
移动开发 时间:
2014-05-02 00:22:43
阅读次数:
509
远程连接强制登陆: 命令:mstsc /v:IP /admin|console
例如:mstsc /v:123.456.789.0 /console 或mstsc /v:123.456.789.0 /admin
今天写的特别简单的代码,大体是一个模式选择,从控制台读入一个数,然后做出相应的选择.
代码如下:using System;using System.Collections.Generic;using System.Linq;using
System.Text;using System.Thre...
分类:
其他好文 时间:
2014-05-01 08:41:35
阅读次数:
340
1,按照vmware,导入系统(注意td提供的版本是64位的)
2,linux系统:root/root
3,配置ip:
Enter a cop entry in the linux hosts file (/etc/hosts accessible from the linux command line in the VMware console, ie. c:>vi /etc/host...
分类:
其他好文 时间:
2014-04-30 22:13:39
阅读次数:
503
qemu/kvm为客户机提供了完整的硬件环境,在客户机看来其所拥有的CPU为vCPU,在KVM看来每个客户机都是一个标准的linux进程qemu进程。在宿主机上vCPU是qemu进程派生出来的普通线程。在linux中进程有两种模式:用户模式,内核模式。而kvm增加了第三种模式:客户模式。用户模式主要是一些IO的模拟管理。内核模式主要执行一些安全性高性能的指令。客户模式执行大部分的代码。 下面讲下v...
分类:
其他好文 时间:
2014-04-29 13:11:20
阅读次数:
754