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

C / C++ / MFC

 
GeneralRe: Thanks, TOXCCT but .. Pin
toxcct31-Jan-06 2:32
toxcct31-Jan-06 2:32 
GeneralRe: Thanks, TOXCCT but .. Pin
Deema Jack31-Jan-06 2:42
Deema Jack31-Jan-06 2:42 
GeneralRe: Thanks, TOXCCT but .. Pin
toxcct31-Jan-06 3:13
toxcct31-Jan-06 3:13 
QuestionRe: Thanks, TOXCCT but .. Pin
Deema Jack31-Jan-06 8:07
Deema Jack31-Jan-06 8:07 
AnswerRe: the best select statement .. Pin
Maximilien30-Jan-06 6:02
Maximilien30-Jan-06 6:02 
QuestionRe: the best select statement .. Pin
Deema Jack31-Jan-06 2:28
Deema Jack31-Jan-06 2:28 
AnswerRe: the best select statement .. Pin
Prakash Nadar31-Jan-06 4:45
Prakash Nadar31-Jan-06 4:45 
QuestionRe: the best select statement .. Pin
Deema Jack31-Jan-06 8:05
Deema Jack31-Jan-06 8:05 
I want the following code(it's a part from a long one) search or check a required qau., is it avaliable in the array,I did it by the if statement ,and it runs,but I want it to be done by another select or conditional one,for example by(switch or )(if /else )or another one.
Please answer it, because I did my try with( switch/case) but I failed to run it .


cout<<"\nEnter the Required_Qauntity:\n";<br />
cin>>Required_Quantity;<br />
if(Required_Quantity > x[index][1] || Required_Quantity <=0) <br />
{cout<<"\nThe avaliable Quantity in the store is "<<x[index][1]<<" part(s). Please ,enter a suitable quantity.\n";<br />
Goto f;<br />
}<br />
else <br />
cout<<"\nThe Required_Quantity is available in the store.\n"; 

AnswerRe: the best select statement .. Pin
Prakash Nadar30-Jan-06 6:04
Prakash Nadar30-Jan-06 6:04 
GeneralRe: thanks but .. Pin
Deema Jack31-Jan-06 2:30
Deema Jack31-Jan-06 2:30 
AnswerThe Best Conditional statement .. Pin
Eytukan30-Jan-06 6:48
Eytukan30-Jan-06 6:48 
GeneralRe: The Best Conditional statement .. Pin
toxcct30-Jan-06 6:55
toxcct30-Jan-06 6:55 
GeneralRe: The Best Conditional statement .. Pin
Eytukan30-Jan-06 7:14
Eytukan30-Jan-06 7:14 
GeneralRe: The Best Conditional statement .. Pin
BadKarma30-Jan-06 9:50
BadKarma30-Jan-06 9:50 
GeneralRe: The Best Conditional statement .. Pin
Eytukan30-Jan-06 20:16
Eytukan30-Jan-06 20:16 
QuestionUsing a non static member in a overloaded static member function Pin
arunaas30-Jan-06 5:16
arunaas30-Jan-06 5:16 
AnswerRe: Using a non static member in a overloaded static member function Pin
Michael Dunn30-Jan-06 7:26
sitebuilderMichael Dunn30-Jan-06 7:26 
QuestionRe: Using a non static member in a overloaded static member function Pin
arunaas30-Jan-06 14:15
arunaas30-Jan-06 14:15 
Questionwhich function can covert a hex string to value? Pin
includeh1030-Jan-06 4:50
includeh1030-Jan-06 4:50 
AnswerRe: which function can covert a hex string to value? Pin
David Crow30-Jan-06 4:53
David Crow30-Jan-06 4:53 
AnswerRe: which function can covert a hex string to value? Pin
Dominik Reichl30-Jan-06 4:56
Dominik Reichl30-Jan-06 4:56 
QuestionThe swapping section in a puzzle game Pin
eivanlo30-Jan-06 4:38
eivanlo30-Jan-06 4:38 
AnswerRe: The swapping section in a puzzle game Pin
Rage30-Jan-06 4:54
professionalRage30-Jan-06 4:54 
Questionmanaging serial port interrupt Pin
misturas30-Jan-06 4:32
misturas30-Jan-06 4:32 
AnswerRe: managing serial port interrupt Pin
Rage30-Jan-06 4:59
professionalRage30-Jan-06 4:59 

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.