CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011

    About the C++ syntax

    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?

  2. #2
    Join Date
    Oct 2006

    Re: About the C++ syntax

    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/
    Last edited by S_M_A; November 4th, 2011 at 06:47 AM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.