Click here to Skip to main content
15,881,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to delete cstring from specific index Pin
«_Superman_»12-Apr-09 18:40
professional«_Superman_»12-Apr-09 18:40 
QuestionRe: how to delete cstring from specific index Pin
David Crow13-Apr-09 3:44
David Crow13-Apr-09 3:44 
QuestionToo FEW Arguments in BOOL? Pin
rbwest8611-Apr-09 21:56
rbwest8611-Apr-09 21:56 
AnswerRe: Too FEW Arguments in BOOL? Pin
David Crow13-Apr-09 3:41
David Crow13-Apr-09 3:41 
AnswerRe: Too FEW Arguments in BOOL? Pin
rbwest8614-Apr-09 1:59
rbwest8614-Apr-09 1:59 
QuestionC++ FFT subroutine Pin
mrby12311-Apr-09 20:49
mrby12311-Apr-09 20:49 
AnswerRe: C++ FFT subroutine Pin
CPallini11-Apr-09 22:40
mveCPallini11-Apr-09 22:40 
Questioncan someone explain to a newby what the top line argument call. Pin
johnathan warfield11-Apr-09 19:53
johnathan warfield11-Apr-09 19: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 20:54
professional«_Superman_»11-Apr-09 20:54 
AnswerRe: can someone explain to a newby what the top line argument call. Pin
David Crow13-Apr-09 3:36
David Crow13-Apr-09 3:36 
AnswerRe: can someone explain to a newby what the top line argument call. Pin
johnathan warfield18-Apr-09 8:19
johnathan warfield18-Apr-09 8:19 
QuestionWhat does the : x( value ) mean in this constructor ??? Pin
johnathan warfield11-Apr-09 18:25
johnathan warfield11-Apr-09 18:25 
AnswerRe: What does the : x( value ) mean in this constructor ??? Pin
«_Superman_»11-Apr-09 20:50
professional«_Superman_»11-Apr-09 20:50 
GeneralRe: What does the : x( value ) mean in this constructor ??? Pin
johnathan warfield12-Apr-09 7:07
johnathan warfield12-Apr-09 7:07 
GeneralRe: What does the : x( value ) mean in this constructor ??? Pin
«_Superman_»12-Apr-09 18:37
professional«_Superman_»12-Apr-09 18:37 
QuestionHard Disk(Recovery) Pin
kikivml11-Apr-09 9:10
kikivml11-Apr-09 9:10 
AnswerRe: Hard Disk(Recovery) Pin
Hamid_RT11-Apr-09 19:48
Hamid_RT11-Apr-09 19:48 
QuestionRegistry REG_BINARY Problem Pin
locoone11-Apr-09 8:35
locoone11-Apr-09 8:35 
AnswerRe: Registry REG_BINARY Problem Pin
Baltoro11-Apr-09 11:21
Baltoro11-Apr-09 11:21 
GeneralRe: Registry REG_BINARY Problem Pin
locoone11-Apr-09 20:09
locoone11-Apr-09 20:09 
QuestionRe: Registry REG_BINARY Problem Pin
CPallini11-Apr-09 22:46
mveCPallini11-Apr-09 22:46 
AnswerRe: Registry REG_BINARY Problem Pin
locoone12-Apr-09 2:53
locoone12-Apr-09 2:53 
GeneralRe: Registry REG_BINARY Problem Pin
CPallini12-Apr-09 9:58
mveCPallini12-Apr-09 9:58 
GeneralRe: Registry REG_BINARY Problem Pin
locoone12-Apr-09 10:46
locoone12-Apr-09 10:46 
GeneralRe: Registry REG_BINARY Problem Pin
CPallini12-Apr-09 11:17
mveCPallini12-Apr-09 11: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.