C# tutorial-C# programming ?


What is C#?

C# is a successive cross-platform programming language of C and C++.Its basic syntax is very similar to C and C++ programming languages. However, C# has many useful features such as garbage collection, exception handling, extensive class library, multiple types of polymorphisms. In addition, C# has powerful development tools, and therefore making C# worth to learn.

One common C# development tool for Windows is Visual Studio that will be used in this tutorial. Therefore, to follow the tutorial, you need to have Visual Studio 2008 or newer installed in your machine.

In this C# programming language tutorial, you will start with the basic knowledge required to get up and running with C#. Then you will learn some basic and advanced concepts of C# programming language(along with workable examples and samples projects) including C# variables and data types, operators and expressions, conditional statements or decision making, loops or repetitions, array, structure, enumeration, exception handling, string manipulation methods, Object-Oriented programming concept, database connectivity and manipulation, GUI programming, and other useful sample program source code.

c# development tool vm




Comments

AA comment

 AA

Create a Vector2D class using the following UML diagram:

Vector2D
double x
double y
double X – getter and setter
double Y – getter and setter
public Vector2D(double xValue, double yValue )
public void NegateX()
public void NegateY()
public void AddVector(double xValue, double yValue)
public void SubtractVector(double xValue, double yValue)
public void ScalarMultiplication(double scalar)
public double GetMagnitude()
public double GetAngleInDegrees()


The class is called Vector2D and holds the vector as two doubles (X and Y). There are methods to add, subtract, scale, and negate (flip sign) vectors. There are also methods to get the magnitude of the vector and the polar angle in degrees. Make sure your GetAngleInDegrees() method works for every quadrant of the Cartesian plane.

Please test each method of your class in a tester class with a main method.



2017-10-06
Harish Sharma comment

 Harish Sharma

//Hey Deep, here is the code of your problem(detailed for explanation).
//UPload any coding problem for quick solution hakershsharma@gmail.com
/* 11
2112
321123
43211234
*/

#include<iostream>
using namespace std;
int main(){

int a[30],n,p,i, j;
cout<<"enter your number: ";
cin>>n;

for( p=0; p<=n; p++){

for (i=p; i>=1; i--){

cout<<i<<" ";
}
for(j=1; j<=p; j++){
cout<<j<<" ";
}
cout<< "\n";

}

system("PAUSE");
}


2017-09-28
denis masola comment

 denis masola

help me c# code calculate loan amount balanced i need code


2017-08-04
denis masola comment

 denis masola

c# is simple language to use


2017-08-04
geeky comment

 geeky

using System;
namespace exercise1
{
class Program
{
static void Main(string[] args)
{
Console.Write(11);
Console.ReadLine();
Console.Write(2112);
Console.ReadLine();
Console.WriteLine(321123);
Console.ReadLine();
}
}
}


2017-03-29
Thangadurai G comment

 Thangadurai G

Dear Deep,
I have a answer for your question. Its work perfectly.

string strDisplayResult = null;
for(int i = 1; i <= nCount; i++)
{
strDisplayResult = i + " " + strDisplayResult + " " + i;
Console.WriteLine(strDisplayResult);
}


2016-12-15
Thangadurai G comment

 Thangadurai G

Dear Deep,
I have a answer for your question. Its work perfectly.

string strDisplayResult = null;
for(int i = 1; i <= nCount; i++)
{
strDisplayResult = i + " " + strDisplayResult + " " + i;
Console.WriteLine(strDisplayResult);
}


2016-12-15
Deep comment

 Deep

I want this type of output plz help me
1 1
2 1 1 2
3 2 1 1 2 3




2015-03-17
KrishnaMohan comment

 KrishnaMohan

check this for c# interview questions http://skillgun.com/csharp/interview-questions-and-answers


2014-07-18
CAPTCHA image




This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.