Click here to Skip to main content
16,004,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about PropertyGrid Pin
visualhint30-Jan-08 5:44
visualhint30-Jan-08 5:44 
Generalretrieving list of columns and along with their datatypes Pin
chanzeb27-Jan-08 21:33
chanzeb27-Jan-08 21:33 
GeneralRe: retrieving list of columns and along with their datatypes Pin
Gareth H27-Jan-08 22:46
Gareth H27-Jan-08 22:46 
QuestionSet DataGridView cell value if parse fails Pin
Noemi Katinka27-Jan-08 21:30
Noemi Katinka27-Jan-08 21:30 
GeneralRe: Set DataGridView cell value if parse fails Pin
Mircea Puiu27-Jan-08 21:49
Mircea Puiu27-Jan-08 21:49 
GeneralRe: Set DataGridView cell value if parse fails Pin
Noemi Katinka27-Jan-08 21:57
Noemi Katinka27-Jan-08 21:57 
GeneralRe: Set DataGridView cell value if parse fails Pin
Mircea Puiu27-Jan-08 22:24
Mircea Puiu27-Jan-08 22:24 
GeneralI need to change to Array Pin
Alex50127-Jan-08 20:19
Alex50127-Jan-08 20:19 
I have this code but I need to convert to an array. So this sum program should be in array.
Could someone help me out.


static void Main(string[] args)
{

string firstNumber, // first string entered by user
secondNumber,
thirdNumber;

// second string entered by user

int number1, // first number to add
number2,// second number to add
number3,//third number to add
sum; // sum of number1, number2, and number3

// prompt for and read first number from user as string
Console.Write( "Please enter the first integer: " );
firstNumber = Console.ReadLine();

// read second number from user as string
Console.Write( "\nPlease enter the second integer: " );
secondNumber = Console.ReadLine();

Console.Write("\nPlease enter the third integer: ");
thirdNumber = Console.ReadLine();

// convert numbers from type string to type int. Note: "int" would have worked as well.
number1 = Int32.Parse( firstNumber );
number2 = Int32.Parse( secondNumber );
number3 = Int32.Parse( thirdNumber );


// add numbers
sum = number1 + number2 + number3;

// display results
Console.WriteLine("\nThe sum is {0}.", sum);
}
}
}
AnswerRe: I need to change to Array Pin
Kyle Rozendo27-Jan-08 21:07
Kyle Rozendo27-Jan-08 21:07 
GeneralRe: I need to change to Array Pin
Gareth H27-Jan-08 22:36
Gareth H27-Jan-08 22:36 
GeneralRe: I need to change to Array Pin
Kyle Rozendo27-Jan-08 23:32
Kyle Rozendo27-Jan-08 23:32 
GeneralRe: I need to change to Array Pin
Alex50128-Jan-08 7:13
Alex50128-Jan-08 7:13 
GeneralRe: I need to change to Array Pin
PIEBALDconsult28-Jan-08 9:37
mvePIEBALDconsult28-Jan-08 9:37 
GeneralRe: I need to change to Array Pin
Alex50130-Jan-08 17:56
Alex50130-Jan-08 17:56 
GeneralRe: I need to change to Array Pin
Jeeva Jose27-Jan-08 21:12
Jeeva Jose27-Jan-08 21:12 
GeneralRe: I need to change to Array Pin
PIEBALDconsult28-Jan-08 9:35
mvePIEBALDconsult28-Jan-08 9:35 
Questioninterface implementation Pin
avvaru.murali27-Jan-08 20:12
avvaru.murali27-Jan-08 20:12 
GeneralRe: interface implementation Pin
Mircea Puiu27-Jan-08 20:53
Mircea Puiu27-Jan-08 20:53 
GeneralRegarding Firebird Pin
Praveen02927-Jan-08 20:08
Praveen02927-Jan-08 20:08 
QuestionFlickering of listview when updated Pin
Sushma K27-Jan-08 20:03
Sushma K27-Jan-08 20:03 
GeneralRe: Flickering of listview when updated Pin
Mircea Puiu27-Jan-08 20:49
Mircea Puiu27-Jan-08 20:49 
GeneralRe: Flickering of listview when updated Pin
Sushma K27-Jan-08 22:55
Sushma K27-Jan-08 22:55 
GeneralRe: Flickering of listview when updated Pin
LongRange.Shooter28-Jan-08 7:58
LongRange.Shooter28-Jan-08 7:58 
GeneralC#&Fortran mixed language problem Pin
raulisme27-Jan-08 19:54
raulisme27-Jan-08 19:54 
AnswerRe: C#&Fortran mixed language problem Pin
LongRange.Shooter28-Jan-08 9:03
LongRange.Shooter28-Jan-08 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.