Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 03:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C++ vs C#

Discussion on C++ vs C# within the C/C++ forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
_Shuriken_'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 214
Received Thanks: 27
Arrow C++ vs C#

Da mir AutoIT zu lahm wird, möchte ich umsteigen auf etwas größeres und habe 2 Möglichkeiten: C++ & C#

SuFu ergab nichts.
_Shuriken_ is offline  
Old 11/02/2009, 11:51   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 109
Received Thanks: 5
....ich empfehle c++
leridan is offline  
Thanks
1 User
Old 11/02/2009, 13:13   #3
 
Shadowz75's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 443
Received Thanks: 597
Pro C#:

* garbage collection
* array bounds checking
* huge .NET-Framework library
* types have a defined size (e.g. a long is 64Bit)
* strings are encoded in UTF/16
* autoboxing - every type can be treated as if it inherits from object
* supports constructor-chaining (one constructor can call another constructor from the same class)
* when a virtual method is called in a constructor, the method in the most derived class is used
* static constructors (run before the first instance of the class is created)
* exceptions have access to a stack trace
* advanced runtime type information and reflection
* supports variadic functions nicely
* built-in support for threads
* no need for header files and #includes
* no fall-through on switch-statements
* arithmetic operations can be checked for overflow if required
* objects must have a definite value before being used
* attributes can be attached to classes and retrieved at runtime
* no forward declarations required, classes can be arranged at will
* access to class members / functions is done only by the dot (no more -> or :
* conditional functions (e.g. for debugging)
* structs and classes are actually different (structs are value types, have no default constructor in general cannot be derived from)
* supports properties
* readonly members are const, but can be changed in the constructor
* finally block for exceptions
* arrays are objects
* support for anonymous functions
* supports the base keyword for calling the overridden base class

Pro C++

* better performance
* portability
* multiple inheritance
* deterministic destruction (allows RAII)
* any type can be thrown as exception (only classes derived from System.Exception in C#)
* ability to enforce const-correctness
* implicit interfaces on generics (in C#, generics must be constrained with an interface)
* offers pointers (C# only offers pointers in unsafe mode)
* support for macros
* support for global variables, functions, constants
* allows default arguments on function parameters
* STL
* supports bitfields



I prefer C#, because of the .Net Framework library
Shadowz75 is offline  
Thanks
1 User
Old 11/02/2009, 18:28   #4
 
TrueYami's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 1,256
Received Thanks: 314
^

Totaly agree.
TrueYami is offline  
Old 11/02/2009, 18:58   #5
 
Gianotti's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 1,455
Received Thanks: 140
ich finde beide sprachen gut doch benutzen tue ich beide für andere dinge :

c++ benutze ich nur für hacks ( detours,writeprocessmemory/read etc ). c# benutze ich um Programme zu schreiben ( client und server anwendungen etc )

( hacks sind auch progs ist schon klar )

c# ist nicht so fehleranfällig wie c++. jeder anfänger sollte mit c# anfangen . ist um einiges einfacher ( subjektive meinung )
Gianotti is offline  
Old 11/02/2009, 19:54   #6


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
c++
MrSm!th is offline  
Old 11/03/2009, 00:57   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
c++ more advanced
C# more common
Fish* is offline  
Old 11/03/2009, 10:31   #8
 
_Shuriken_'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 214
Received Thanks: 27
Es gibt wohl keine Einigkeit wies ausschaut.
Wahrscheinlich werd ich erstmal in C# reinschnuppern^^, dann seh ich weiter.
_Shuriken_ is offline  
Old 11/03/2009, 12:13   #9




 
bloodx's Avatar
 
elite*gold: 55
Join Date: Mar 2006
Posts: 4,582
Received Thanks: 1,539
c++ = musst du dein Hirn mehr anstregen
c# = kansnt du chilla machen..


bloodx is offline  
Thanks
1 User
Old 11/03/2009, 12:18   #10
 
Gianotti's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 1,455
Received Thanks: 140
Quote:
Originally Posted by bloodx View Post
c++ = musst du dein Hirn mehr anstregen
c# = kansnt du chilla machen..


/agree so ists wirklich XD
Gianotti is offline  
Old 11/03/2009, 19:38   #11
 
elite*gold: 0
Join Date: Jul 2008
Posts: 22
Received Thanks: 2
Quote:
Originally Posted by bloodx View Post
c++ = musst du dein Hirn mehr anstregen
c# = kansnt du chilla machen..


war das jetzt pro-c#? sonst kannste auch gleich brainfuck lernen @ts.
seraph1n is offline  
Old 11/03/2009, 21:11   #12




 
bloodx's Avatar
 
elite*gold: 55
Join Date: Mar 2006
Posts: 4,582
Received Thanks: 1,539
c++ > c#

kommt aber drauf an was du später damit amchen willst :/
bloodx is offline  
Thanks
1 User
Old 11/04/2009, 16:15   #13
 
elite*gold: 0
Join Date: Sep 2006
Posts: 248
Received Thanks: 110
Quote:
Originally Posted by bloodx View Post
c++ > c#

kommt aber drauf an was du später damit amchen willst :/
Programmiersprachen sind keine Fußbäller. Die eine ist nicht besser als die andere, wie du schon angedeutet hast, use the right tool, for the right job. Ein Programmierer entscheidet sich nie zwischen 2 Sprachen, er lernt einfach beide.
backo is offline  
Old 11/04/2009, 18:50   #14
 
_Shuriken_'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 214
Received Thanks: 27
Angenommen, man kann beide Sprachen perfekt, kennt jeden Befehl in- und Auswendig und man scheißt auf die Komfortablität beim Programmieren, so würde C++ um einiges mehr bringen, oder? (wenn man alles programmieren können will, vom einfachen Text ausgeben über ein eigenes Videoprogramm bis zu Hacks und noch schwierigeren Sachen.)
_Shuriken_ is offline  
Old 11/04/2009, 21:09   #15


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Quote:
Originally Posted by Pflyffser View Post
Angenommen, man kann beide Sprachen perfekt, kennt jeden Befehl in- und Auswendig und man scheißt auf die Komfortablität beim Programmieren, so würde C++ um einiges mehr bringen, oder? (wenn man alles programmieren können will, vom einfachen Text ausgeben über ein eigenes Videoprogramm bis zu Hacks und noch schwierigeren Sachen.)
du gehst hier von einer Situation aus, die NIEMALS bei NIEMANDEM möglich sein wird!
Aber generell ist C++ universell, egal ob man alles kann oder nicht!
Ich sags so: Solange man weiß, wo man Namen der Funktionen herkriegt (Google) und wo man nachschlägt, wie man sie anwendet (im Falle Windows MSDN), dann kommt man gut zurecht!
Und C++ kann auch sehr komfortabel sein, wofür gibts Libs?
Insgesammt ist C# nur zu empfehlen wenn du auf Crossover scheißt.
MrSm!th is offline  
Closed Thread

Tags
c#, c++




All times are GMT +1. The time now is 03:09.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.