Click here to Skip to main content
15,898,945 members
Home / Discussions / C#
   

C#

 
GeneralRe: auto-method Pin
MasterSharp24-Oct-07 11:22
MasterSharp24-Oct-07 11:22 
GeneralRe: auto-method Pin
Christian Graus24-Oct-07 12:28
protectorChristian Graus24-Oct-07 12:28 
QuestionModular Program Pin
murtle324-Oct-07 9:38
murtle324-Oct-07 9:38 
QuestionRe: Modular Program Pin
TJoe24-Oct-07 9:48
TJoe24-Oct-07 9:48 
AnswerRe: Modular Program Pin
murtle324-Oct-07 19:06
murtle324-Oct-07 19:06 
GeneralRe: Modular Program Pin
PandemoniumPasha24-Oct-07 19:30
PandemoniumPasha24-Oct-07 19:30 
GeneralRe: Modular Program Pin
murtle324-Oct-07 19:38
murtle324-Oct-07 19:38 
AnswerRe: Modular Program Pin
PandemoniumPasha24-Oct-07 19:51
PandemoniumPasha24-Oct-07 19:51 
this still has problems.

murtle3 wrote:
static void dspData();


remove ';' after the function name.


murtle3 wrote:
static void Main();
{
getData()
calcNet()
dspData()
}


remove ';' after Main() and add ';' after all the function calls.

after all this is done you should note that you are trying to access the class variables from static method. this is not possible.
a static method can access static variables. what you should do is make the variables static (not a good way of programming), but it should help you run the program.

instead of:
murtle3 wrote:
int dep;
double grossPay, hourRate, hourWorked, deduct, netPay, depIns, tax;


try the following:
static int dep;
static double grossPay, hourRate, hourWorked, deduct, netPay, depIns, tax;


hope this helps.




regards
Smile | :)

GeneralRe: Modular Program Pin
murtle325-Oct-07 4:02
murtle325-Oct-07 4:02 
AnswerRe: Modular Program Pin
Christian Graus24-Oct-07 12:52
protectorChristian Graus24-Oct-07 12:52 
QuestionHow to remove part of the text in RichTextBox Pin
Ermak8624-Oct-07 9:05
Ermak8624-Oct-07 9:05 
AnswerRe: How to remove part of the text in RichTextBox Pin
TJoe24-Oct-07 9:27
TJoe24-Oct-07 9:27 
GeneralRe: How to remove part of the text in RichTextBox Pin
Ermak8624-Oct-07 10:02
Ermak8624-Oct-07 10:02 
AnswerRe: Open Default Defragmenter Pin
TJoe24-Oct-07 9:00
TJoe24-Oct-07 9:00 
GeneralRe: Open Default Defragmenter Pin
andyr200524-Oct-07 9:08
andyr200524-Oct-07 9:08 
Questionvariable out of scope Pin
Payrok24-Oct-07 8:07
Payrok24-Oct-07 8:07 
AnswerRe: variable out of scope Pin
TJoe24-Oct-07 8:16
TJoe24-Oct-07 8:16 
AnswerRe: variable out of scope Pin
Guffa24-Oct-07 8:59
Guffa24-Oct-07 8:59 
AnswerRe: variable out of scope Pin
Pete O'Hanlon24-Oct-07 9:05
mvePete O'Hanlon24-Oct-07 9:05 
GeneralRe: variable out of scope Pin
Payrok24-Oct-07 9:09
Payrok24-Oct-07 9:09 
GeneralRe: variable out of scope Pin
TJoe24-Oct-07 9:10
TJoe24-Oct-07 9:10 
GeneralRe: variable out of scope Pin
Pete O'Hanlon24-Oct-07 9:16
mvePete O'Hanlon24-Oct-07 9:16 
QuestionOpen Default Defragmenter Pin
andyr200524-Oct-07 7:47
andyr200524-Oct-07 7:47 
QuestionInstallation prerequisites Pin
JoZ CaVaLLo24-Oct-07 6:46
JoZ CaVaLLo24-Oct-07 6:46 
QuestionProblem in Accessing Data from Server to Clietn Pin
nayabsiddiqi24-Oct-07 6:42
nayabsiddiqi24-Oct-07 6:42 

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.