Click here to Skip to main content
15,909,242 members
Home / Discussions / C#
   

C#

 
QuestionNeed help with how to begin on a project. Pin
Courtesy of Illusion18-Dec-05 13:15
Courtesy of Illusion18-Dec-05 13:15 
AnswerRe: Need help with how to begin on a project. Pin
g00fyman18-Dec-05 13:36
g00fyman18-Dec-05 13:36 
QuestionNeed help with a Struct or Class (array) Pin
flicktom18-Dec-05 12:35
flicktom18-Dec-05 12:35 
AnswerRe: Need help with a Struct or Class (array) Pin
[Marc]18-Dec-05 12:56
[Marc]18-Dec-05 12:56 
GeneralRe: Need help with a Struct or Class (array) Pin
flicktom18-Dec-05 15:46
flicktom18-Dec-05 15:46 
AnswerRe: Need help with a Struct or Class (array) Pin
Guffa18-Dec-05 18:59
Guffa18-Dec-05 18:59 
GeneralRe: Need help with a Struct or Class (array) Pin
flicktom18-Dec-05 20:01
flicktom18-Dec-05 20:01 
AnswerRe: Need help with a Struct or Class (array) Pin
Guffa18-Dec-05 13:22
Guffa18-Dec-05 13:22 
You are making three errors in that loop:

:: You are creating the array inside the loop. That means that the scope of the array is the loop, so you can't use it outside the loop.

:: You are creating a new array for each iteration. That means that the previous array is discarded along with the previos item. After the loop you will have an array where every item is null except the last one.

:: You are not creating any ClassStudents objects. That means that you can't call the setKnown method as the reference that you try to use to make the call (the item in the array) is null.


---
b { font-weight: normal; }

GeneralRe: Need help with a Struct or Class (array) Pin
[Marc]18-Dec-05 14:32
[Marc]18-Dec-05 14:32 
QuestionHow to add Timer to class in C# ? Pin
Yanshof18-Dec-05 8:44
Yanshof18-Dec-05 8:44 
AnswerRe: How to add Timer to class in C# ? Pin
Andy Brummer18-Dec-05 13:13
sitebuilderAndy Brummer18-Dec-05 13:13 
QuestionNew Combobox Challenge! Pin
SpeBeeTo18-Dec-05 7:21
SpeBeeTo18-Dec-05 7:21 
QuestionHow set new system date and time in .NET Framework? Pin
Andrey_Mark18-Dec-05 4:39
Andrey_Mark18-Dec-05 4:39 
AnswerRe: How set new system date and time in .NET Framework? Pin
Colin Angus Mackay18-Dec-05 5:16
Colin Angus Mackay18-Dec-05 5:16 
GeneralRe: How set new system date and time in .NET Framework? Pin
Andrey_Mark21-Dec-05 8:11
Andrey_Mark21-Dec-05 8:11 
QuestionInteract Pin
nc3b18-Dec-05 4:23
nc3b18-Dec-05 4:23 
AnswerRe: Interact Pin
Colin Angus Mackay18-Dec-05 5:11
Colin Angus Mackay18-Dec-05 5:11 
GeneralRe: Interact Pin
nc3b19-Dec-05 7:19
nc3b19-Dec-05 7:19 
QuestionAn object reference is required for the nonstatic field, method, or property Pin
ESTAN18-Dec-05 1:48
ESTAN18-Dec-05 1:48 
AnswerRe: An object reference is required for the nonstatic field, method, or property Pin
S. Senthil Kumar18-Dec-05 2:03
S. Senthil Kumar18-Dec-05 2:03 
GeneralRe: An object reference is required for the nonstatic field, method, or property Pin
ESTAN18-Dec-05 2:06
ESTAN18-Dec-05 2:06 
GeneralRe: An object reference is required for the nonstatic field, method, or property Pin
S. Senthil Kumar18-Dec-05 2:11
S. Senthil Kumar18-Dec-05 2:11 
GeneralRe: An object reference is required for the nonstatic field, method, or property Pin
ESTAN18-Dec-05 2:14
ESTAN18-Dec-05 2:14 
GeneralRe: An object reference is required for the nonstatic field, method, or property Pin
S. Senthil Kumar18-Dec-05 2:22
S. Senthil Kumar18-Dec-05 2:22 
GeneralRe: An object reference is required for the nonstatic field, method, or property Pin
ESTAN18-Dec-05 2:48
ESTAN18-Dec-05 2:48 

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.