Re: C++ vs C#



On Mon, 9 May 2005 14:15:44 -0400, "Stephen" <stephen@xxxxxxxxxxxx>
wrote:

>x-no-archive: yes
>
>C++ is a pedal to the metal nitty gritty very high performance object
>oriented programming language with wide support, an excellent STL (Standard
>Template Library) and many other libraries and lots of books written for it.
>It is a very complicated language however and you'd better get real used to
>pointers, references, and pointers to pointers, and pointers to references
>of pointers to objects containing arrays of pointers if you want to use it.
>
>If you use C++ to program for Windows you will have to learn five thousand,
>four hundred and fifty-two (5,452) different macro names for strings and no
>two are really compatible with only 314 different versions of every function
>needed for each one: LPSTR LPCSTR LPPCSTSTRST WCTSTR WPCSTR STRWPPCSTR STR
>cstr cstring CString WCString WCpyString <string> wstr strcpyw strcpyl
>lstrcpy cpycpystyr STSTRSS CSTRWP LPSTRCPY LWPSTR CSTRWPLSTR ... etc.
>
>C# is a high performance (managed) interpreted object oriented language.
>Lots of books, expanding libraries, lots of support and an excellent .NET
>framework. It has simplified programming for Windows and seems to be the
>future of programming for Windows. Yes, engines for the language are being
>developed for other than Windows platforms. It stays relatively
>uncomplicated until you get into interfaces, delegates and attributes etc.
>In C#, strings actually seem to make real sense.
>
>You can mix C++ and C# languages but there are considerations when you do
>so.
>
>
>TStoltz wrote:
>> Hi,
>>
>> I'm sorry if this question comes inapropriate but hope you can help me
>> answer the following:
>>
>> What is the difference between C++ and C#. Can I use C++ code within
>> the C# code. I've heard postive things about Framework which should
>> be similar to MDSN - or what is it better/worse?
>>
>> Please tell me why I should go for C-sharp instead of C++
>>

You should not if you have competence in c++. If you dont or worse
have been VB programmer by all means use c#. It gives you access to a
broad framework, although no low level access like c++. Also it is
more forgiving like java with regard to complexity and memory
management.
If for instance you want to write essentially two tier applications(
database with some gui) then by all means use c#, java, delphi, vb.net
or whatever low level encapulating language).
If on the other hand you think complexity is your job stay with c++.

Hope it helps,



Rick


>> Thx
>

.



Relevant Pages

  • Re: CL-UNIFICATION as a library (Re: Qi Seems Great)
    ... perhaps it is time for a new revision for the language? ... Common Lisp people looking down on everybody else, ... But I'm not new to programming - that's ... should find the CL implementation and set of libraries most suitable ...
    (comp.lang.lisp)
  • Re: C++ or Java ?
    ... programming styles, not just OOP. ... >> libraries and tools outweighs the benefit of having a more powerful ... pick a suitable set of libraries, and then see which language it's ... What is Python, precious? ...
    (comp.os.linux.development.apps)
  • Re: Conformance
    ... better than C for certain types of programming, and C is better than C++ ... You think that C will lose because it has far less features than C++. ... currently a superior language. ... libraries, some of which were last updated decades ago. ...
    (comp.std.c)
  • Re: Language flame wars are moot
    ... > Most windows libraries and the like use their own collection ... only after determining if the language AND libraries provide ... Likewise I refuse to write math heavy code in Objective-C ... It SUPPORTS object oriented programming, ...
    (comp.lang.lisp)
  • Re: The smartest band in the world?
    ... first class honours if they come close in their final year, ... programming career would need a rudimentary unserdtanding of C, ... there was another language called Eiffel - but it too died in the ... introduction to OO though - no pointers and headers files like C++, ...
    (alt.guitar)