Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: K on October 20, 2003, 01:57 PM

Title: Re: Welcome
Post by: K on October 20, 2003, 01:57 PM
Quote3) If you post anything that is C or C++ specific, prepend your topic's subject with [C], [C++], [C#]respectively.

Why would C# posts belong in a C/C++ forum?  
Title: Re: Welcome
Post by: Adron on October 20, 2003, 02:35 PM
Excellent question. .NET should be its own forum since it's neither VB nor C++!
Title: Re: Welcome
Post by: K on October 20, 2003, 02:57 PM
Although I don't think there are enough posters here who use .NET to warrant that; when there's a good amount of .NET topics in the General Programming Forum, you could try setting up a .NET-specific forum.
Title: Re: Welcome
Post by: CupHead on October 20, 2003, 03:16 PM
It's a C variant, now quit whining.
Title: Re: Welcome
Post by: Tuberload on October 20, 2003, 03:53 PM
I think it's a Java variant.
Title: Re: Welcome
Post by: iago on October 20, 2003, 04:18 PM
Yes, it's a ripoff of Java which has nothing to do with C.  Just because it's named C# doesn't mean it has to do with C or C++, just like because you're called Cuphead doesn't mean you have a cup on your shoulders.
Title: Re: Welcome
Post by: CupHead on October 20, 2003, 04:40 PM
First of all, that has to be about the dumbest analogy I've ever read.  Deserving of the annals of idiocy.  Secondly, if you weren't spending your time being a complete twit, you'd know that JScript is .NET's "ripoff of Java".  The syntax of C# is related more closely to C++ than it is to Java despite its horrifying amounts of namespace usage.  I suggest you check both out so that you can give informed opinions in the future.
Title: Re: Welcome
Post by: Adron on October 20, 2003, 05:01 PM
Either way, all the .NET languages are more closely related to each other than to other languages. Questions asked about how to do things in a .NET language will have similar answers in other .NET languages.
Title: Re: Welcome
Post by: K on October 20, 2003, 05:33 PM
QuoteIt's a C variant, now quit whining.

It is syntactically similar to C++ which is syntactically similar to java.  Unfortunantly, the similarity ends there, because the libraries are different.  C#: .NET.  C/C++: Standard Library / STL.  saying C# : C++ :: C++ : C is completely wrong.
Consider:
Q: How do I do console IO?

A: (C#)

using System;

namespace HelloWorldProject
{
    public class MyFirstClass
    {
         public static void main(string[] args)
         {
                Console.Write("Enter Your Name: ");
                string sName = Console.ReadLine();
                Console.WriteLine("Hello " + sName);
                return;
         }
    }
}


A: (C++)

#include <iostream>
#include <string>
using std::cout;
using std::cin;
using std::endl;
using std::string;

int main(int argc, char* argv[])
{
    string sName;
    cout << "Enter Your Name: " << endl;
    getline(cin, sName);
    cout << "Hello " << sName << endl;

    return 0;
}


PS: C# is much more similar to Java than JScript .NET.  JScript kind of reminds me of a cross between java and pascal.

//JScript:
function AddIntegers(a : int, b : int) : int
{
  var result : int;
   
  result = a + b;
  return result;
}
Title: Re: Welcome
Post by: CupHead on October 20, 2003, 05:59 PM
What the hell is going on in that tiny little head of yours, K?  Obviously all .NET languages use the .NET framework and the .NET CLR.  You can't possibly be dumb enough to think we were comparing anything other than syntax, can you?
Title: Re: Welcome
Post by: Adron on October 20, 2003, 06:26 PM
We're obviously not comparing syntax, because very few people ask questions about the syntax of C++. Most questions deal with how to do this and that, and the answer will depend on the runtime. Thus, all the .NET languages belong together :)
Title: Re: Welcome
Post by: CupHead on October 20, 2003, 06:32 PM
Feel free to make a .NET forum and move all of the appropriate topics.
Title: Re: Welcome
Post by: Adron on October 20, 2003, 06:38 PM
I don't know .NET well enough to moderate such a forum appropriately. My strong languages are assembler, C++ and somewhat VB. .NET is almost completely unknown to me.
Title: Re: Welcome
Post by: CupHead on October 20, 2003, 07:05 PM
Then perhaps suggesting such a forum was a little premature?   ::)
Title: Re: Welcome
Post by: Arta on October 20, 2003, 09:06 PM
This whole thread is retarded.
Title: Re: Welcome
Post by: CupHead on October 20, 2003, 09:14 PM
No one asked you.  Damn nosy Brits.   :P
Title: Re: Welcome
Post by: Adron on October 21, 2003, 03:48 AM
Quote from: CupHead on October 20, 2003, 07:05 PM
Then perhaps suggesting such a forum was a little premature?   ::)

