C# has, besides it's name and some of it's syntax, nothing to do with C or C++. It's an entirely different programming language. Main() and printf are a C thing.
Last edited by SirDice; January 22nd, 2008 at 01:50 PM.
Oliver's Law:
Experience is something you don't get until just after you need it.
Definitely - not only are they two different languages, but they are two completely different kinds of language. C is a procedural language whereas C# is object oriented. C# is similar to Java. The equivalent in C# would look like:
Code:
public class MainClass
{
public static void Main(string[] args)
{
System.Console.Write("I see, I remember");
}
}
If you want to write in C/C++ using Visual Studio you'll have to download a different version.
ac
Last edited by gothic_type; January 22nd, 2008 at 02:57 PM.
I don't know who recommended C#, but that recommendation
was reasonable.
There are two ways to increase your chances for a
well-paid job position nowadays - either know an
old programming language (cobol, fortran,CL(V5R3)
on OS/400, VMS, ...),
or be proficient in a modern language (e.g. .NET-flavours,
such as C# or VB.NET).
Every language has its own strength and purposes. You won't
use perl for an extensive application with GUI, you won't use
.NET for a slim text-analysis tool, you won't use VB6 for computationally
intensive applications, ...
I love c/c++ and I have been using it for uncountable years. However,
it really depends what you want to achieve... just a thought.
Cheers
If the only tool you have is a hammer, you tend to see every problem as a nail.
(Abraham Maslow, Psychologist, 1908-70)
Can you program? I mean do you know how to in any type of language?
If not, C might be a little to much to get started.. Programming in C means you have to do everything yourself, reserve memory, allocate variables, clean up etc... You might want to start with a more higher level language just to get into the basics.. Once you know how to solve problems you can move on the more lower levels.. The syntax might be different but the basics of programming (it's structure) will remain the same..
Oliver's Law:
Experience is something you don't get until just after you need it.
I am not a programmer by profession or a computer expert i have lot of interest in learning computer and i want to leave my profession of accountancy and join in new stream of programming
and i want to become a programmer by profession
so what do u recommend for kick starting with programming.
Question is not "Why are you Online"
Question is "Why are you Off line"