Thread: can any body help in distinguishing C++ and VC++

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    18

    can any body help in distinguishing C++ and VC++

    Hi everybody !

    Can any body tell me the difference between C++ and VC++.

    I want to learn C++ and make my career as C++ developer.

    Can u tell me what is the difference between C++ and VC++ developer.

    Can I be C++ and VC++ programmer both or both are different from each other ?

    What are the career aspect of both language's.

    Please guide me in choosing my career....

    Thanks

  2. #2
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    C++ is a language, while VC++ refers to Visual C++ ( which is a part from Visual Studio ) which is a compiler.
    Beside VC++ there are other C++ compilers...
    A compiler is a thing that converts your C++ code to executable files in your operating system.
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    It's also important to make sure you learn the language rather than the implementation.

    That is, you learn standard C++ (as defined by ISO / ANSI), not VC++ (as implemented by M$).

    Standard C++ should work everywhere you go, but learning a bunch of M$ specific stuff will do you no good at all if you work with another compiler (or indeed a later compiler from Microsoft).

    > Please guide me in choosing my career....
    You need to know a lot more than simply being able to recognise C++ when you see it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    VC++ is an implementation of C++. C++ is a language with its own rules and grammar, just like English. VC++ includes (among other things) a compiler. (Try to get information on and understand the words in bold.) You could think of VC++ as a C++ translator who will turn C++ words into binary words your computer can understand. There are many compilers besides Visual Studio: GNU compiler, lcc, tcc, Sun, Intel, etc.

    You also want an IDE, which contains a specialized code editor, and various other useful tools. VC++ is a good commercial one, and a good free one is Dev-C++.
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Also note that VC++ includes the ability to make something called Managed C++ and/or C++/CLI (depending on your version), neither of which are standard C++. Some people mean those things when they say VC++.

    You can be a C++ programmer or a C++/CLI programmer, they are different languages. Whether C++/CLI is a worthy language to learn I'll let someone else comment on.

  6. #6
    Registered User
    Join Date
    Nov 2006
    Posts
    18

    thanks but still some doubt

    Thanks to all of u for giving me such a useful information.

    But I have some doubts remaining.

    As you all off were conveying nearly the same message that VC++ is a compiler of MSoft.

    Ok that's right.

    I want to know that the programming features like MFC,DLL creation,ATL etc which are

    provided by MSoft can be achieve in simple C++ compiler.

    If yes then how and which C++ compiler rather than MS support this?

    I think MFC strictly belong to MS.

    Or these features are restricted to MS VC++.

    At last I just want to clear that I want to become a C++ programmer which is not restricted

    to any compiler or in other words a generic C++ programmer.

    Please help me.

    Thanks

  7. #7
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    Yes, MFC and other technologies belong to MS and you can't get then without paying for them. But learning Windows-specific technologies may not be helpful in the long run; you're tied to the software. Anyway, it's up to you.

    If you want to learn the standard C++ (you should in any case before you learn other things) then sites like C++ reference can be useful. Nearly every compiler introduces its own extensions to the language; you should disable these extensions (most compilers allow this) as well as make sure the features you're using (check online references) comply with the standard.

    That being said, standard C++ doesn't offer much (no GUI, no DLLs, etc) so sooner or later you will want to branch out and learn something specific.
    Last edited by jafet; 11-15-2006 at 04:06 AM.
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

Popular pages Recent additions subscribe to a feed