Date: Sun, 23 Apr 2006 02:35:18 +0200 From: Benjamin Lutz <benlutz@datacomm.ch> To: freebsd-chat@freebsd.org Cc: Don Dugger <dugger@hotlz.com>, Dan Strick <strick@covad.net> Subject: Re: Why is not more FreeBSD software written in C++? Message-ID: <200604230235.21572.benlutz@datacomm.ch> In-Reply-To: <444ACA9E.5060602@hotlz.com> References: <200604221511.k3MFBxa2003218@mist.nodomain> <200604230203.05209.benlutz@datacomm.ch> <444ACA9E.5060602@hotlz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sunday 23 April 2006 02:30, Don Dugger wrote:
> Am I missing something here? What's the difference between
> test_iostream.cpp and test_string.cpp?
Oh. Sorry about that. Here's the proper test_string.cpp:
test_string.cpp
----
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char** argv) {
string buf;
for(int i = 0; i < 50000; i++) {
buf.clear();
for (int j = 0; j < 60; j++) {
buf.push_back('.');
}
buf.push_back('\n');
cout << buf;
}
return 0;
}
----
Cheers
Benjamin
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQBESsvJgShs4qbRdeQRAkahAJ9xiSKSVbHERlq/aODWaHudUN1X7QCffpOC
dLdr1BLTh7IdXeClMKUTno8=
=nfgG
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604230235.21572.benlutz>
