Name:
Anonymous
2012-06-14 4:55
it has namespaces, better standard libraries, a plethora of modern conveniences, and all of c's functionality.
if you don't like objects don't use them
if you want to feel like a programming badass and do everything low level then learn assembly
Name:
Anonymous
2012-06-19 20:28
C gives you more rope to hang yourself with.
#include <cstdlib>
#include <iostream>
void *f(bool x) {
if(x) {
OHSHIT:
std::cout << "At least C doesn't give you rope like this..." << std::endl;
exit(0);
} else {
void *pointy = &&OHSHIT;
return pointy;
}
}
void g(void *WHAT) {
goto *WHAT;
STUFF:
std::cout << &&STUFF << std::endl;
}
int main() {
g(f(false));
return 0;
}
Name:
Anonymous
2012-06-19 23:09
>>89
A sane person wouldn't. That's why allowing it makes Sepples inferior to C.
>>86
Try this one:
#include <cstdlib>
#include <iostream>
void *f(bool x) {
if(x) {
OHSHIT:
std::cout << "At least C doesn't give you rope like this..." << std::endl;
exit(0);
} else {
void *pointy = &&OHSHIT;
return pointy;
}
}
void g(void *WHAT) {
goto *WHAT;
STUFF:
if(&&STUFF) std::cout << "";
}
int main() {
g(f(false));
return 0;
}