What is this langauge?
4 posters
:: C Languages :: C# :: General Discussion
Page 1 of 1
What is this langauge?
I just clicked on this thread and like I have never heard of this language before. DX
Could you guys like tell me a little about it other than the basic stuff(Google + Wikipedia = Win)?
Thanks.
Could you guys like tell me a little about it other than the basic stuff(Google + Wikipedia = Win)?
Thanks.
noobProgrammer- Posts : 8
Join date : 2012-01-05
Re: What is this langauge?
C# is one of the many C languages out there. In addition to C++ and C#, there is C, and C-- (C-- is not a very popular language however.)
All of these languages are grouped together not only by name, but by style and how they were created. All of these languages are based off of one another. I don't know in what order each language came about, however I do know the C came out, and then C++ was released.
I also know the story of how C++ got its name. As you will learn, if you take the time to learn the language, C++ uses the "++" command to increment to increment a variable. See the example code to see this in action. I have commented on the code to make it easier to understand. Comments can be identified by the "//".
The following code is C++, and not C! Please be aware that syntax errors may be present in the program, as this was typed in the box for the purpose of being an example, and this code is not complete, nor is it 100% accurate.
The above code demonstrates the use of the ++ and -- operators. These are necessary to understand the story of how C++ got its name. Click on the spoiler to read it.
All of these languages are grouped together not only by name, but by style and how they were created. All of these languages are based off of one another. I don't know in what order each language came about, however I do know the C came out, and then C++ was released.
I also know the story of how C++ got its name. As you will learn, if you take the time to learn the language, C++ uses the "++" command to increment to increment a variable. See the example code to see this in action. I have commented on the code to make it easier to understand. Comments can be identified by the "//".
The following code is C++, and not C! Please be aware that syntax errors may be present in the program, as this was typed in the box for the purpose of being an example, and this code is not complete, nor is it 100% accurate.
- Code:
#include <iostream> // Ignore this, this is too advanced for a beginner to understand without an in-depth explanation.
using namespace std; // Ignore this as well.
int main() // This declares the main function in which most of the program code will be included.
{
int ExampleVar = 0; // This declares a variable named "ExampleVar" of type "int" (short for integer), and sets its value to 0.
ExampleVar++; // This statement will take the variable named "ExampleVar" and will increment by one, which will set it to one. Remember, ++ means increment by one, so ExampleVar now equals 1.
ExampleVar--; // Unlike ++ which increments, -- decrements by one; ExampleVar once again equals 0.
}
The above code demonstrates the use of the ++ and -- operators. These are necessary to understand the story of how C++ got its name. Click on the spoiler to read it.
- Spoiler:
- C++ got its name because it was derived from C. Because of this, the creators of C++ decided to name it C++ because it "incremented" off of C++.
I am not sure what the story is for C--, as it would seem stupid to write a language with less capabilities than its predecessor.
Re: What is this langauge?
LAWL DB look at the forum mate this this not C++, it is C#. tsk tsk tsk
But to clarify DB is right in that C++ got it's name from C in that it is C "plus one", or C with classes. (Yes I know C++ really is not a superset of C.
-_-)
Anyway I don't know much about C# and if you ask me you may get a kind of biased opinion.(As always. XD), but uhhh lets see...
You pronouce it as C sharp.(I did not know that and I used to call it C hash since that is what it means in C++. XD)
Furthermore, C# is not really based in my humble opinion really on C but rather Java although there are some, some C influences.
And honestly C# to me goes like this..
C# = (Java + C / 85) + Microsoft
But to clarify DB is right in that C++ got it's name from C in that it is C "plus one", or C with classes. (Yes I know C++ really is not a superset of C.
-_-)
Anyway I don't know much about C# and if you ask me you may get a kind of biased opinion.(As always. XD), but uhhh lets see...
You pronouce it as C sharp.(I did not know that and I used to call it C hash since that is what it means in C++. XD)
Furthermore, C# is not really based in my humble opinion really on C but rather Java although there are some, some C influences.
And honestly C# to me goes like this..
C# = (Java + C / 85) + Microsoft
Last edited by legolizard on Mon Jan 16, 2012 7:45 pm; edited 1 time in total
legolizard- Posts : 137
Join date : 2011-08-01
Location : On planet Char.
Re: What is this langauge?
Thanks for verifying what I said, I was sure that the story was correct, but I wanted someone to double-check me.legolizard wrote:LAWL DB look at the forum mate this this not C++, it is C#. tsk tsk tsk
But to clarify DB is right in that C++ got it's name from C in that it is C "plus one", or C with classes.
Anyway I don't know much about C# and if you ask me you may get a kind of biased opinion.(As always. XD), but uhhh lets see...
You pronouce it as C sharp.(I did not know that and I used to call it C hash since that is what it means in C++. XD)
Furthermore, C# is not really based in my humble opinion really on C but rather Java although there are some, some C influences.
And honestly C# to me goes like this..
C# = (Java + C / 85) + Microsoft
Re: What is this langauge?
Thanks guys, any other stuff? After a little reaserch I found that there are many different styles of programming, like procederual and object orented and a bunch of ways to program like procederal style object oriented style and a whole bunch of other styles and it looks like C# is all object oriented like Java(is that the Java influence legolizard?), which seems more advanced for me right now.
But thanks now I know a little about C# and C++ too. .
But thanks now I know a little about C# and C++ too. .
noobProgrammer- Posts : 8
Join date : 2012-01-05
Re: What is this langauge?
There are other languages on this forum, but I do not know them. Among those on my languages to learn include:noobProgrammer wrote:Thanks guys, any other stuff? After a little reaserch I found that there are many different styles of programming, like procederual and object orented and a bunch of ways to program like procederal style object oriented style and a whole bunch of other styles and it looks like C# is all object oriented like Java(is that the Java influence legolizard?), which seems more advanced for me right now.
But thanks now I know a little about C# and C++ too. .
- finishing up C++
- Java
- HTML, JavaScript, CSS, PHP, (and yes, HTML5)
- Python
Re: What is this langauge?
C# is another reworking of C. Supposingly, it's microsofts attempt at creating a language with the functionality of C++, but more Java-like in terms of simplicity. Take a comparison at a java/C# hello world program. (hello world is the programming intro, a basic print text statement)
Java Hello World:
C# Hello World
Don't let this confusingness confuse you. This stuff is all simple. Hello World is your first program. lol. Once you know it, it will be simple
Java Hello World:
- Code:
public class Main{
public static void main(String[] args){
System.out.println("Hello World");
}
}
C# Hello World
- Code:
public class Main{
public static void main(String[] args){
Console.WriteLine("Hello World");
Console.ReadLine();
}
}
Don't let this confusingness confuse you. This stuff is all simple. Hello World is your first program. lol. Once you know it, it will be simple
Nighthawk0973- Moderator
- Posts : 307
Join date : 2011-07-20
Age : 26
Location : In Front of My Computer
Re: What is this langauge?
That above statement is something that you should always keep in mind when programming.Nighthawk0973 wrote:Don't let this confusingness confuse you. This stuff is all simple. Hello World is your first program. lol. Once you know it, it will be simple
Here is a C++ hello world.
- Code:
// This is a basic Hello World program in C++.
// Do not let this intimidate you, as Nighthawk said,
// this is your first program, and should you decide to
// learn C++, this will all be taught to you.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!";
return 0;
}
Last edited by legolizard on Sun Jan 08, 2012 8:05 pm; edited 1 time in total (Reason for editing : I checked your code, only one mistake. ;))
Re: What is this langauge?
While it is nice that you are giving me all this information, wouldn't a C++ hellor world be better suited in the C++ thread?
But thanks Nighthawk, I may want to learn this too along with Java.
But thanks Nighthawk, I may want to learn this too along with Java.
noobProgrammer- Posts : 8
Join date : 2012-01-05
Re: What is this langauge?
Ahh, you are learning well!noobProgrammer wrote:While it is nice that you are giving me all this information, wouldn't a C++ hellor world be better suited in the C++ thread?
Re: What is this langauge?
This shouldn't even be in help for that matter. It would be better suited in 'General Discussion', as you're not actually getting help with C#.
Nighthawk0973- Moderator
- Posts : 307
Join date : 2011-07-20
Age : 26
Location : In Front of My Computer
Re: What is this langauge?
You're a moderator! Why don't you do it?Nighthawk0973 wrote:This shouldn't even be in help for that matter. It would be better suited in 'General Discussion', as you're not actually getting help with C#.
Re: What is this langauge?
Very well... (I new you would pipe in if I was right, so this was just a test to make sure I was)
Nighthawk0973- Moderator
- Posts : 307
Join date : 2011-07-20
Age : 26
Location : In Front of My Computer
Re: What is this langauge?
-Moved thread to Sub-Forum "General Discussion"-
Nighthawk0973- Moderator
- Posts : 307
Join date : 2011-07-20
Age : 26
Location : In Front of My Computer
:: C Languages :: C# :: General Discussion
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|