I am trying to learn C++ with Cygwin and Eclipse Helios.
I got all the development tools under Cygwin installed; and installed the CDT package for Helios.
The problem is I don't see an option to create a C++ project from makefile or any other option. I can only see options for a C Project, C++ project and a new project from existing sou...
I have a signal and a slot that should fit together quite nicely.
class MemberVisitor: public QObject
{
Q_OBJECT
signals:
void processMember(Member* member, bool &breakLoop);
public:
void processList(QList<Member*>* list);
};
along with:
class MemberFinder: public QObject
{
Q_OBJECT
public slots:
void processMembe...
Possible Duplicate:
Read a password from std::cin
I want to cin>>input but when they input something i don't want it to be visible to them. Like when you use passwd in unix to change your password where it doesn't show what you typed. i hope it is clear what i am asking. Thank you in advance.
...
I'm inheriting a native C++ application. It was developed with Borland CodeGear.
Right now, I already have a copy of Visual Studio 2008 installed on my system. Is there anything that would prevent me from building the system with Visual Studio, even though it was developed in CodeGear?
I'm already familiar with Visual Studio, so that...
Hello, I have to pass function into pointer. For this purposes I'm using boost::function. The function which catches the pointer is overloaded for different signatures. For example:
void Foo(boost::function<int ()>) { ... }
void Foo(boost::function<float ()>) { ... }
void Foo(boost::function<double ()>) { ... }
Now I wanna pass some c...
I saw someone's C++ code has function declaration like below:
void information_log( const char* fmt , ...)
or catch block like
catch(...)
{
}
What does "..." mean?
...
Hi guys
I've been programming a while now at school, and I'm working on my first independent large project. I've been discovering a lot of things about programming that I haven't known before and it's been great.
However, more and more, I feel like I no longer understand C++ as a language the more I delve into it. I'd like to get some ...
I contribute to a decent-sized C++ project with a number of dependencies. The problem is, the project contains the source of all of its dependencies (e.g. pcre, zlib, etc.). I want to trim the project down to just what's relevant to the program itself. Is there some relatively standard way to compile these libraries and put them somewher...
Hello all, I am trying to write a debug class for a project I am working on, and I do not want to have to pass a debug object around so I was trying to do it this way. However, I do not know why my compiler or linker seems to be skipping the implementation I am writing for it.
If I add #include "Debug.cpp" to main.cpp this code works j...
How can I parse HTML tags using c++?
eg:
<html><body>examlpe text </body></html>
...
I want to cast this:
class Base
{
public:
virtual ~Base(){};
};
class Der : public Base {};
int main()
{
const Base* base = new Der;
Der* der = dynamic_cast<Der*>(base); // Error
return 0;
}
What should I do?
I tried to put: const Der* der = dynamic_cast<Der*>(base); to mantain the const but this doesn't work.
...
Just finding my way around templates so was trying out a few stuff.
Let me know what I am doing wrong here.
I am trying to overload a inherited templates virtual method.
// class templates
#include <iostream>
using namespace std;
template <class T, class A>
class mypair {
T a, b;
public:
mypair (T first, T second)
{a...
With reference to the discussion here
$3.7.1/2 - "If an object of static storage duration has initialization or a destructor with side effects, it shall not be eliminated even if it appears to be unused, except that a class object or its copy may be eliminated as specified in 12.8."
$12.8/15- "When certain criteria are met, an implemen...
The title is a bit of a misnomer, what I mean really is "C with classes".
Let me explain, recently I bought the book ShaderX7 which came with a lite (and old) copy of the Unigine engine for one of the articles about shadow mapping techniques.
I was dabbling through the code when I realized that, while the author was using C++ and inher...
We currently have some code to extract digits from an int, but I need to convert this to a platform without snprintf, and I am afraid of a buffer overrun. I have started to write my own portable (and optimized) snprintf but I was told to ask here in case someone had a better idea.
int extract_op(int instruction)
{
char buffer[OP_L...
Greetings all,
I use MinGW,QT and CMake for my project.
As shown in the figure, my project has two modules.
libRinzoCore.DLL - a shared library which define some abstract classes and interfaces and some core functionality of the application.This module is used to implement dynamic Plugins (which are also shared libraries which auto...
The main application needs to update the shared memory at a fast frequency.
And several consuming applications need to read from the shared memory to update the streamed data.
main and consuming applications are different processes.
How to implement this with Boost.Interprocess ?
...
I'm not entirely sure if this question belongs on stackoverflow or superuser (is there an emacs stack exchange?). Based on the meta.stackoverflow post I'll assume that it does.
My emacs defaults header files (of the .h variety) to c mode. I can easily type M-x c++-mode and get my highlighting back, but because I program more often in c+...
im trying to make an array of images
Image something(L"something.png");
instead of that
Image something[2];
something[0]=(L"something.png");
any idea
...
I have a few native C++ libraries and such that I need to expose to managed (C#, in this case) code. I need to get as much speed out of it as possible.
I would like to use some classes to simplify the interaction, which means mixed code, but that's not a requirement.
What is a requirement is that it be cross-platform compatible, to Win...