3 ms·
plenty of c++ is just functions wrapped in namespaces. namespaces alone are a significant advantage over c.
by leetcrew 9y ago
plenty of c++ is just functions wrapped in namespaces. namespaces alone are a significant advantage over c.
- qdoop 9y agoJust to make it clear. The original poster is trying to learn C++ and knows basic C. He also claims that he finds C++ complicated. By doing an over simplification like C++ is just an C with OOP features motivates him to learn and focuson the points it differs from C. Also in the broader sense Namespaces is a way to group and organize Classes and and Objects. Certainly C++ is a powerfull and full featured language but this not what we discuss here. PS For the history 1)Also Borland took this approach when introduced C++ 2)X11 windows is a classical example of C code written to give a feeling of using C++