Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
QuestionC# cystal report using mysql Pin
alam12310-Apr-13 20:40
alam12310-Apr-13 20:40 
AnswerRe: C# cystal report using mysql Pin
Abhinav S10-Apr-13 20:51
Abhinav S10-Apr-13 20:51 
Questioncalculating grades with files and arrays Pin
Magda634710-Apr-13 18:46
Magda634710-Apr-13 18:46 
AnswerRe: calculating grades with files and arrays Pin
PIEBALDconsult10-Apr-13 19:05
mvePIEBALDconsult10-Apr-13 19:05 
AnswerRe: calculating grades with files and arrays Pin
Abhinav S10-Apr-13 19:07
Abhinav S10-Apr-13 19:07 
GeneralRe: calculating grades with files and arrays Pin
Magda634710-Apr-13 19:38
Magda634710-Apr-13 19:38 
AnswerRe: calculating grades with files and arrays Pin
Abhinav S10-Apr-13 19:49
Abhinav S10-Apr-13 19:49 
AnswerRe: calculating grades with files and arrays Pin
V.11-Apr-13 19:57
professionalV.11-Apr-13 19:57 
A few tips.
1. Perhaps it's better to take the logic out of the GradeBook class that contains the main method (= entrypoint of your application.) Mostly Visual Studio will create a file Program.cs with the main method in there.
2. Always use {} even for single line statements after the control statement. (there are some who don't mind this, but I find it best practice to do so)
3. write //end ... (for, if while) after each ending curly bracket (}) that indicates what it ends.
4. in Visual studio you can highlight matching braces. put your cursor on a start bracket ({) and scroll down to the matching one. (if you did #3 you'll occasionally notice that when there are missing brackets you have an //end for written instead of the if statement you started from)
5. I think it's best you take a step back and try to translate the necessary functionality into technical solution (what classes do you need, what methods, write some pseudocode).

In your code after the main method you seem to start a new method, but it is not declared. The part between main and GetStringArray is not what it's supposed to be.

Hope this helps.

Questionsmartcard application Pin
prasannakumarV10-Apr-13 18:21
prasannakumarV10-Apr-13 18:21 
AnswerRe: smartcard application Pin
Abhinav S10-Apr-13 19:44
Abhinav S10-Apr-13 19:44 
Questionfirst row blank when export from gridview to excel with master pages included project Pin
Dhyanga10-Apr-13 10:56
Dhyanga10-Apr-13 10:56 
AnswerRe: first row blank when export from gridview to excel with master pages included project Pin
Dhyanga11-Apr-13 4:03
Dhyanga11-Apr-13 4:03 
Questionmaking a desktop lights app Pin
Johnny English10-Apr-13 4:44
Johnny English10-Apr-13 4:44 
AnswerRe: making a desktop lights app Pin
Eddy Vluggen10-Apr-13 5:06
professionalEddy Vluggen10-Apr-13 5:06 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 5:18
Johnny English10-Apr-13 5:18 
AnswerRe: making a desktop lights app Pin
Eddy Vluggen10-Apr-13 6:52
professionalEddy Vluggen10-Apr-13 6:52 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 10:30
Johnny English10-Apr-13 10:30 
GeneralRe: making a desktop lights app Pin
Eddy Vluggen10-Apr-13 11:08
professionalEddy Vluggen10-Apr-13 11:08 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 20:37
Johnny English10-Apr-13 20:37 
AnswerRe: making a desktop lights app Pin
Clifford Nelson10-Apr-13 11:04
Clifford Nelson10-Apr-13 11:04 
AnswerRe: making a desktop lights app Pin
Abhinav S10-Apr-13 19:39
Abhinav S10-Apr-13 19:39 
GeneralRe: making a desktop lights app Pin
Johnny English10-Apr-13 20:39
Johnny English10-Apr-13 20:39 
QuestionMessage Closed Pin
10-Apr-13 3:36
sisadosizdah10-Apr-13 3:36 
AnswerRe: Fuzzy Logic Pin
Dave Kreskowiak10-Apr-13 3:41
mveDave Kreskowiak10-Apr-13 3:41 
JokeRe: Fuzzy Logic Pin
fjdiewornncalwe10-Apr-13 4:28
professionalfjdiewornncalwe10-Apr-13 4:28 

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.