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

C / C++ / MFC

 
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 
GeneralRe: switch vs. if Pin
JKallen5-Sep-05 9:58
JKallen5-Sep-05 9:58 
QuestionCObList::GetNext return Different value ??? Pin
3-Sep-05 15:34
suss3-Sep-05 15:34 
QuestionInclude &lt;fstream.h&gt; Pin
kenexcelon3-Sep-05 15:12
kenexcelon3-Sep-05 15:12 
AnswerRe: Include <fstream.h> Pin
Jack Puppy3-Sep-05 15:19
Jack Puppy3-Sep-05 15:19 
AnswerRe: Include &lt;fstream.h&gt; Pin
Axter3-Sep-05 15:43
professionalAxter3-Sep-05 15:43 
QuestionCRecordset &amp; LIMIT (sql statement) Pin
maTzeLein3-Sep-05 11:08
maTzeLein3-Sep-05 11:08 
QuestionProblem with Memory usage of a program Pin
rajeevktripathi3-Sep-05 3:59
rajeevktripathi3-Sep-05 3:59 
AnswerRe: Problem with Memory usage of a program Pin
Bob Stanneveld3-Sep-05 4:59
Bob Stanneveld3-Sep-05 4:59 
QuestionDifferentiating New file creation and Open in CreateFile Pin
ragavan3-Sep-05 3:51
ragavan3-Sep-05 3:51 

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.