March 26th, 2013 08:34 AM
Google yields a list:
http://www.google.com/search?q=using+namespace+in+header+file
This post:...
March 21st, 2013 02:20 AM
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
January 3rd, 2013 05:21 PM
ios::out erases an existing file. So if you open an existing file with that option, then seekp to a position, all bytes before that position are filled with 0x0.
It's not Philip Nicoletti's...
December 13th, 2012 07:13 AM
I only have g++ 4.6.1, but looking at /usr/local/include/c++/4.6.1/mutex it seems that the mutex class is protected by some #defines.
I found a (german) article on the web which mentions that you...
December 6th, 2012 01:09 AM
You might want to look up 'bitfields':
http://msdn.microsoft.com/en-us/library/ewwyfdbe(v=vs.71).aspx
http://en.wikipedia.org/wiki/Bit_field
But be aware that the implementation is...
November 23rd, 2012 01:20 PM
Did you use the debugger to debug your code?
What if either con, stmt or res are nullptrs? The example relies on them not being nullptrs, but if they are, your program will crash as it does.
November 20th, 2012 04:30 AM
What compiler do you use?
What error messages do you get?
November 10th, 2012 12:28 PM
November 9th, 2012 04:07 PM
The quickest thing would probably be the use of a ostringstream
#include <sstream>
std::ostringstream os;
os << "hello\n";
os << "mike\n";
os << "how\n";
os << "are\n";
November 6th, 2012 08:06 AM
You are most likely missing a header file where the struct/class/whatever sip_default_mclass is declared.
November 5th, 2012 08:09 AM
Ah, this looks promising and is part of 1.45.0 which is what I am currently using.
Thanks again.
November 5th, 2012 05:50 AM
Yes, opening the file n times would be simple, but I want to get rid of the eof check which would involve checking if the data section has reached its end. I do need a seekable stream, I will have a...
November 5th, 2012 04:30 AM
I have an application which uses several files to store its data.
The data is organized to store all current data like this, and additionally the data is moved to a single file after a specific time...
October 12th, 2012 10:31 AM
VisualStudio 2010 issues a "warning C4296: '>=' : expression is always true" when the warning level is set to /Wall. However, this level is quite a pain as a lot of headers that come with the...
October 12th, 2012 10:07 AM
You can simply pass the second string to the function as well:
#include <string.h>
#include <stdio.h>
/* assume pString is null terminated and is not NULL */
void ReplaceChars(char...
October 11th, 2012 07:15 AM
There is no 'replacestring' in the file you posted.
Post a minimum example here that reproduces the problem. Do not attach files, post the code using code tags.
October 9th, 2012 01:15 AM
1 lb = 0.453 592 370 kg(exakt, per definitionem) (according to Wiki)
1 kg ≈ 2.204 622 622 lb
What do you have written so far and where are you having problems?
September 18th, 2012 03:57 AM
A quick google search came up with this converter: http://ipv6.ztsoftware.net/
I could not find a page explaining the conversion rules, but maybe this can help you as a starting point?
September 18th, 2012 01:33 AM
If all of the comparisons fail, your last else-statement is entered and that is the output you get.
Looking at your logic I assume that you are missing a comparison for c1, c2 and c3 == 1. If you...