We are looking for a better C++ HTTP client library, and we're willing to pay for it.
The product we want needs to be a statically linked, and to work on these platforms:
Windows XP, Vista, 7
OS X 10.4, 10.5, and 10.6
We want it to do the following tasks really well:
1. Make HTTP GET and POST requests
2. Handle meta refresh and http re...
I'm currently practising the Test-Driven Development style of programming as well as trying to memorize some useful idioms and exception safety rules I've learned. I've used an old programming assignment from semester one to simply go nuts, use stuff where it shouldn't be used to get a feel for them, learn their respective pros and cons....
Just a little curiosity at work, here. While working on something dangerous, I got to thinking about the implementations of various compilers and their associated standard libraries. Here's the progression of my thoughts:
Some classes of identifiers are reserved for implementation use in C++ and C.
A compiler must perform the stages of...
I have written a function in C++ code for the eight queens problem. The program is supposed to print out all 92 possible solutions. I only can run up to 40. Don't know where the problem is. Try to debug but I'm still stuck.
#include "stdafx.h"
#include <cmath>
#include <iostream>
using namespace std;
bool ok(int board[8][8]){
f...
I have a static member in my class. It's declared and defined:
In my header:
class Bla {
...
static Bla* instance;
...
};
In my implementation file:
Bla::Bla* instance = 0;
But ld doesn't seems to like it:
release/bla.o:bla.cpp:(.text+0x19f7): undefined reference to `Bla::instance'
I'm using GCC 4.4.0 from the Qt SDK.
I can't ...
Using integer math alone, I'd like to "safely" average two unsigned ints in C++.
What I mean by "safely" is avoiding overflows (and anything else that can be thought of).
For instance, averaging 200 and 5000 is easy:
unsigned int a = 200;
unsigned int b = 5000;
unsigned int average = (a + b) / 2; // Equals: 2600 as intended
But in ...
I am trying to compile and build a project(s) in visual studio and I started looking into compiling with the /Wall option which gives all warnings.
I am wondering iof there is a way to run this only on those files I am interested in, since currently I get a million warnings on files i have no ability or desire to change.
...
Hi.
I have been trying to configure OpenCV2.1 and CUDA3.1 on Visual Studio 2008 on a 64bit Windows XP machine, since past 1 week. But all in vain.
OpenCV alone is working fine. CUDA3.1 alone is working fine as well.
I am using CUDA3.1 for 64 bit ... But for OpenCV, I am using 32 bit installation (as provided on Source Forge) - Possible ...
Hi,
i want to add a dynamic configuration path (generated from pkg-config) to my project. (this is basically for third-party dependencies like boost, so workspace includes is not appropiate, and filesystem include neither because that would be hardcoded and every developer would have to change that manually)
i am on project properties-...
need a small program to learn basics on how to open a file stored on net for reading via c++.
...
I need to do some extensive searching and string comparisons and for this I figure that a compiled program is much better than an interpreted ones especially after seeing some comparison studies. I came across ParallelPython which was beautiful. It has autodiscovery for clusters and can pretty much do all the load balancing for me as wel...
This blog does not recommend it:
http://blog.kalmbachnet.de/?postid=78
But I want to do it anyway. I suppose I need to wrap my Debug.Assert with some sort of #if or #ifdef or something like that. Also, does anyone have a good example of a Debug.Assert in C++ CLI?
Suppose I have the following variable: String^ validationError = bldError...
Header file is "graph.h"
#ifndef _GRAPH_H_
#define _GRAPH_H_
#include <map>
#include <vector>
using namespace std;
template <class T>
class VERTEX
{
public:
VERTEX(T inVertex): m_vertex(inVertex), m_visited(false){}
~VERTEX(){}
private:
T m_vertex;
bool m_visited;
};
template <class T>
class GRAPH
{
public:
GRAPH...
I have a class with a data attribute, say of type int, which should be constant throughout the run of the program, and have the same value in all class instances. I want this value to be accessable through a public member function called get_value(). The obvious way to do this is to define a private static const class member and have g...
What I'm trying to do is create a new custom data type that behaves like all other primitive types. Specifically, this data type appears like a Fixed Point fraction.
I've created a class to represent this data type, called "class FixedPoint", and in it there are ways to typecast from "FixedPoint" to "int" or "double" or "unsigned int", ...
I have a multi-line ASCII string coming from some (Windows/UNIX/...) system. Now, I know about differences in newline character in Windows and UNIX (CR-LF / LF) and I want to parse this string on both (CR and LF) characters to detect which newline character(s) is used in this string, so I need to know what "\n" in VS6 C++ means.
My ques...
Everywhere i read, if no destructor is defined the compiler creates one anyway. So what is the point of explicitly defining one?
Thank you
...
I want to build a strategy game using C and Lua. C++ is also an option.
I would like to create an environment where a player can move around. In the same environment, other actors (programmed in Lua) should be able to move around. Their Lua code should control how they move.
It sounds simple enough, but I wonder what would be a good de...
I have been working on multiple 8 queens problems in my C++ class. I got the bazic 8 queens problem. Now I am having an issue printing out the solutions using the goto and backtrack statements.
// Queens2.cpp.cpp : Defines the entry point for the console application.
// 8 Queens problem using goto and backtrack.
#include "stdafx.h"
#...
Hello
I have a EZCAP video capture device. It has its DirectShow capture filter. When I add this filter to GraphEdt and connect to Video Renderer filter, I get following error:
HRESULT: 0x8007048f (2147943567)
Name: ERROR_DEVICE_NOT_CONNECTED
Description: n/a
Severity code: Failed
Facility Code: FACILITY_WIN32 (7)
Error Code: 0x04...