Thread
:
Slashdot | Borland Announces the Return of the Turbo Products, with Video
View Single Post
#
9
08-18-2006, 04:59 AM
Cisyouc
Demi-God
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
How is C cryptic?
I mean, I understand how in C++,
Code:
std::cout<<"OMGLOL"<<std::endl;
can look a little foreign at first, but, C is pretty straightforward.
__________________
namespace
retval {
template
<
class
T>
class
ReturnValueGen {
private
: T x;
public
: ReturnValueGen() { x = 0; }; T& Generator() {
return
x; }; }; }
int
main() { retval::ReturnValueGen<
int
> retvalue;
return
retvalue.Generator(); }
C++ is
wonderful.
Last edited by Cisyouc; 08-18-2006 at
01:05 PM
..
Cisyouc
View Public Profile
Send a private message to Cisyouc
Find all posts by Cisyouc