有人用Netbeans6.8+Mingw 做开发吗?

zbzpo2002 2009-12-16 09:16:53
感觉Netbeans的6.8 的界面还可以, Eclipse+CDT的界面总是习惯不了。
...全文
93 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zbzpo2002 2009-12-16
  • 打赏
  • 举报
回复
从Boost Asio抄了一个示例程序
//
// timer.cpp
// ~~~~~~~~~
//
// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//

#include <iostream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>

class printer
{
public:
printer(boost::asio::io_service& io)
: timer_(io, boost::posix_time::seconds(1)),
count_(0)
{
timer_.async_wait(boost::bind(&printer::print, this));
}

~printer()
{
std::cout << "Final count is " << count_ << "\n";
}

void print()
{
if (count_ < 5)
{
std::cout << count_ << "\n";
++count_;

timer_.expires_at(timer_.expires_at() + boost::posix_time::seconds(1));
timer_.async_wait(boost::bind(&printer::print, this));
}
}

private:
boost::asio::deadline_timer timer_;
int count_;
};

int main()
{
boost::asio::io_service io;
printer p(io);
io.run();

return 0;
}


在NetBeans,MSYS 1.0,tdm mingw gcc4.4.1 ,每次调试运行一次要20多秒。
Eclipse+CDT的调试运行就很快,也不知道怎么回事。


CCCCCCCCCCCCCCC 2009-12-16
  • 打赏
  • 举报
回复
萝卜白菜,各有所爱,自己用着爽就行了
在公司,让你用什么就用什么,没得选择
do_fork 2009-12-16
  • 打赏
  • 举报
回复
netbeans写j2me挺方便的

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