Another Great Link

Monday, February 28, 2011

http://www.softwareandfinance.com/

This website contains some great tutorial on C,C++ and C# and others languages.

Interview Corner "Forum"

Thursday, February 24, 2011

Hey friend! check this link best for learning programming
http://www.interviewcorner.com/

Mark Sheet Program in C#

////program.cs
using
System;using System.Collections.Generic;using System.Linq;using System.Text;namespace
{
ConsoleApplication3class Program{

{


static void Main(string[] args)Class1 r = new Class1();//////input///
r.Name =

r.Fathername =

r.Class =

r.CourseOneName =

r.CourseOneScore =

r.CourseTwoName =

r.CourseTowScore =

r.CourseThreeName =

r.CourseThreeScore =

r.CourseFourName =

r.CourseFourScore =

r.CourseFiveName =

r.CourseFiveScore =


sum = r.CourseFiveScore + r.CourseFourScore + r.CourseThreeScore + r.CourseTowScore + r.CourseOneScore;

perc = (sum / 500) * 100;
Console.Write("Enter your name:");Console.ReadLine();Console.Write("Enter your father name:");Console.ReadLine();Console.Write("Enter your class:");Convert.ToInt16(Console.ReadLine());Console.Write("Enter your CourseOneName:");Console.ReadLine();Console.Write("Enter your CourseOneScore:");Convert.ToInt16(Console.ReadLine());Console.Write("Enter your CourseTwoName:");Console.ReadLine();Console.Write("Enter your CourseTowScore:");Convert.ToInt16(Console.ReadLine());Console.Write("Enter your CourseThreeName:");Console.ReadLine();Console.Write("Enter your CourseThreeScore:");Convert.ToInt16(Console.ReadLine());Console.Write("Enter your CourseFourName:");Console.ReadLine();Console.Write("Enter your CourseFourScore:");Convert.ToInt16(Console.ReadLine());Console.Write("Enter your CourseFiveName:");Console.ReadLine();Console.Write("Enter your CourseFiveScore:");Convert.ToInt16(Console.ReadLine());int sum;int perc;///////////Output///////////















}
}
}



////class.cs System;using System.Collections.Generic;using System.Linq;using System.Text;namespace
{
ConsoleApplication3class Class1{













}
}
public string Name;public string Fathername;public int Class;public string CourseOneName;public int CourseOneScore;public string CourseTwoName;public int CourseTowScore;public string CourseThreeName;public int CourseThreeScore;public string CourseFourName;public int CourseFourScore;public string CourseFiveName;public int CourseFiveScore;
using
Console.WriteLine("Name:"+ r.Name);Console.WriteLine("Father Name"+ r.Fathername);Console.WriteLine("Class:"+ r.Class);Console.WriteLine("Subject:"+ r.CourseOneName);Console.WriteLine(r.CourseOneScore);Console.WriteLine("Subject:"+ r.CourseTwoName);Console.WriteLine(r.CourseTowScore);Console.WriteLine("Subject:"+ r.CourseThreeName);Console.WriteLine(r.CourseThreeScore);Console.WriteLine("Subject:"+ r.CourseFourName);Console.WriteLine(r.CourseFourScore);Console.WriteLine("Subject:"+ r.CourseFiveName);Console.WriteLine(r.CourseFiveScore);Console.WriteLine(sum);Console.WriteLine(perc);Console.ReadLine();

c# program

Saturday, February 19, 2011

class program
{
static void Main(string[] arg)
{
numberteller obj = new number teller();
}
console.Writeline(obj.tellCons());
Console.ReadLine();
}

class numberteller
{
string WhicConscalled;
public numberteller()
{
WhicConscalled= "null constuctor called";
}
public numberteller (int a)
{
WhicConscalled = "int constructor called";
}
public numberteller(double a)
{
WhicConscalled = "double constructor called";
}
public string tellcons()
{
return WhicConscalled;
}