Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Searching the entire directory Pin
toxcct20-Apr-06 23:28
toxcct20-Apr-06 23:28 
AnswerRe: Searching the entire directory Pin
si_6920-Apr-06 23:28
si_6920-Apr-06 23:28 
QuestionProperty Sheet Tab Display problem Pin
si_6920-Apr-06 23:04
si_6920-Apr-06 23:04 
QuestionRe: Property Sheet Tab Display problem Pin
David Crow21-Apr-06 3:14
David Crow21-Apr-06 3:14 
AnswerRe: Property Sheet Tab Display problem Pin
si_6921-Apr-06 5:21
si_6921-Apr-06 5:21 
QuestionC++ and states Pin
vikramlinux20-Apr-06 22:19
vikramlinux20-Apr-06 22:19 
AnswerRe: C++ and states Pin
Cedric Moonen20-Apr-06 22:40
Cedric Moonen20-Apr-06 22:40 
GeneralRe: C++ and states Pin
vikramlinux20-Apr-06 22:52
vikramlinux20-Apr-06 22:52 
well let me explain,
Say I have a class

Class SunLight{
public:
bool state;
void set_state(bool state_value)
{
state=state_value;
}
};

Here I am have function which changes the data member value of my class. So in general I am changing the state of my class.

in C language I can do same using procedure programming but where I need to explicly declare and hold/preserve variables and manuipulate by passing those variables to function.I think this extra burden on programmer.

finally Such kind of implementation can ne implemented as shown above in C++ using classes. So can we say that for state based system my class are useful and efficient, hence the argument "C++ classes implicilty supports state based programming".



-- modified at 4:54 Friday 21st April, 2006
JokeRe: C++ and states Pin
Cedric Moonen20-Apr-06 23:02
Cedric Moonen20-Apr-06 23:02 
GeneralRe: C++ and states Pin
vikramlinux20-Apr-06 23:08
vikramlinux20-Apr-06 23:08 
GeneralRe: C++ and states Pin
Cedric Moonen20-Apr-06 23:13
Cedric Moonen20-Apr-06 23:13 
GeneralRe: C++ and states Pin
toxcct20-Apr-06 23:13
toxcct20-Apr-06 23:13 
GeneralRe: C++ and states Pin
Nick_Kisialiou22-Apr-06 0:59
Nick_Kisialiou22-Apr-06 0:59 
QuestionVB's chr() function equivalent in vc++ Pin
vanip20-Apr-06 21:46
vanip20-Apr-06 21:46 
AnswerRe: VB's chr() function equivalent in vc++ Pin
Cedric Moonen20-Apr-06 21:52
Cedric Moonen20-Apr-06 21:52 
GeneralRe: VB's chr() function equivalent in vc++ Pin
vanip20-Apr-06 21:57
vanip20-Apr-06 21:57 
AnswerRe: VB's chr() function equivalent in vc++ Pin
Naveen20-Apr-06 21:58
Naveen20-Apr-06 21:58 
GeneralRe: VB's chr() function equivalent in vc++ Pin
Cedric Moonen20-Apr-06 22:02
Cedric Moonen20-Apr-06 22:02 
GeneralRe: VB's chr() function equivalent in vc++ Pin
Naveen20-Apr-06 22:11
Naveen20-Apr-06 22:11 
GeneralRe: VB's chr() function equivalent in vc++ Pin
toxcct20-Apr-06 22:49
toxcct20-Apr-06 22:49 
GeneralRe: VB's chr() function equivalent in vc++ Pin
Cedric Moonen20-Apr-06 22:51
Cedric Moonen20-Apr-06 22:51 
Generalwkend ? Pin
toxcct20-Apr-06 23:05
toxcct20-Apr-06 23:05 
GeneralRe: wkend ? Pin
Cedric Moonen20-Apr-06 23:11
Cedric Moonen20-Apr-06 23:11 
GeneralRe: wkend ? Pin
toxcct20-Apr-06 23:18
toxcct20-Apr-06 23:18 
GeneralRe: wkend ? Pin
Cedric Moonen20-Apr-06 23:26
Cedric Moonen20-Apr-06 23:26 

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.