Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
QuestionWrting bytes to a file(xls) Pin
gauthee30-Aug-07 4:13
gauthee30-Aug-07 4:13 
AnswerRe: Wrting bytes to a file(xls) Pin
Justin Perez30-Aug-07 4:21
Justin Perez30-Aug-07 4:21 
GeneralRe: Wrting bytes to a file(xls) Pin
gauthee30-Aug-07 19:37
gauthee30-Aug-07 19:37 
AnswerRe: Wrting bytes to a file(xls) Pin
lmoelleb30-Aug-07 23:11
lmoelleb30-Aug-07 23:11 
QuestionMenuStrip Names Pin
topksharma198230-Aug-07 3:55
topksharma198230-Aug-07 3:55 
AnswerRe: MenuStrip Names Pin
Judah Gabriel Himango30-Aug-07 5:00
sponsorJudah Gabriel Himango30-Aug-07 5:00 
GeneralRe: MenuStrip Names Pin
topksharma198230-Aug-07 7:08
topksharma198230-Aug-07 7:08 
QuestionGeneral newbie type question Pin
shwaguy30-Aug-07 3:30
shwaguy30-Aug-07 3:30 
Since I lack a mentor I have to ask these basic structure question here. Good guidance is really appreciated. Please be advised that I am thinking of both Python and C# structure; but generalities are good too:

Classes: What should go into a class and what should stay out?
-I am converting a program to have an OOP structure the program prints out processed results to a file line by line. Should my class for this return the processing results to the main program and then use a function or another class to print the results?

-Is it acceptable to have a class return some result but then call on the same class object to process the next logical step of the process? This seems right to me since built in functions seem to do this.
eg:
Have MyClass read the first line in a file, return it
Have the main print the line
Have the main call MyClass again but have it read the next line in the object


Should I just forget about "functions" and "sub-routines" and throw everything into classes?

TIA,

The shwa guy

AnswerRe: General newbie type question Pin
Spacix One30-Aug-07 4:10
Spacix One30-Aug-07 4:10 
GeneralRe: General newbie type question Pin
martin_hughes30-Aug-07 4:25
martin_hughes30-Aug-07 4:25 
GeneralRe: General newbie type question Pin
Spacix One30-Aug-07 4:53
Spacix One30-Aug-07 4:53 
JokeRe: General newbie type question Pin
PIEBALDconsult30-Aug-07 5:44
mvePIEBALDconsult30-Aug-07 5:44 
AnswerRe: General newbie type question Pin
shwaguy30-Aug-07 9:11
shwaguy30-Aug-07 9:11 
QuestionStrange Problem at writing file Pin
error140830-Aug-07 3:29
error140830-Aug-07 3:29 
AnswerRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 3:59
Spacix One30-Aug-07 3:59 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 4:13
error140830-Aug-07 4:13 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 4:18
Spacix One30-Aug-07 4:18 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 4:19
error140830-Aug-07 4:19 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 4:55
Spacix One30-Aug-07 4:55 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 5:05
error140830-Aug-07 5:05 
GeneralRe: Strange Problem at writing file Pin
J4amieC30-Aug-07 5:09
J4amieC30-Aug-07 5:09 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 5:12
error140830-Aug-07 5:12 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 5:14
Spacix One30-Aug-07 5:14 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 5:18
error140830-Aug-07 5:18 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 5:59
Spacix One30-Aug-07 5:59 

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.