Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
AnswerRe: listview problem Pin
Sean8925-Mar-06 16:57
Sean8925-Mar-06 16:57 
GeneralRe: listview problem Pin
Mridang Agarwalla25-Mar-06 17:38
Mridang Agarwalla25-Mar-06 17:38 
GeneralRe: listview problem Pin
cbhkenshin25-Mar-06 18:36
cbhkenshin25-Mar-06 18:36 
QuestionGIS in the C# Pin
taybalo25-Mar-06 15:53
taybalo25-Mar-06 15:53 
QuestionSaving a Toolbar State to Registry? Pin
redfish3425-Mar-06 12:27
redfish3425-Mar-06 12:27 
AnswerSome Progress, Still Need Help Pin
redfish3425-Mar-06 17:03
redfish3425-Mar-06 17:03 
QuestionExplain please... Pin
KORCARI25-Mar-06 11:26
KORCARI25-Mar-06 11:26 
AnswerRe: Explain please... Pin
Sean8925-Mar-06 11:59
Sean8925-Mar-06 11:59 
These methods are part of a class called Complex. The class seems to hold something like x and y coordinates. The first function is called the constructor for the class. This is where the x and y values are initialized based on the parameters (r, i). The second function is for adding two instances of the class together. So it takes an instance of Comnplex (called c in this case) and adds it to the current instance and returns the new object with the sum of the values.

Ex.
Complex c = new Complex(3, 4);

Complex a = new Complex(1, 2);

a = a.add(c);

Console.WriteLine(a.x + " " + a.y);


Output:
4 6

Does that help?
AnswerRe: Explain please... Pin
Guffa25-Mar-06 12:01
Guffa25-Mar-06 12:01 
QuestionMessagbox, listbox or combobox Pin
Yakup Ertas25-Mar-06 9:52
Yakup Ertas25-Mar-06 9:52 
Questioni image in listview Pin
yosba22125-Mar-06 9:48
yosba22125-Mar-06 9:48 
AnswerRe: i image in listview Pin
redfish3425-Mar-06 12:33
redfish3425-Mar-06 12:33 
AnswerRe: i image in listview Pin
Luis Alonso Ramos26-Mar-06 17:40
Luis Alonso Ramos26-Mar-06 17:40 
QuestionCollectionEditor Code Clean Up Pin
cnich2325-Mar-06 9:34
cnich2325-Mar-06 9:34 
QuestionDrawing Shapes Pin
Anindya Chatterjee25-Mar-06 9:26
Anindya Chatterjee25-Mar-06 9:26 
QuestionHow to make a searh function? Pin
AeQuitaZ25-Mar-06 8:19
AeQuitaZ25-Mar-06 8:19 
AnswerRe: How to make a searh function? Pin
Luis Alonso Ramos26-Mar-06 17:43
Luis Alonso Ramos26-Mar-06 17:43 
QuestionSupressing a MessageBox Pin
eggie525-Mar-06 7:40
eggie525-Mar-06 7:40 
AnswerRe: Supressing a MessageBox Pin
Ravi Bhavnani25-Mar-06 8:06
professionalRavi Bhavnani25-Mar-06 8:06 
GeneralRe: Supressing a MessageBox Pin
eggie525-Mar-06 8:08
eggie525-Mar-06 8:08 
AnswerRe: Supressing a MessageBox Pin
Luis Alonso Ramos25-Mar-06 8:59
Luis Alonso Ramos25-Mar-06 8:59 
GeneralRe: Supressing a MessageBox Pin
cnich2325-Mar-06 9:38
cnich2325-Mar-06 9:38 
GeneralRe: Supressing a MessageBox Pin
Luis Alonso Ramos25-Mar-06 9:41
Luis Alonso Ramos25-Mar-06 9:41 
GeneralRe: Supressing a MessageBox Pin
eggie526-Mar-06 6:48
eggie526-Mar-06 6:48 
GeneralRe: Supressing a MessageBox Pin
Luis Alonso Ramos26-Mar-06 15:13
Luis Alonso Ramos26-Mar-06 15:13 

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.