I am using actionscript engine to upload a file, the engine will select the file and send the file over network thru HTTP POST command, the document says the POST message is like:
POST /handler.cfm HTTP/1.1
Accept: text/*
Content-Type: multipart/form-data;
boundary=----------Ij5ae0ae0KM7GI3KM7ei4cH2ei4gL6
User-Agent: Shockwave...
Possible Duplicate:
How to learn C++ as a C# programmer?
I'm a C# developer with ~2 years professional experience and fairly good knowledge of various programming languages (Python, Java, C, C++, SML, OCaml etc.).
So, assuming that I don't have to learn basics of programming - what resources would you recommend to get up to s...
Possible Duplicate:
Is short-circuiting boolean operators mandated in C/C++? And evaluation order?
Is there any defined by standard or math rules order of eveluating boolean sentences? For example:
if (firstTrue && secondTrue)
{
}
can I be sure that firstTrue will be checked first?
...
Hello, I'm new to SWIG and I'm trying to make a PHP5 wrapper around this library
https://sourceforge.net/projects/zinnia/
The project includes the interface file zinnia.i
Following www.swig.org/Doc1.3/Php.html
I run
swig -php -c++ zinnia.i
gcc `php-config --includes` -fpic -c zinnia_wrap.cpp
gcc -shared -L/usr/local/lib/ -lzinnia -o ...
In the Qt world what is the difference of events and signal/slots?
Does one replace the other? Are events an abstraction of signal/slots?
Thanks in advance
...
I need to use multiple keys(int type) to store and retrieve a single value from a hash table. I would use multiple key to index a single item. I need fast insertion and look up for the hash table. By the way, I am not allowed to use the Boost library in the implementation.
How could I do that?
Thanks.
...
Hi,
I'm trying to collect an often used subset of GUI-Elements together into one Subclass, which can be "included" into the real GUIs later without rewriting the given functionality (don't ask why, I wanna learn it for later use). The Subclass should use it's own *.ui-File and should be put into an QWidget resding in the real GUI. After...
I have several libraries that I am linking against and using them in a project. I can compile the libraries as well. If I have, in the final project, Code Generation > Floating Point Model = Fast, and Precise in the libraries that I am linking against, does that mean I am not benefiting from the maximum speedup that I will get if the lib...
While sorting an array
for ex: A[5]={1,4,5,3,2}
the output must be 1,2,3,4,5 in ascending order.
in using the concept of bubble sorting
my output is 0,1,2,3,4
what would be the problem in my code
int A[5]={1,5,3,2,4};
for(int i=0;i<5;i++){
for(int j=0;j<5;j++){
if(A[j]>A[j+1])
{
int t=A[j];
A[j]=A[j+1]...
I am new to socket programming and I have written a code for the server using the epoll. Basically it would wait to accept for any client connection and it would send data to the clients if the data is available from other sources.
I need to test on how is the performance of the server when there are multiple requests for the connectio...
I'm trying to port some C++ code to Objective-C. It includes iostream and sstream, but Objective-C does not recognize these. What should be done?
...
I wonder if it is possible to define a generic C++ container that stores items as follows:
template <typename T>
class Item{
typename T value;
}
I am aware that the declaration needs the definition of the item type such as:
std::vector<Item <int> > items;
Is there any pattern design or wrapper that may solve this issue?
...
#include <iostream>
#include <string.h> // for strlen
#include <stdlib.h> // for atoi
#include <sstream>
void expand_combinations(const char *remaining_string, std::ostringstream& i, int remain_depth)
{
if(remain_depth==0)
{
std::cout << i.str() << std::endl;
return;
}
for(int k=0; k < strlen(remaining_st...
I am studying the book "Accelerated C++" from Koenig & Moo.
Exercise 8-2 ask me to implement on my own some templatized functions from <algorithm> and <numeric>, and to specify what kind of iterator does my implementation require.
When trying to implement std::search, I determined that I need only "input" iterators.
Here is my code s...
I'm learning Objective-C and I'm trying to write a Vector3D class.
In C++ or Java the function I want to implement would look something like this:
Vector3D
{
Vector3D crossProduct(Vector3D in)
{
Vector3D result;
result = ... // maths involving this classes variables and the input Vectors variables.
return result;
}
...
can you use Insert Iterators while reading from a file to put the data into STL container?
for example:
FILE *stream;
fread(back_inserter(std::list), sizeof(int), 1, stream);
...
I've started to use Pixel Buffer Objects and while I understand how to use them and the gist of what they're doing, I really don't know what's going on under the hood. I'm aware that the OpenGL spec allows for leeway in regards to the exact implementation, but that's still beyond me.
So far as I understand, the Buffer Object typically r...
Code:
mysqlpp::Query acc_query = connection->query("SELECT * FROM accounts;");
The following code produces:
_Gfirst = 0x00c67718 "SELECT * FROM accounts;ээээ««««««««юоюою"
As in Visual Studio debugger. It appears to cause my query to fail with weird results.
Has anyone else encountered it?
...
Create a new solution with a C++ console command-line project
Create a new project, a C++ static library
Make the command-line project depend on the library
Make sure "Link Library Dependencies" is turned on in Configuration => Linker => General (it is by default)
Visual Studio will still not link the library.
How can I fix this? It w...
I was recently introduced to the existence of auto_ptr and shared_ptr and I have a pretty simple/naive question.
I try to implement a data structure and I need to point to the children of a Node which (are more than 1 and its) number may change. Which is the best alternative and why:
class Node
{
public:
// ...
Node...