Title: C#
Description: why its better than c++
Sam Fisher vs Solid Snake - March 7, 2004 05:09 PM (GMT)
i just started reading about C#, it is very easy. Developed by Microsoft it has the power/ functionality of C++ but is as easy as Visua Basic.
For example:
instead of std::cout << "enter text here" << std::endl;
u can use easier text such as
System.Console.WriteLine("This is better");
it give real life words instead of cout, cin, endl; and more
KTC - March 7, 2004 06:19 PM (GMT)
While not going into the details of which language is better than which other because one should choose the language for the job.... That arguement doesn't stand very much does it coz you can just think of cout as ConsoleOUTput and endl as END-Line ....
Oh, there's a lot of things one can do in C++ that one can't in C# becuase of the nature of C# design that means it runs on top of the .Net framework thing (can't remember the correct name for it :unsure: )....
dr voodoo - March 7, 2004 07:12 PM (GMT)
| QUOTE |
instead of std::cout << "enter text here" << std::endl; u can use easier text such as System.Console.WriteLine("This is better"); |
Ehh :blink: that's an argument for C++ (at least for me)
Sam Fisher vs Solid Snake - March 7, 2004 07:40 PM (GMT)
ok C# uses real wordz. and C# is a derivative of C/C++ it does have all of the functionality of C++ and it has many more keywords that sound like english not taking words and smashing them together like cout
dr voodoo - March 7, 2004 07:46 PM (GMT)
That's not my point. I prefer writting cout than System.Console.WriteLine because the C# way is 6 times as much tipping
Sam Fisher vs Solid Snake - March 7, 2004 07:47 PM (GMT)
well everybody has their prefs, o well both are good
ih8censorship - March 7, 2004 08:10 PM (GMT)
| QUOTE |
instead of std::cout << "enter text here" << std::endl; u can use easier text such as System.Console.WriteLine("This is better");
it give real life words instead of cout, cin, endl; and more
|
hmm you do know the meanings of the words cout and cin and endl dont you? i agree with dr voodoo the c# way is just too much typing for the same thing.
i actualy think of cout as C (the language) OUTput .
i think that at this point in time c++ is still better i dont think they make a c# compiler for linux since c# is made by microsoft :huh:
Sam Fisher vs Solid Snake - March 7, 2004 09:14 PM (GMT)
cout=Console Output
cin=Console Input
endl=Endline
i know, i just seem to like C# more
KTC - March 7, 2004 10:43 PM (GMT)
| QUOTE (ih8censorship) |
| i think that at this point in time c++ is still better i dont think they make a c# compiler for linux since c# is made by microsoft :huh: |
MS didn't but some other people have :)
http://www.go-mono.com/| QUOTE (Sam Fisher vs Solid Snake) |
C# is a derivative of C/C++ it does have all of the functionality of C++ ....................... well everybody has their prefs, o well both are good |
C# is a higher level language than C or C++. There is some things you just cannot do with C# because of it being on top of the CLR (or JVM in java case). Now, I'm not saying there's no use for C#, I'm just saying one just can't say one language is better than another full-stop (period). You need to choose which language to use base on what you're doing.
Sam Fisher vs Solid Snake - March 7, 2004 10:47 PM (GMT)
both C++/C# have their limits i agree, i just am saying at a first glance newbs would find C# easier since t uses real words and not words smashed together
buzz - March 8, 2004 01:10 AM (GMT)
| QUOTE (Sam Fisher vs Solid Snake @ Mar 7 2004, 10:47 PM) |
| both C++/C# have their limits i agree, i just am saying at a first glance newbs would find C# easier since t uses real words and not words smashed together |
u r true somewhat but in c++ the words just have a few letters tookn out of them, its pretty easy to figure out what the words say/mean even if your a n00b. (which i am)
TheHawgMaster - March 8, 2004 01:20 AM (GMT)
| QUOTE (Sam Fisher vs Solid Snake @ Mar 7 2004, 03:47 PM) |
| both C++/C# have their limits i agree, i just am saying at a first glance newbs would find C# easier since t uses real words and not words smashed together |
Actually C++ has absolutely no limits because of one keyword in particular: asm
buzz - March 8, 2004 01:52 AM (GMT)
lol ya true, but anyways i like c++ better :) (thats my opinion)
Anomaly - March 8, 2004 12:03 PM (GMT)
C++.NET can do
Console::WriteLine(S"This is better");
myork - March 8, 2004 01:55 PM (GMT)
C# (C Sharp) is supposed to be MS attack on Java. I like Java better than C#.
anothersomething - March 11, 2004 12:43 AM (GMT)
| QUOTE (Sam Fisher vs Solid Snake @ Mar 7 2004, 05:09 PM) |
i just started reading about C#, it is very easy. Developed by Microsoft it has the power/ functionality of C++ but is as easy as Visua Basic. For example:
instead of std::cout << "enter text here" << std::endl; u can use easier text such as System.Console.WriteLine("This is better");
it give real life words instead of cout, cin, endl; and more |
actually, c++ does the same thing.
in c++ you can display text with System::Console::WriteLine(S"sss");
you just need the .NET framework. I like .NET a lot (kicks java's ass in some cases)
to create GUIs in c++ just create a class:
| CODE |
__gc class ThisIsAWindow : Form { public: ThisIsAWindow() { Text=S"Hi" }
|
and then use Application::Run(new ThisIsAWindow()) to display the form.
It isn't the language that is making stuff simpler, it is the .NET framework.
myork - March 11, 2004 01:36 PM (GMT)
Totally agree.
That's what makes Java great the standard library that comes with Java does everything, if only there were somthing similar in C++.
I am not going the C# though. With a bit of extra work you can find all the libs you need on the web. I just wish sombody would consolidate them into a single site.
Incubator - March 11, 2004 03:46 PM (GMT)
me too, try making stackwidgets in .NEt, its horror, in Java or C++ it s a cakewalk
anothersomething - March 15, 2004 11:58 PM (GMT)
Adam - March 21, 2004 04:28 AM (GMT)
C# was meant to be protable. As in you compile it on any system and it will run on any other. That is what I have taken from it. BTW the .NET framework is supposed to be protable as well to other systems (not at this time but in the future).
Incubator - March 21, 2004 11:20 AM (GMT)
not entirely.
.NET is NOT portable to linux.
If mono (.net version for linux) did not exists then it wouldnt be portable at all?
but still, it is not complete because m$ doesnt release code (again)
for example, a .net app for windows (with gui) will not run in linux. (error: Windows.forms.form not found)
With stack widgets I mean:
http://doc.trolltech.com/3.3/qwidgetstack.htmla container to hold severl layouts and show the one you need when you do something.
In .net you need a Panel, but that works very bad
.net is not good for us hardcoders, while Java and C++ is. (.net relies too much on the drag & drop gui creation)
Also .net requires you to install a MEGA large installation of the .net framework, it needs at minimum 12 MB ram when running such an app (and can rise to 50mb for a simple prog)
ih8censorship - March 21, 2004 02:10 PM (GMT)
this is a little off topic but- does anyone know if microsoft has released source for anything they have made? short of examples..... :mellow:
dr voodoo - March 21, 2004 05:23 PM (GMT)
| QUOTE |
| this is a little off topic but- does anyone know if microsoft has released source for anything they have made? short of examples..... |
There are a few code examples at msdn but as far as I know, that's it.
Incubator - March 22, 2004 01:23 AM (GMT)
and they're not very useful either. Nor protable. (as mentioned above)
Qt's wide examples and resources ar far better
http://users.skynet.be/incubator/examples.jpglook how many? (those are just the compiled binaries, the source is also included in QT :) )