M
martinezfive
Hi,
I feel no doubt some documentation contains my answer, so bare with
me. Given the following:
#inclde <stdio.h>
#include <sstream>
void f()
{
std::stringstream a("Hello World!\n");
a << "Bite me!\n";
printf( a.str().c_str() );
}
I expect to see:
Hello World!
Bite me!
on the console. However, I instead find:
Bite me!
ld!
no matter what compiler/library combination I use. As I mentioned,
surely, the answer to "Why?" appears somewhere, I simply remain unable
to find it. Would someone point me in the right direction for the
answer?
I feel no doubt some documentation contains my answer, so bare with
me. Given the following:
#inclde <stdio.h>
#include <sstream>
void f()
{
std::stringstream a("Hello World!\n");
a << "Bite me!\n";
printf( a.str().c_str() );
}
I expect to see:
Hello World!
Bite me!
on the console. However, I instead find:
Bite me!
ld!
no matter what compiler/library combination I use. As I mentioned,
surely, the answer to "Why?" appears somewhere, I simply remain unable
to find it. Would someone point me in the right direction for the
answer?