a513155803
2019-03-27 18:29C++/CLR中精确到毫秒的问题
20使用C++/CLR写的话报错了,这是这么回事
#include <stdio.h>
#include <sys/timeb.h>
#include <winsock2.h>
#include <iostream>
#include "stdafx.h"
using namespace std;
void main()
{
struct timeb tb;
ftime(&tb);
cout << tb.time * 1000 + tb.millitm << endl;
system("pause");
}
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- C++/CLR中精确到毫秒的问题
- c++
- 1个回答