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

C / C++ / MFC

 
AnswerRe: How to remove a underscore character from my string Pin
Yusuf22-Mar-09 6:07
Yusuf22-Mar-09 6:07 
AnswerRe: How to remove a underscore character from my string Pin
Rajesh R Subramanian22-Mar-09 6:08
professionalRajesh R Subramanian22-Mar-09 6:08 
AnswerRe: How to remove a underscore character from my string Pin
CPallini22-Mar-09 7:34
mveCPallini22-Mar-09 7:34 
QuestionAn 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Endomlic22-Mar-09 5:06
Endomlic22-Mar-09 5:06 
AnswerRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Rajesh R Subramanian22-Mar-09 5:18
professionalRajesh R Subramanian22-Mar-09 5:18 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Endomlic22-Mar-09 5:23
Endomlic22-Mar-09 5:23 
AnswerRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Rajesh R Subramanian22-Mar-09 5:32
professionalRajesh R Subramanian22-Mar-09 5:32 
AnswerRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 5:21
Eytukan22-Mar-09 5:21 
Endomlic wrote:
char buff[ (int)argv[2] ];



1. You are trying to create buffer dynamically. -Without specifying a constant value for memory allocation. It requires you to use "new".

2. Use atoi to convert argv[2] to an int value. You cannot just cast like that.

Example:
char* buff = new char[atoi(argv[2])];


He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Rajesh R Subramanian22-Mar-09 5:28
professionalRajesh R Subramanian22-Mar-09 5:28 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 5:34
Eytukan22-Mar-09 5:34 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Endomlic22-Mar-09 5:36
Endomlic22-Mar-09 5:36 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 5:38
Eytukan22-Mar-09 5:38 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Endomlic22-Mar-09 5:41
Endomlic22-Mar-09 5:41 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 5:59
Eytukan22-Mar-09 5:59 
JokeRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Rajesh R Subramanian22-Mar-09 5:40
professionalRajesh R Subramanian22-Mar-09 5:40 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 5:46
Eytukan22-Mar-09 5:46 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Endomlic22-Mar-09 5:54
Endomlic22-Mar-09 5:54 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 6:02
Eytukan22-Mar-09 6:02 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
CPallini22-Mar-09 7:40
mveCPallini22-Mar-09 7:40 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
Eytukan22-Mar-09 8:27
Eytukan22-Mar-09 8:27 
GeneralRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
CPallini22-Mar-09 6:23
mveCPallini22-Mar-09 6:23 
AnswerRe: An 'If' statement before my char declaration is not allowing my program to compile......why? Pin
ky_rerun22-Mar-09 15:05
ky_rerun22-Mar-09 15:05 
QuestionConverting a lowercase letter to uppercase while keyboard input Pin
pandit8422-Mar-09 3:58
pandit8422-Mar-09 3:58 
AnswerRe: Converting a lowercase letter to uppercase while keyboard input Pin
Yusuf22-Mar-09 4:52
Yusuf22-Mar-09 4:52 
QuestionRe: Converting a lowercase letter to uppercase while keyboard input Pin
David Crow22-Mar-09 16:47
David Crow22-Mar-09 16:47 

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.