How can I declare such a simple function in C++?
I used to program with C. Now I've moved to C++.
Is there any syntax comparison chart or table?
Printable View
How can I declare such a simple function in C++?
I used to program with C. Now I've moved to C++.
Is there any syntax comparison chart or table?
:confused: Can you elaborate that question a bit?
A non member function is declared the same way in C++ as in C. If you compile all source files as C++, i.e. not mixing C compiled and C++ compiled source, in most cases you won't notice any difference.
Edit: Here's a really good C++ FAQ http://www.parashift.com/c++-faq/