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

Pages: 1-

C vs. C++

Name: Anonymous 2012-02-22 8:39

C++ is
- more type safe
- safer memory management (unique_ptr, smart_ptr, weak_ptr)
- classes with destructors (RAII is nice)
- generic containers in standard library (no need to implement dynamic array for every other project)

C is
- cleaner
- simpler and easier to learn


C is nice for beginners, but real programmers use C++.

Name: Anonymous 2012-02-22 8:43

C++ is better because it's ++ > C

Name: Anonymous 2012-02-22 9:56

C++ > C
fact

Name: VIPPER 2012-02-22 10:21

Fact: sepples is shite.

Name: Anonymous 2012-02-22 10:55

IF it's not LISP, it's shit.

Name: Anonymous 2012-02-22 11:00

C is ok

C++ is shit

Name: Anonymous 2012-02-22 11:23

#include <iostream>

int main() {
    int c, cpp;

    c = 42;
    cpp = c++;
    if (cpp > c)
        std::cout << "C++ is superior to C" << std::endl;
    else if (c > cpp)
        std::cout << "C is superior to C++" << std::endl;
    else
        std::cout << "C/C++ are equal" << std::endl;
    return 0;
}


$ g++ main.cc
$ ./a.out
C is superior to C++


There you have it. C++ itself hath spoken.

Name: Anonymous 2012-02-22 11:54

>>7
And mine eyes wept from the glory of't.

Name: Anonymous 2012-02-22 11:54

>>7
Isn't that UB?

Name: >>9 2012-02-22 11:55

Sorry, I'm a moron. It's not UB.

Name: Anonymous 2012-02-22 12:48

>>7
Bjarne should have named his language "++C".

Name: Anonymous 2012-02-22 13:01

>>11
C+1 would have been better

Name: Anonymous 2012-02-22 13:37

>>11
>>12
He wanted it to replace C, not just to be a new/better language. If he had less shame and more ENTERPRISE, he would've called it "C 2.0" or maybe just "C."

Name: Anonymous 2012-02-22 13:52

>>13
He should have called it D or something, but then again, who cares about Bjarne? He's a fucking retard.

Also, optimize your quotes.

Name: Anonymous 2012-02-22 13:55

>>11-12
(incf C), or (with C parens)

Name: Anonymous 2012-02-22 15:41

>>14
Then Walter Bright would have to call his beautiful language something else.

Name: Anonymous 2012-02-22 16:03

c...easy to learn, hard to write

cpp...hard to learn, easy to write

Name: Anonymous 2012-02-22 16:04

>>16
D++

Name: Anonymous 2012-02-22 21:59

>>1
OP hasn't read K&R, either that or he's trolling. K&R describes in detail why C++ is complete and utter shit.

Name: Anonymous 2012-02-22 22:18

>>18
U MENA Java--

Name: Anonymous 2012-02-22 22:42

I find C much more difficult than C++.
C++ enables me to be a lazy shit.

Name: Anonymous 2012-02-22 23:12

C VS C# (AKA: C++++)

Name: Anonymous 2012-02-22 23:22

>>22
no,

++C++

Name: Anonymous 2012-02-23 0:04

>>23
no,
C.NET
or, as i've taken to calling it
*(C+(&C-&C.NET))++

Name: Anonymous 2012-02-23 0:06

>>24
beautiful!

Name: Anonymous 2012-02-23 0:32

return javascript > (C++ && C);

Name: Anonymous 2012-02-23 2:16

>>26
false

Name: Anonymous 2012-02-23 5:06

>>19
lol

Name: Anonymous 2012-02-23 11:40

SEPPLES

GC is shit.

It it's Lisp, it's shit.

herp derp

Name: Anonymous 2012-02-23 15:05

perl -e '$c="C";$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;print$c;$c="C";$c++;$c++;print$c;$c="C";$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;print$c;$c="C";$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;$c++;print$c'

Name: Anonymous 2012-02-23 15:25

>>30
Nice, i lol'd :D

Name: Anonymous 2012-02-23 16:54

>>27
wrong, try again

Name: Anonymous 2012-02-23 16:58

>>31
Perl propaganda

perl -e '$c="What is better than C++?";$c=~s,(....).*,$1,;$c=~y,htaW,PRQO,;$c++ for 1..10160;print$c'

Name: Anonymous 2012-02-23 17:22

Holy cow

Name: Anonymous 2012-02-23 17:22

>>29
It it's Lisp, it's shit.
Do you mean "if it's in Lisp"?

Name: Anonymous 2012-02-23 17:43

Well, in India, you're not a good programmer until you can write heaps of short algorithms like The Fibonacci, The Factorial, The Winked Wist Traversal, and The Bubble Sort in Turbo C.

Name: Anonymous 2012-02-23 18:21

C is undefined shit.

use x86 assembly instead

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