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

C / C++ / MFC

 
AnswerRe: Extending Exchange Server Pin
led mike27-Jun-08 5:35
led mike27-Jun-08 5:35 
QuestionRemoving tab spaces using C++ source code Pin
Nandu_77b27-Jun-08 1:59
Nandu_77b27-Jun-08 1:59 
AnswerRe: Removing tab spaces using C++ source code Pin
CPallini27-Jun-08 2:10
mveCPallini27-Jun-08 2:10 
QuestionRe: Removing tab spaces using C++ source code Pin
Nandu_77b27-Jun-08 2:46
Nandu_77b27-Jun-08 2:46 
QuestionRe: Removing tab spaces using C++ source code Pin
SandipG 27-Jun-08 2:52
SandipG 27-Jun-08 2:52 
AnswerRe: Removing tab spaces using C++ source code Pin
Roger Stoltz27-Jun-08 3:09
Roger Stoltz27-Jun-08 3:09 
AnswerRe: Removing tab spaces using C++ source code Pin
Nandu_77b27-Jun-08 3:11
Nandu_77b27-Jun-08 3:11 
GeneralRe: Removing tab spaces using C++ source code Pin
SandipG 27-Jun-08 3:18
SandipG 27-Jun-08 3:18 
It should be && because you neither want space nor tab.
Consider following cases with your current condition.
1>char 'a'

if(' '!='a' this condition will evalute to true so it wont even check next contition and it wil execute if block.

2 char ' ' space

here,
if(' ' != ' ' will evaluate false so it will go and check next condition i.e '\t' != ' ' which is true so again it will execute if block.

same applies for '\t' only firt condition will be executed and after that if block will be executed.
so in every case your if block will be executed Smile | :)

I hope now it makes sense.
Can anyone confirm if this is correct?

Regards,
Sandip.

QuestionRe: Removing tab spaces using C++ source code Pin
Nandu_77b27-Jun-08 3:28
Nandu_77b27-Jun-08 3:28 
QuestionRe: Removing tab spaces using C++ source code Pin
SandipG 27-Jun-08 3:32
SandipG 27-Jun-08 3:32 
AnswerRe: Removing tab spaces using C++ source code Pin
CPallini27-Jun-08 3:26
mveCPallini27-Jun-08 3:26 
AnswerRe: Removing tab spaces using C++ source code Pin
Roger Stoltz27-Jun-08 4:42
Roger Stoltz27-Jun-08 4:42 
Questionusing transparent GIFs for toolbar buttons Pin
danginkgo27-Jun-08 1:25
danginkgo27-Jun-08 1:25 
AnswerRe: using transparent GIFs for toolbar buttons Pin
Iain Clarke, Warrior Programmer27-Jun-08 2:35
Iain Clarke, Warrior Programmer27-Jun-08 2:35 
GeneralRe: using transparent GIFs for toolbar buttons Pin
danginkgo27-Jun-08 3:59
danginkgo27-Jun-08 3:59 
QuestionGetDefID from CDialog in CView Pin
baerten27-Jun-08 1:23
baerten27-Jun-08 1:23 
AnswerRe: GetDefID from CDialog in CView Pin
Iain Clarke, Warrior Programmer27-Jun-08 2:49
Iain Clarke, Warrior Programmer27-Jun-08 2:49 
GeneralRe: GetDefID from CDialog in CView Pin
baerten27-Jun-08 3:09
baerten27-Jun-08 3:09 
Questionshowing a button with a bitmap Pin
VCProgrammer27-Jun-08 1:17
VCProgrammer27-Jun-08 1:17 
AnswerRe: showing a button with a bitmap Pin
SandipG 27-Jun-08 2:21
SandipG 27-Jun-08 2:21 
AnswerRe: showing a button with a bitmap Pin
sudhir_Kumar27-Jun-08 2:54
sudhir_Kumar27-Jun-08 2:54 
AnswerRe: showing a button with a bitmap Pin
Iain Clarke, Warrior Programmer27-Jun-08 3:01
Iain Clarke, Warrior Programmer27-Jun-08 3:01 
AnswerRe: showing a button with a bitmap Pin
David Crow27-Jun-08 4:43
David Crow27-Jun-08 4:43 
AnswerRe: showing a button with a bitmap Pin
Hamid_RT30-Jun-08 18:30
Hamid_RT30-Jun-08 18:30 
QuestionHow can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:10
Le@rner26-Jun-08 23:10 

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.