Most certainly not. I've seen many people ask questions about .NET and I know that several members have touched it. Just because I haven't, doesn't mean noone has.
Title: Re: Welcome
Post by: Banana fanna fo fanna on October 21, 2003, 07:38 PM
I love how cup deletes posts which prove him wrong.
Title: Re: Welcome
Post by: iago on October 21, 2003, 07:44 PM
lol, yeah.. I got several compliments on a post I made here which got deleted.

Incidently, it's rather rude to delete posts of other members :P
Title: Re: Welcome
Post by: Banana fanna fo fanna on October 21, 2003, 08:46 PM
Yeah dude, that's the reason I started being a smartass.
Title: Re: Welcome
Post by: Kp on October 21, 2003, 08:57 PM
Quote from: St0rm.iD on October 21, 2003, 08:46 PM
Yeah dude, that's the reason I started being a smartass.
You started being a smartass because you were deleting members' posts? :)
Title: Re: Welcome
Post by: Hitmen on October 21, 2003, 10:54 PM
Quote from: Kp on October 21, 2003, 08:57 PM
Quote from: St0rm.iD on October 21, 2003, 08:46 PM
Yeah dude, that's the reason I started being a smartass.
You started being a smartass because you were deleting members' posts? :)
He found an exploit, ban him!
Title: Re: Welcome
Post by: iago on October 21, 2003, 11:09 PM
*Notes that Cuphead no longer has any power on this forum :)
Title: Re: Welcome
Post by: Tuberload on October 22, 2003, 03:02 AM
Ah it was my post that got deleted... May I be given an explanation?
Title: Re: Welcome
Post by: Adron on October 22, 2003, 03:02 AM
What did it say?
Title: Re: Welcome
Post by: Tuberload on October 22, 2003, 03:09 AM
I was explaining why I think C# is more of a Java variant than C/C++. I also posted a professional opinion from a Java book I have.
Title: Re: Welcome
Post by: Banana fanna fo fanna on October 22, 2003, 02:34 PM
I explained how JScript/Javascript has nothing to do with Java.
Title: Re: Welcome
Post by: iago on October 22, 2003, 04:31 PM
Quote from: St0rm.iD on October 21, 2003, 07:38 PM
I love how cup deletes posts which prove him wrong.

Quote from: Tuberload on October 22, 2003, 03:09 AM
I was explaining why I think C# is more of a Java variant than C/C++. I also posted a professional opinion from a Java book I have.
Title: Re: Welcome
Post by: Adron on October 22, 2003, 06:10 PM
Ah yes. I think I read that post quickly but couldn't find it later. What a shame to lose it.
Title: Re: Welcome
Post by: Banana fanna fo fanna on October 22, 2003, 07:20 PM
Hey hey, don't forget mine!
Title: Re: Welcome
Post by: iago on October 23, 2003, 12:32 AM
Quote from: St0rm.iD on October 22, 2003, 07:20 PM
Hey hey, don't forget mine!

St0rm posted?  I didn't think anybody read his posts ;-)
Title: Re: Welcome
Post by: Banana fanna fo fanna on October 23, 2003, 02:02 PM
True dat.