C#.NET TCCICOMPUTERCOACHING.COM
C# is a
simple, modern, general-purpose, object-oriented programming language developed
by Microsoft within its .NET initiative led by Anders Hejlsberg.
C#
(pronounced C Sharp) is new technology that is much powerful and easy to learn.
It consists of thousands of prebuilt classes and interfaces that lets
programmer to write powerful code in very less time. If you are beginners then
don’t worry and just start with very first lesson and do exercises regularly. I
promise you to in very short time you will be able to write complex programming
module without getting help of any third party resources.
To run
C# code, Visual Studio is the best editor. Either you can choose console based
application to run program directly or you can write program on notepad and
then run them on visual studio command prompt.
The
.Net framework applications are multi-platform applications. The framework has
been designed in such a way that it can be used from any of the following
languages: C#, C++, Visual Basic, Jscript, COBOL, etc. All these languages can
access the framework as well as communicate with each other.
Integrated
Development Environment (IDE) for C#
Microsoft
provides the following development tools for C# programming:
Visual
Studio 2010 (VS)
Visual
C# 2010 Express (VCE)
Visual
Web Developer
C#
programming is very easy so never be bored with this language.
The using keyword
is used for including the namespaces in the program. A program can include
multiple using statements.
The class Keyword
The class keyword
is used for declaring a class.
Member
Variables
Variables
are attributes or data members of a class, used for storing data.
Member
Functions
Functions
are set of statements that perform a specific task. The member functions of a
class are declared within the class.
Identifiers
An
identifier is a name used to identify a class, variable, function, or any other
user-defined item.
C#
Keywords
Keywords
are reserved words predefined to the C# compiler.
Now
save this program as Chapter1.cs. You must choose All Files in save as type
box.
Go to
Start > All Programs > Microsoft Visual Studio 2005 or 2008 > Visual
Studio Tools > Visual Studio 2005 or 2008 Command Prompt.
Set
Path in command prompt where your Chapter1.cs file is saved. Here we are using
D:/Csharp>
Now
compile your program by following command:
Setting
environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Program Files\Microsoft Visual Studio 9.0\VC>d:
D:\>cd sharp/
C:\Program Files\Microsoft Visual Studio 9.0\VC>d:
D:\>cd sharp/
D:\csharp>csc
Chapter1.cs
Microsoft <R> Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft <R> .NET Framework version 3.5
Copyright <C> Microsoft Corporation. All rights reserved.
D:\csharp>Chapter1
This is my First C# Program
Microsoft <R> Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft <R> .NET Framework version 3.5
Copyright <C> Microsoft Corporation. All rights reserved.
D:\csharp>Chapter1
This is my First C# Program
To
Learn More About c# training in Ahmedabad, TCCI
No comments:
Post a Comment