On Mon, 23 Feb 2004 22:30:03 -0000, John Harrison wrote:
[color=blue]
> "TheDD" <pas.d@email.com> wrote in message
> news:1xq5edlc8hnqv$.1tw7tgtw7wzyc$.dlg@40tude.net. ..[color=green]
>> On Mon, 23 Feb 2004 22:06:41 -0000, John Harrison wrote:
>>[color=darkred]
>>> Most likely a missing header file. Try
>>>
>>> #include <fstream>
>>> using namespace std;[/color]
>>
>> yes, it works now, thx :)
>>[color=darkred]
>>> Can't see why the above wouldn't compile, assuming form is defined.[/color]
>>
>> well form() doesn't seems to be defined. I believe it's an old extension[/color]
> of[color=green]
>> g++ wich has been deleted. But since i don't know the STL enough, i don't
>> know how to emulate the form() function.
>>[/color]
>
> I've never heard of it, I don't think its ever been official STL. Taking a
> wild guess it might be an attempt to do printf style formatting in an
> iostream context, but I would ask on a gcc group to find out for certain.[/color]
it's sure:
http://www.geocrawler.com/archives/3...2/7/0/2055820/
my hack:
string form(const char *fmt, ...)
{
char tmp[2048];
va_list ap;
int res;
va_start(ap, fmt);
res = vsnprintf(tmp, 2046, fmt, ap);
va_end(ap);
return string(tmp);
}
--
David Mancel
SCIA 2005