Pointers to member functions are NOT useless3327 (7/24/2010 3:10:57 PM) comp.lang.c++ Hi there, after reading an article complaining that pointers to member functions are misconceived in C++, and after reading a comment about them saying that they happen to be a rarely necessary feature - if e... Francesco
[half OT] About the not-in-common range of signed and unsigned char842 (7/13/2010 11:01:47 PM) comp.lang.c++ Hi there, when I create some less-than-trivial console program that involves some kind of pseudo-graphic interface I resort to using the glyphs that lie in the range [-128, -1] - the simple "char" type is sig... Francesco
Dynamic menu2334 (7/9/2010 11:54:21 AM) comp.lang.c++ Hi there, in it.comp.lang.c++ somebody asked for directions (for a tutorial, actually) about creating a menu in C++, and I've answered mentioning pointers to functions and creating a simple example that accep... Francesco
C++ Piano0224 (7/2/2010 1:32:33 AM) comp.lang.c++ Yesterday I brought a piano to my home.
It's a Belarus vertical piano, the inside of the keyboard cover reads
"Heller", too, but I believe this mark has been added afterwards by the
reseller. It will cos... Francesco
Real life example of "indirect" for loop usage?8282 (6/27/2010 9:22:51 PM) comp.lang.c++ Hi there,
here is a very simple program that uses a for loop in an uncommon way
(uncommon for me):
-------
#include
int i;
void init() {
i = 0;
}
bool check() {
return i < 10;
}
... Francesco
GoogleGroups Posting Utilities (only tested on Firefox 3.5.3)519 (10/16/2009 6:34:24 PM) comp.lang.javascript Hi there, well, javascript is definitely a lot of fun :-) Here below I'm pasting a script I've created these days, after having studied some Greasemonkey scripts a bit (Gmail Bottom Posting v.3 and ggNoSpam 0.... Francesco
Memory pools and alignment2225 (10/12/2009 9:37:04 PM) comp.lang.c++ Hi there, after having been taught that nifty new thing about overriding "operator new" and "operator delete", I've started messing with them and with custom allocations. Now I have some kind of memory pool wh... Francesco
Shallow copy and long long double on gcc 3.4.5627 (9/18/2009 10:44:25 AM) comp.lang.c++ Hi there, after the posts about dumping objects' raw memory I've played with it a bit and I've come to discover that the compiler-created shallow copy does some kind of memcopy on the two objects, starting from... Francesco
C++ grammar: universal-character-name in identifiers426 (9/6/2009 5:11:11 PM) comp.lang.c++ Hi there, sorry for posting this as a separate thread but the other one started with the wrong foot. After having posted (there) that C++ program with Chinese characters used as identifiers, I begun to think: ... Francesco
How to redirect clog to cout and ofstream at the same time?15276 (9/10/2010 1:15:50 PM) comp.lang.c++ Hi,
Is is possible to make clog output messages into two output stream
simultaneously, say: cout and ostream?
Unfortunately, ostream::rdbuf(...) allows to set only one at a time.
I'd like to have mess... ksamdev
list Iterator Dereferencing Problem2123 (9/10/2010 10:18:34 PM) comp.lang.c++ I have the following structure defined and declared, and I have
populated the list with 11 records (I watched them go in during debug.)
After building the list, I'm trying to write it out to a file...bu... mrc2323
Generate dictionary with the help of two array6131 (9/15/2010 5:35:03 PM) comp.lang.c++ Hi Folks
I have two array
keyArr = [@"name",@"city",@"street"]
valueArr = [@"Bob",@"Newyork",@"dallas"]
addDict = {@"name":@"Bob",@"city":@"Newyork",@"street":@"dallas"}
Thanks for your all help..
... IPhone
Pointer as a function parameter12122 (9/15/2010 10:09:02 PM) comp.lang.c++ Hello everybody :)
I needed any method of conversion std::string to char*. I found some
useful library functions, and in order to make conversion i had to
write some code for example:
#include
#includ... errfet
input to cin64145 (9/16/2010 8:52:54 AM) comp.lang.c++ Hello People,
I posted the code below to demonstrate the meaning of successful input with
regards std::cin. But I am having problems with a few people.
These people insist that the term "input" with reg... news
Running DLLs from mixed MsDev versions5186 (9/16/2010 8:41:24 PM) comp.lang.c++ Hello,
Recently we've upgraded to use MsDev 2008 for our code (until now
we've used MsDev 2005).
Unfortunately we are using some 3rd party DLLs that were build in
MsDev 2005, and there are a few methods i... yuval.steinberg(4)
Can such style be justified?39119 (9/23/2010 1:58:10 PM) comp.lang.c++ Hello,
if(true == someBool)
{
}
if(false == someBool)
{
}
bool someBool = (true == someBool1 || true == someBool2 && false ==
someBool3) ? false : true
{
}
One of my colleagues keeps writing ... lordn3mrod(12)
integer literals #218129 (9/26/2010 12:38:02 PM) comp.lang.c++ Hi all.
Consider the following program
#include
#include
template
void f(T x)
{
std::cout << typeid(x).name() << std::endl;
}
int main()
{
f(2000000000);
f(3000000000u);
f(3000000000);
}
... Armen
Using explicit constructors for C++0x "return { expr };"11128 (9/27/2010 2:47:16 AM) comp.lang.c++ I'm wondering about this one:
struct ALongAndComplexTypeName {
explicit A(int);
};
/* Possibly intermixed with enable_if huh */
ALongAndComplexTypeName f() {
return {5};
}
I would like to do s... Johannes