Explain to me why C++ is better than C
1
Name:
Anonymous
2012-02-08 20:22
Come on, do it.
2
Name:
Anonymous
2012-02-08 20:34
It's fully compliant with Enterprise architecture©
3
Name:
Anonymous
2012-02-08 20:41
OP here! Please kill me; it hurts to live!
4
Name:
Anonymous
2012-02-08 20:58
- Object oriented programming; programming is so much more natural and easier to maintain with OOP, even though it can be overdone. Easier to avoid spaghetti Code.
- Works seamlessly with a number of popular APIs, libraries, toolkits...
- Backwards compatibility (for the most part) with C
- Multiple inheritance
- Stronger typing than C
- Just as performant as C
- Templates and STL
Would you like me to go on?
5
Name:
Anonymous
2012-02-08 22:08
6
Name:
Anonymous
2012-02-08 23:46
>Easier to avoid spaghetti Code.
Not sucking helps too.
7
Name:
Anonymous
2012-02-09 0:01
sure smells like samefag in here.
inb4 back to /b/
8
Name:
Anonymous
2012-02-09 3:13
>>7
really? my bbs text to smell generator is only producing vanilla caramel.
9
Name:
Anonymous
2012-02-09 4:04
It isn't.
10
Name:
Anonymous
2012-02-09 4:47
That's simple:
C++ is better than C, because it is a superset of C.
Q.E.D.
11
Name:
Anonymous
2012-02-09 5:37
>Let C = n
C++ = n + 1
n + 1 > n
C++ > C
QED
12
Name:
Anonymous
2012-02-09 6:17
>>11
let c = 0
cplusplus = c++
cplusplus < c
13
Name:
Anonymous
2012-02-09 8:29
>>12
let c = 0
cplusplus = c++
cplusplus < c
Let's step through this, shall we?
c = 0
// Store the value of c in
// cplusplus, then increment it
cplusplus = c++
cplusplus > c // Returns false
// The correct answer is c > cplusplus
You just proved that you're not fit to program in C++ OR C.
14
Name:
Anonymous
2012-02-09 8:40
#include <stdio.h>
int main(int argc, char *argv[]) {
int c;
int cpp;
c = 0;
cpp = c++;
printf("And a winnar is... %s!\n", c > cpp ? "C" : "C++");
}
% cc cvcpp.c
% ./a.out
And the winnar is... C!
15
Name:
12
2012-02-09 8:45
16
Name:
Anonymous
2012-02-09 8:46
And that means you're not fit to program in C++ OR C.
17
Name:
Anonymous
2012-02-09 8:47
the result of C++ > C is undefined
however in the real world it is implementation defined to be 0, since C++ is complete shit.
18
Name:
Anonymous
2012-02-09 8:52
>>17
Ok, could you look less dumb, please?
19
Name:
Anonymous
2012-02-09 8:54
>>18
I reviewed
>>17 and found nothing wrong, what are you complaining about exactly?
20
Name:
Anonymous
2012-02-09 8:59
>>19
Nothing, it was towards you attitude.
21
Name:
Anonymous
2012-02-09 9:21
>>20
>>18
Go back to /g/with if that is how you are going to act in an arguement faggot
22
Name:
Anonymous
2012-02-09 9:26
23
Name:
Anonymous
2012-02-09 9:27
>>20
I haven't posted in this thread before
>>19 so I don't exactly see what's wrong with my attitude.
24
Name:
Anonymous
2012-02-09 10:23
>>17
Not C, C++ neither.
>>21
Ok...
>>23
I'm an mental midget enterprise bbcoder, so, ignore it for your own sake.
25
Name:
Anonymous
2012-02-09 12:03
>>22
Also undefined; there's no way to tell which part of the operation is going to evaluate first.
26
Name:
Anonymous
2012-02-09 14:23
ITT it demonstrates that only angry men use C++.
COMPUTER SCIENCE has yet to confirm
if C++ made them angry,
or C++ have properties that appeal to angry men.
27
Name:
Anonymous
2012-02-09 17:05
I use C++ and I'm not angry. I also use lisp, but I have not achieved satori.
28
Name:
Anonymous
2012-02-09 17:12
Expert C++ programmers are closet angry men.
29
Name:
Anonymous
2012-02-09 18:46
30
Name:
Anonymous
2012-02-09 23:11
31
Name:
Anonymous
2012-02-11 3:25
>>30
implying I'm yuropean
32
Name:
Anonymous
2012-02-11 5:14
>>29
slash bee slash
what's \b\?
33
Name:
Anonymous
2012-02-11 6:57
>>30
This is what you really believe.
34
Name:
Anonymous
2012-02-11 13:02
>>29
I enjoyed this post.