今天在Console Application下搞了一个小功能,期间需要获取当前应用程序的根目录,试了很多方式,都不能直接获取到,没有像Server.MapPath()这类的方法来方便地使用. 下面列举出一些获取一般目录的方法: // 获取程序的基目录,结尾包含\ var a = AppDomain.CurrentDomain.BaseDirectory; Console.WriteLine(a); // 获取和设置包括该应用程序的目录的名称,与上一个一样 var b = AppDomain.Cu
客户端 使用QtQuick技术开发酷炫的XP客户端经常遇到白屏或者无界面 if Qt is built using ANGLE, its shared libraries and the required shared libraries of the Direct X SDK need to be shipped as well. 如果准备支持Windows XP,请自行编译静态或者动态版本的Qt5.x with angle版本.编译参数 可选Angle 参考http://www.oschin
看代码: #include<iostream> #include<ctime> using namespace std; int main() { int i; time_t begin,end; begin=clock(); cout<<"**************************\n\n\n\n\n\nI love you!\n\n\n\n\n**************************"<<endl; i = ;
https://github.com/yaowenxu/Workplace/blob/master/timer/getrusagetimer.c 关键结构体: struct rusage { struct timeval ru_utime; /* user time used */ struct timeval ru_stime; /* system time used */ long ru_maxrss; /* max resident set size */ long ru_ixrss; /