我的博客小站

2012年6月16日

【转】 C++获得系统时间,以及1970年1月1日到现在的毫秒数

摘要: #include <iostream>#include <time.h>#include <sys/timeb.h>using namespace std;int main(){ long long time_last; time_last = time(NULL); cout<<time_last<<endl; //秒数 struct timeb t1; ftime(&t1); cout<<t1.time<<endl; //秒数 cout<<t1.millitm<<endl; 阅读全文

posted @ 2012-06-16 22:15 BIGSING 阅读(5276) 评论(0) 推荐(0) 编辑

vs2010调试运行时弹出对话框:系统找不到指定文件

摘要: http://jhui163.blog.163.com/blog/static/126123594201151411415441/很多时候,我们会将一些低版本IDE编译过的项目,搬迁到VS2010 ,那么会存在很多编译,调试问题。【1】 编译成功了。可是无法调试 。. 显示 无法启动程序“...........\test.exe” 。系统找不到指定的文件。 查看项目属性,发现,{常规} -> 输出目录是 “.\Debug\” 无法找到。 所以这里要注意 {常规}的输出目录 要与{链接}的 常规的输出文件要相对应。例如 :{链接}的常规输出文件是” \build\debug\text.ex 阅读全文

posted @ 2012-06-16 01:00 BIGSING 阅读(2463) 评论(1) 推荐(1) 编辑

导航

我的博客小站