Click here to Skip to main content
15,925,133 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: string size according to user's input Pin
Maynka9-Aug-07 0:24
Maynka9-Aug-07 0:24 
AnswerRe: string size according to user's input Pin
Ranjoy Guha9-Aug-07 0:29
Ranjoy Guha9-Aug-07 0:29 
GeneralRe: string size according to user's input Pin
dona jain9-Aug-07 0:35
dona jain9-Aug-07 0:35 
GeneralRe: string size according to user's input Pin
toxcct9-Aug-07 0:36
toxcct9-Aug-07 0:36 
GeneralRe: string size according to user's input Pin
jhwurmbach9-Aug-07 0:47
jhwurmbach9-Aug-07 0:47 
GeneralRe: string size according to user's input Pin
dona jain9-Aug-07 0:58
dona jain9-Aug-07 0:58 
GeneralRe: string size according to user's input Pin
jhwurmbach9-Aug-07 1:02
jhwurmbach9-Aug-07 1:02 
QuestionRe: string size according to user's input Pin
David Crow9-Aug-07 3:21
David Crow9-Aug-07 3:21 
dona jain wrote:
Can we do it without asking the user??? Is any other Way?


Yes. Assign each character that the user types to a char variable. Dynamically grow an array and append the char to it each time. Note that this reeks of inefficiency.

Why don't you tell us what you are ultimately trying to achieve so that we may possibly offer a better solution?


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


Questionchat window to chat urgent please ? Pin
p_8-Aug-07 23:51
p_8-Aug-07 23:51 
AnswerThat would make about EUR100 per hour. Pin
jhwurmbach9-Aug-07 0:00
jhwurmbach9-Aug-07 0:00 
GeneralRe: That would make about EUR100 per hour. Pin
p_9-Aug-07 0:04
p_9-Aug-07 0:04 
Answeryes, certainly. here Pin
toxcct9-Aug-07 0:14
toxcct9-Aug-07 0:14 
GeneralRe: yes, certainly. here Pin
p_9-Aug-07 0:29
p_9-Aug-07 0:29 
GeneralRe: yes, certainly. here Pin
tyagineha9-Aug-07 0:41
tyagineha9-Aug-07 0:41 
GeneralRe: yes, certainly. here Pin
p_9-Aug-07 0:58
p_9-Aug-07 0:58 
AnswerRe: chat window to chat urgent please ? Pin
SnaKeBeD9-Aug-07 2:29
SnaKeBeD9-Aug-07 2:29 
GeneralRe: chat window to chat urgent please ? Pin
p_9-Aug-07 21:12
p_9-Aug-07 21:12 
QuestionRe: chat window to chat urgent please ? Pin
David Crow9-Aug-07 3:23
David Crow9-Aug-07 3:23 
QuestionUser breakpoint called from code at 0x77f813b1 Pin
Rajasegar8-Aug-07 23:31
Rajasegar8-Aug-07 23:31 
AnswerRe: User breakpoint called from code at 0x77f813b1 Pin
toxcct8-Aug-07 23:41
toxcct8-Aug-07 23:41 
GeneralRe: User breakpoint called from code at 0x77f813b1 Pin
Rajasegar8-Aug-07 23:43
Rajasegar8-Aug-07 23:43 
General[Message Deleted] Pin
toxcct8-Aug-07 23:47
toxcct8-Aug-07 23:47 
GeneralRe: User breakpoint called from code at 0x77f813b1 Pin
Mark Salsbery9-Aug-07 5:56
Mark Salsbery9-Aug-07 5:56 
GeneralRe: User breakpoint called from code at 0x77f813b1 Pin
Stephen Hewitt9-Aug-07 20:09
Stephen Hewitt9-Aug-07 20:09 
GeneralRe: User breakpoint called from code at 0x77f813b1 Pin
toxcct9-Aug-07 21:21
toxcct9-Aug-07 21:21 

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.