🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++.leda
Article #6

More wild and wooly LEDA string stuff...

#6
From: David F. Skoll
Date: Mon, 31 Jul 1995 18:52
21 lines
1003 bytes
Guess what this program does:

#include <LEDA/string.h>
#include <iostream.h>

int main()
{
   string s("Foo Bar Baz");
   char const *pstr;

   pstr = ~s;
   cout << pstr << endl;
}

I think I'll just weep wearily into a good programming-style book...
This takes operator-overloading to absurd new depths.

--
David F. Skoll
<a HREF="http://www.doe.carleton.ca/students/dfs/">
Click here for my home page</a> "Query two pi" on typewriter.
Technical Details
Message-ID: <DCLGFz.GE8@cunews.carleton.ca>
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!torn!nott!cunews!dfs
References: <3viuuv$dcl@news.rwth-aachen.de> <DCLDB9.ArI@cunews.carleton.ca> <DCLF3B.Dzx@cunews.carleton.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.c++.leda
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!torn!nott!cunews!dfs
From: dfs@doe.carleton.ca (David F. Skoll)
Subject: More wild and wooly LEDA string stuff...
X-Nntp-Posting-Host: sisko.doe.carleton.ca
Message-ID: <DCLGFz.GE8@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University
X-Newsreader: TIN [version 1.2 PL2]
References: <3viuuv$dcl@news.rwth-aachen.de> <DCLDB9.ArI@cunews.carleton.ca> <DCLF3B.Dzx@cunews.carleton.ca>
Date: Mon, 31 Jul 1995 18:52:47 GMT