Click here to Skip to main content
15,798,592 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to return a string from a user defined function to main function ? Pin
David Crow3-Jan-18 7:24
David Crow3-Jan-18 7:24 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Tarun Jha3-Jan-18 8:20
Tarun Jha3-Jan-18 8:20 
GeneralRe: How to return a string from a user defined function to main function ? Pin
David Crow3-Jan-18 8:29
David Crow3-Jan-18 8:29 
AnswerRe: How to return a string from a user defined function to main function ? Pin
Jochen Arndt3-Jan-18 13:48
professionalJochen Arndt3-Jan-18 13:48 
AnswerRe: How to return a string from a user defined function to main function ? Pin
Member 115604903-Jan-18 15:48
Member 115604903-Jan-18 15:48 
AnswerRe: How to return a string from a user defined function to main function ? Pin
leon de boer3-Jan-18 16:07
leon de boer3-Jan-18 16:07 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Tarun Jha3-Jan-18 20:29
Tarun Jha3-Jan-18 20:29 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Victor Nijegorodov4-Jan-18 0:04
Victor Nijegorodov4-Jan-18 0:04 
Tarun Jha wrote:
Quote:
if (name && namemax > 1)
.
why name is there when it is a char, and how can it be > 1?? And it works fine if i remove it.

You could rewrite it to be:
if (name != NULL && namemax > 1))

that means that name points to some space in memory and the length of this "space" (character array) is > 1.

And "it works fine if i remove it" only means that name != NULL and namemax > 1
GeneralRe: How to return a string from a user defined function to main function ? Pin
Tarun Jha4-Jan-18 5:02
Tarun Jha4-Jan-18 5:02 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Richard MacCutchan4-Jan-18 0:21
mveRichard MacCutchan4-Jan-18 0:21 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Tarun Jha4-Jan-18 5:05
Tarun Jha4-Jan-18 5:05 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Richard MacCutchan4-Jan-18 5:10
mveRichard MacCutchan4-Jan-18 5:10 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Tarun Jha5-Jan-18 1:48
Tarun Jha5-Jan-18 1:48 
GeneralRe: How to return a string from a user defined function to main function ? Pin
leon de boer4-Jan-18 15:32
leon de boer4-Jan-18 15:32 
GeneralRe: How to return a string from a user defined function to main function ? Pin
Tarun Jha5-Jan-18 1:46
Tarun Jha5-Jan-18 1:46 
QuestionTo make a function in C which does not except "\n" & EOF as input. Pin
Tarun Jha2-Jan-18 3:35
Tarun Jha2-Jan-18 3:35 
AnswerRe: To make a function in C which does not except "\n" & EOF as input. Pin
David Crow2-Jan-18 4:05
David Crow2-Jan-18 4:05 
GeneralRe: To make a function in C which does not except "\n" & EOF as input. Pin
Tarun Jha3-Jan-18 4:48
Tarun Jha3-Jan-18 4:48 
AnswerRe: To make a function in C which does not except "\n" & EOF as input. Pin
Richard MacCutchan2-Jan-18 4:36
mveRichard MacCutchan2-Jan-18 4:36 
AnswerRe: To make a function in C which does not except "\n" & EOF as input. Pin
leon de boer2-Jan-18 14:38
leon de boer2-Jan-18 14:38 
GeneralRe: To make a function in C which does not except "\n" & EOF as input. Pin
Tarun Jha3-Jan-18 4:40
Tarun Jha3-Jan-18 4:40 
GeneralRe: To make a function in C which does not except "\n" & EOF as input. Pin
David Crow3-Jan-18 4:57
David Crow3-Jan-18 4:57 
GeneralRe: To make a function in C which does not except "\n" & EOF as input. Pin
Tarun Jha3-Jan-18 5:59
Tarun Jha3-Jan-18 5:59 
QuestionRe: To make a function in C which does not except "\n" & EOF as input. Pin
David Crow3-Jan-18 6:02
David Crow3-Jan-18 6:02 
AnswerRe: To make a function in C which does not except "\n" & EOF as input. Pin
Tarun Jha3-Jan-18 6:45
Tarun Jha3-Jan-18 6:45 

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.