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

whats wrong with c++?

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-15 2:48

>>44
You had me doubting myself for a second...  I just built this with the MSVC command line tools, using all defaults:
[code]
#include <iostream>

class my_class
{
public:

    int member_x;
    float member_y;

    my_class() { member_x = 5; member_y = 5.0f; }
    ~my_class() {}

    void method_z() { member_x++; member_y++; }
};

int main(int argc, char **argv)
{
    my_class instance;

    std::cout << instance.member_x << "\n";

    return 0;
}
[code]

There are no occurrences of "my_class" or "member_x" or any of the other names anywhere in the executable.

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