小编lig*_*own的帖子

apache netbeans 11.3 C++ 插件超时,无法安装

我正在迁移到 Apache Netbeans 11.3 并尝试在 Windows 10 上安装 C++ 插件,得到了以下存储库

http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz

http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz

但每次它达到 99% 时,它只会在解压 org-netbeans-modules-cnd-dwarfdiscovery.nbm 时给我一个超时错误

插件安装程序在安装以下插件时发现加载 C/C++ Repository[org.netbeans.modules.cnd.repository/1.32.6.1] 的问题超时:

已经尝试了 10、11.1、11.2、11.3 版本,遇到了同样的问题,我什至摆脱了 Windows 防火墙也无济于事。

c++ netbeans

6
推荐指数
1
解决办法
5742
查看次数

使用 std::chrono 两个日期之间还剩多少天

我试图检查我的应用程序还剩多少天,其中一天来自当前时间,第二天来自数据库的 std::string,但每次我尝试使用减去 2 个日期

std::chrono::duration<int>
Run Code Online (Sandbox Code Playgroud)

我得到“expected unqualified-d before = token”,不确定 chrono 在我的代码下面期望什么

void Silo::RevisarDiasRestantes(){     // Check how many days are left, if the serial is 00 is for life

// obtain the current time with std::chrono and convert to struct tm * so it can be convert to an std::string
std::time_t now_c;
std::chrono::time_point<std::chrono::system_clock> now;
typedef std::chrono::duration<int> tiempo;
struct tm * timeinfo;
char buffer[80]; 

now = std::chrono::system_clock::now();
now_c = std::chrono::system_clock::to_time_t(now);
time (&now_c);
timeinfo = localtime(&now_c);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", timeinfo);
std::string …
Run Code Online (Sandbox Code Playgroud)

c++ c++-chrono

2
推荐指数
1
解决办法
909
查看次数

标签 统计

c++ ×2

c++-chrono ×1

netbeans ×1