|
-
December 19th, 2010, 01:48 PM
#1
How to distinguish between c and c++?
is there an easy way to distinguish between c and c++? I mean how do I know if a function or a header file is c or c++? is it important at all to be able to tell what is c and what is c++ when I'm going to learn MFC?
win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming
remeber to give feedback  you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation
private lessons are not an option so please don't ask for help in private, I won't replay
if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know
-
December 19th, 2010, 02:10 PM
#2
Re: How to distinguish between c and c++?
is there an easy way to distinguish between c and c++?
Yep. The easiest way is to get both studied. After that you're gonna have no questions of this sort. Trust me, it shouldn't take a lot of time, maybe a year or something. 
More unreliable way is asking google.
Last edited by Igor Vartanov; December 19th, 2010 at 02:15 PM.
Best regards,
Igor
-
December 19th, 2010, 02:38 PM
#3
Re: How to distinguish between c and c++?
is there an easy way to distinguish between c and c++?
is it important at all to be able to tell what is c and what is c++ when I'm going to learn MFC?
By the time you know the answer to the first question, you will already know the answer to the second question. Simply start programming both and you will soon see the differences and the hows and why's.
-
December 19th, 2010, 03:00 PM
#4
Re: How to distinguish between c and c++?
C functions without input must have "(void)" as input while C++ have both "()" and "(void)".
C++ have the keyword "class" because it is almost object oriented (without garbage collecting).
-
December 19th, 2010, 03:33 PM
#5
Re: How to distinguish between c and c++?
 Originally Posted by memeloo
is there an easy way to distinguish between c and c++?
Take the sample source file, and change the extension to .c. If it compiles, change the extension to .cpp. If it doesn't compile, then the module was meant to be compiled using a C compiler.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|