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

C / C++ / MFC

 
QuestionKey codes to name Pin
Gadjuka4-Sep-05 2:52
Gadjuka4-Sep-05 2:52 
AnswerRe: Key codes to name Pin
Christian Graus4-Sep-05 10:43
protectorChristian Graus4-Sep-05 10:43 
AnswerRe: Key codes to name Pin
Anonymous4-Sep-05 14:18
Anonymous4-Sep-05 14:18 
GeneralRe: Key codes to name Pin
Gadjuka4-Sep-05 23:40
Gadjuka4-Sep-05 23:40 
Question.NET Application books Pin
hcmuns4-Sep-05 1:59
susshcmuns4-Sep-05 1:59 
QuestionHow to use CByteArray to store large data into Oracle database Pin
snprani4-Sep-05 1:21
snprani4-Sep-05 1:21 
Questionneeded help for template in template problem in vc++ Pin
Member 22477494-Sep-05 1:00
Member 22477494-Sep-05 1:00 
AnswerRe: needed help for template in template problem in vc++ Pin
Axter4-Sep-05 1:58
professionalAxter4-Sep-05 1:58 
QuestionTransferring Data from view to view Pin
Member 15334374-Sep-05 0:04
Member 15334374-Sep-05 0:04 
AnswerRe: Transferring Data from view to view Pin
LeFauve4-Sep-05 0:47
LeFauve4-Sep-05 0:47 
GeneralRe: Transferring Data from view to view Pin
Member 15334374-Sep-05 1:55
Member 15334374-Sep-05 1:55 
QuestionHow can I compile *.lib in VC++ to dll? Pin
uumeme3-Sep-05 22:15
uumeme3-Sep-05 22:15 
AnswerRe: How can I compile *.lib in VC++ to dll? Pin
Chris Losinger4-Sep-05 5:26
professionalChris Losinger4-Sep-05 5:26 
AnswerRe: How can I compile *.lib in VC++ to dll? Pin
Gary R. Wheeler4-Sep-05 5:42
Gary R. Wheeler4-Sep-05 5:42 
QuestionConnecting to Oracle database from VC++ Pin
snprani3-Sep-05 18:55
snprani3-Sep-05 18:55 
AnswerRe: Connecting to Oracle database from VC++ Pin
Neelesh K J Jain4-Sep-05 1:41
Neelesh K J Jain4-Sep-05 1:41 
Questionpls this bug Pin
neodeaths3-Sep-05 17:50
neodeaths3-Sep-05 17:50 
the code below is weirld casue when the change is mutiple by 100(0.67 * 100)
it change to 66 please heplp me solve this






#include iostream
using namespace std

int bugger;
float change=0.67;
int moeny[6][2];
int cointo[6];
float cash;


bugger = (float)change * (float)100;
cout<< "change2: "<<bugger<<endl;
while(bugger !="0" &&="" cash="" if(bugger="">= 100 && money[0][1] !=0)
{
money[0][1]--;
bugger=bugger-100;
cointo[0]++;
cout<< "bugger: "<<bugger<<endl;
}
="" else="" if(bugger="">= 50 && money[1][1] !=0)
{
money[1][1]--;
bugger=bugger-50;
cointo[1]++;
cout<< "change: "<<bugger<<endl;
}
="" else="" if(bugger="">= 20 && money[2][1] !=0)
{
money[2][1]--;
bugger=bugger-20;
cointo[2]++;
cout<< "change: "<<bugger<<endl;
}
="" else="" if(bugger="">= 10 && money[3][1] !=0)
{
money[3][1]--;
bugger=bugger-10;
cointo[3]++;
cout<< "change: "<<bugger<<endl;
}
="" else="" if(bugger="">= 5 && money[4][1] !=0)
{
money[4][1]--;
bugger=bugger-5;
cointo[4]++;
cout<< "change: "<<bugger<<endl;
}
="" else="" if(bugger="">= 1 && money[5][1] !=0)
{
money[5][1]--;
bugger=bugger-1;
cointo[5]++;
cout<< "change: "<
AnswerRe: pls this bug Pin
Branislav3-Sep-05 22:02
Branislav3-Sep-05 22:02 
GeneralRe: pls this bug Pin
neodeaths4-Sep-05 14:41
neodeaths4-Sep-05 14:41 
AnswerRe: pls this bug Pin
normanS4-Sep-05 20:09
normanS4-Sep-05 20:09 
GeneralRe: pls this bug Pin
neodeaths5-Sep-05 7:16
neodeaths5-Sep-05 7:16 
Questionswitch vs. if Pin
JKallen3-Sep-05 16:00
JKallen3-Sep-05 16:00 
AnswerRe: switch vs. if Pin
Cliff Hatch3-Sep-05 23:10
Cliff Hatch3-Sep-05 23:10 
AnswerRe: switch vs. if Pin
Tim Smith4-Sep-05 3:30
Tim Smith4-Sep-05 3:30 
AnswerRe: switch vs. if Pin
Gary R. Wheeler4-Sep-05 5:19
Gary R. Wheeler4-Sep-05 5:19 

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.