Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

printf vs C++ bitshift nomad thing

Name: Anonymous 2009-05-13 10:36

<<, or however this is called.

Discuss.

Name: Anonymous 2009-05-13 10:40

boost::format

Name: Anonymous 2009-05-13 10:47

iostream sucks.
stdio is much greater.

Name: Anonymous 2009-05-13 11:15

stdio is much greater.
http://i40.tinypic.com/9sq77r.jpg

Name: Anonymous 2009-05-13 11:57

C++ am winning again! It is the greetest! Mwahahahaha! Now it is leaving earth for no raison!

Name: Anonymous 2009-05-13 12:04

>>4
That's not a Culver, faggot.

Name: Anonymous 2009-05-13 18:37

>>5
lol'd unexpectedly

Name: Anonymous 2009-05-13 19:11

>>5
lol'd expectedly

Name: Anonymous 2009-05-13 19:13

>>5
lol'd period

Name: Anonymous 2009-05-13 19:51

>>9
Put a tampon in your mouth.

Name: Anonymous 2009-05-13 20:01

>>10
+4, Funny :-)

Name: Discuss. 2009-05-13 20:08

Discuss.

Name: Discus. 2009-05-13 20:24

Discus.

Name: Dicsuc. 2009-05-13 20:40

Dicsuc.

Name: Anonymous 2009-05-13 21:12

Discus

Name: Anonymous 2009-05-13 22:03

Bjarne Stroustrup is a crack whore, and anyone who'd even consider using his penis shift operators for input/output ought to be ashamed of themselves.

Name: Anonymous 2009-05-14 10:41

C programmers is a crack whore, and anyone who'd even consider using his penisf suckf functions for input/output ought to be ashamed of themselves.

Name: Anonymous 2009-05-14 11:48

>>17
HIBT?

Name: Anonymous 2009-05-14 14:17

>>18
>>17 can hardly be called a troll. It's creative, but it's obviously not meant for any particular purpose. Even if it was, there's no clear intent to cause the reader to react in a specific way, unless you wanted to conjecture that >>17 was making fun of C programmers. Dubious link at best.

Name: Anonymous 2009-05-16 3:02

The stdio bit shifting overload voodoo is really funky to work with and gets out of hand quickly.  It is easier to look back and read a printf statement and it is easier to hold printf output strings in resource or definition files.

Name: Anonymous 2009-05-16 3:11

i use printf in c++

Name: Anonymous 2009-05-16 3:16

I much prefer printf, but it's hardly scalable because the service space is large, distributed, heterogeneous, volatile, and highly dynamic. This problem is aggravated by the added degree of dynamism, unpredictability, and distribution of programmers. Existing techniques such as EDI, component-based E-commerce systems (e.g., integrated electronic catalogs and cross-organizational workflows) are usually appropriate to integrate small number of e-services with static relationships. However, they are ineffective in large and highly dynamic environments.

Name: Anonymous 2009-05-16 9:02

>>22
I've never read a longer post about nothing.

Name: Anonymous 2009-05-16 9:09

You can't do formatting using the stream, thread over.

Name: Anonymous 2009-05-16 9:39

What is the added value of using obscure syntax?

Name: Anonymous 2009-05-16 9:46

>>23
You must be new here.

Name: Anonymous 2009-05-17 2:34

>>25

The ability to display data consistantly is VERY hepful.

When you start doing things like error logging you want to show raw data and the ability to force a common format is a big +

In Win32 programming.. if you cout an HRESULT you'll get some useless integer that you'd have to convert to hex before knowing what it actually was trying to tell you.  Using printf you can format it as 0x0000000 format which is much easier to read and compare in define files.

Name: Anonymous 2009-05-17 3:21

cout == printf
scanf >> cin

Name: Anonymous 2009-05-17 7:40

>>24
Yes you can.
cout << hex << showbase << setfill('0') << setw(8) << n << endl;

Name: Anonymous 2009-05-17 7:47

>>29
This is most inhandsome.

Name: Anonymous 2009-05-17 7:53

>>29
This is least handsome

Name: Anonymous 2009-05-17 8:05

>>29
Here's how real /prog/riders do this:
printf("%#08x\n", n);

Name: Anonymous 2009-05-17 8:13

>>32
This is most handsome

Name: Anonymous 2009-05-17 8:31

>>29
Now compare this to >>32.

Name: Anonymous 2009-05-17 9:04

>>32
This is least inhandsome.

Name: Anonymous 2009-05-17 10:02

and so life imitates C

Name: Anonymous 2010-12-28 13:31

Name: Anonymous 2013-03-03 0:57

anus
anus
anus

Name: Anonymous 2013-03-03 0:58

anus
anus
anus

Name: Anonymous 2013-03-03 0:58

anus
anus
anus

Don't change these.
Name: Email:
Entire Thread Thread List