Click here to Skip to main content
15,569,644 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to delete cstring from specific index Pin
«_Superman_»12-Apr-09 19:40
professional«_Superman_»12-Apr-09 19:40 
QuestionRe: how to delete cstring from specific index Pin
David Crow13-Apr-09 4:44
David Crow13-Apr-09 4:44 
QuestionToo FEW Arguments in BOOL? Pin
rbwest8611-Apr-09 22:56
rbwest8611-Apr-09 22:56 
AnswerRe: Too FEW Arguments in BOOL? Pin
David Crow13-Apr-09 4:41
David Crow13-Apr-09 4:41 
AnswerRe: Too FEW Arguments in BOOL? Pin
rbwest8614-Apr-09 2:59
rbwest8614-Apr-09 2:59 
QuestionC++ FFT subroutine Pin
mrby12311-Apr-09 21:49
mrby12311-Apr-09 21:49 
AnswerRe: C++ FFT subroutine Pin
CPallini11-Apr-09 23:40
mveCPallini11-Apr-09 23:40 
Questioncan someone explain to a newby what the top line argument call. Pin
johnathan warfield11-Apr-09 20:53
johnathan warfield11-Apr-09 20:53 
i'm having trouble understaning this function call in the constructor.
( const char *const first, const char * const last )
i see we have a constant then a char type then a pointer to first thats declared a char constant. But isn't that declaring first a constant and a char twice. I'm reading Dietel 5th edition maybe i misread something can someone please explain this argument in the function call please to a newby.

Employee::Employee( const char * const first, const char * const last )
26 {
27 firstName = new char[ strlen( first ) + 1 ];
28 strcpy( firstName, first );
29
30 lastName = new char[ strlen( last ) + 1 ];
31 strcpy( lastName, last );
32
33 count++; // increment static count of employees
34
35 cout << "Employee constructor for " << firstName
36 << ' ' << lastName << " called." << endl;
37 } // end Employee constructor
AnswerRe: can someone explain to a newby what the top line argument call. Pin
«_Superman_»11-Apr-09 21:54
professional«_Superman_»11-Apr-09 21:54 
AnswerRe: can someone explain to a newby what the top line argument call. Pin
David Crow13-Apr-09 4:36
David Crow13-Apr-09 4:36 
AnswerRe: can someone explain to a newby what the top line argument call. Pin
johnathan warfield18-Apr-09 9:19
johnathan warfield18-Apr-09 9:19 
QuestionWhat does the : x( value ) mean in this constructor ??? Pin
johnathan warfield11-Apr-09 19:25
johnathan warfield11-Apr-09 19:25 
AnswerRe: What does the : x( value ) mean in this constructor ??? Pin
«_Superman_»11-Apr-09 21:50
professional«_Superman_»11-Apr-09 21:50 
GeneralRe: What does the : x( value ) mean in this constructor ??? Pin
johnathan warfield12-Apr-09 8:07
johnathan warfield12-Apr-09 8:07 
GeneralRe: What does the : x( value ) mean in this constructor ??? Pin
«_Superman_»12-Apr-09 19:37
professional«_Superman_»12-Apr-09 19:37 
QuestionHard Disk(Recovery) Pin
kikivml11-Apr-09 10:10
kikivml11-Apr-09 10:10 
AnswerRe: Hard Disk(Recovery) Pin
Hamid_RT11-Apr-09 20:48
Hamid_RT11-Apr-09 20:48 
QuestionRegistry REG_BINARY Problem Pin
locoone11-Apr-09 9:35
locoone11-Apr-09 9:35 
AnswerRe: Registry REG_BINARY Problem Pin
Baltoro11-Apr-09 12:21
Baltoro11-Apr-09 12:21 
GeneralRe: Registry REG_BINARY Problem Pin
locoone11-Apr-09 21:09
locoone11-Apr-09 21:09 
QuestionRe: Registry REG_BINARY Problem Pin
CPallini11-Apr-09 23:46
mveCPallini11-Apr-09 23:46 
AnswerRe: Registry REG_BINARY Problem Pin
locoone12-Apr-09 3:53
locoone12-Apr-09 3:53 
GeneralRe: Registry REG_BINARY Problem Pin
CPallini12-Apr-09 10:58
mveCPallini12-Apr-09 10:58 
GeneralRe: Registry REG_BINARY Problem Pin
locoone12-Apr-09 11:46
locoone12-Apr-09 11:46 
GeneralRe: Registry REG_BINARY Problem Pin
CPallini12-Apr-09 12:17
mveCPallini12-Apr-09 12:17 

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.