About the C++ syntax
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: About the C++ syntax

  1. #1
    Join Date
    Nov 2011
    Posts
    7

    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
    Location
    Sweden
    Posts
    3,642

    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 07: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
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

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

This is a CodeGuru survey question.


Featured


HTML5 Development Center