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

C / C++ / MFC

 
GeneralAsigning Icons to programs Pin
Flame Gitsnik28-Nov-04 14:04
Flame Gitsnik28-Nov-04 14:04 
GeneralRe: Asigning Icons to programs Pin
Nick Nougat29-Nov-04 5:25
Nick Nougat29-Nov-04 5:25 
GeneralCatching all exceptions Pin
Anonymous28-Nov-04 13:44
Anonymous28-Nov-04 13:44 
GeneralRe: Catching all exceptions Pin
Yulianto.28-Nov-04 21:32
Yulianto.28-Nov-04 21:32 
GeneralRe: Catching all exceptions Pin
Anonymous29-Nov-04 8:48
Anonymous29-Nov-04 8:48 
GeneralRe: Catching all exceptions Pin
22491728-Nov-04 22:48
22491728-Nov-04 22:48 
QuestionLarge Calendar Control? Pin
bitpusher28-Nov-04 12:34
bitpusher28-Nov-04 12:34 
GeneralThousands Sepearator Pin
BRIMID28-Nov-04 10:07
BRIMID28-Nov-04 10:07 
This is tne final step in my program and I cannot figure it out. Where do I enter the line with the slashes next to them? I changed the number to amount in the program. In the posoiton they are in I get 19 errors.Below is what was given:
string input;
int number;
int pos = input.find(',');
while (pos != -1)
{
////input.replace(pos, 1, "");
////pos = input.find(',');
}
number = atoi(input.c_str());
cout << number<< endl;



This is what I done.
int main()


{
int c;
float fee;
double total;
char a ='y', ans;
////string input;
//// int amount;

while(a =='y'|| a =='Y')
{

cout << "\nChoose from options below.\n";
cout << "\nEnter A to calculate total RWA cost.\n";
cout << "\nEnter B to calculate RWA base estimate.\n";
cout << "\n\t\tEnter your choice, then press the enter key:";
cin >> ans;
cin.ignore();


if (ans == 'A' || ans == 'a' ){



cout << "\nEnter RWA Base Estimate, then press the enter key:$";
cin >> amount;
////int pos = input.find(',');
////while (pos != -1)
////{
////input.replace(pos, 1, "");
////pos = input.find(',');
////}
////amount = atoi(input.c_str());
////cout << amount<< endl;


cout << fixed;
cout.precision(2);
fee = amount * 0.04;
cout << "4% Management Fee:$" << fee <<"\n";
total = amount + fee;
cout << fixed;
cout.precision(2);
cout << "Total:$" << total <<"\n";
GeneralRe: Thousands Sepearator Pin
PJ Arends28-Nov-04 13:28
professionalPJ Arends28-Nov-04 13:28 
QuestionHELP!!! String manipulation &quot;&quot;Calculating Atomic no of elements&quot;&quot; ???? Pin
VikramDelhi28-Nov-04 9:36
VikramDelhi28-Nov-04 9:36 
AnswerRe: HELP!!! String manipulation &quot;&quot;Calculating Atomic no of elements&quot;&quot; ???? Pin
ThatsAlok28-Nov-04 20:21
ThatsAlok28-Nov-04 20:21 
GeneralRe: HELP!!! String manipulation &quot;&quot;Calculating Atomic no of elements&quot;&quot; ???? Pin
Alex Korchemniy28-Nov-04 20:30
Alex Korchemniy28-Nov-04 20:30 
GeneralRe: HELP!!! String manipulation &quot;&quot;Calculating Atomic no of elements&quot;&quot; ???? Pin
ThatsAlok28-Nov-04 20:31
ThatsAlok28-Nov-04 20:31 
General1 Document, 3 Concurrent Views Pin
bitpusher28-Nov-04 7:38
bitpusher28-Nov-04 7:38 
GeneralRe: 1 Document, 3 Concurrent Views Pin
PJ Arends28-Nov-04 8:40
professionalPJ Arends28-Nov-04 8:40 
GeneralRe: 1 Document, 3 Concurrent Views Pin
bitpusher28-Nov-04 15:20
bitpusher28-Nov-04 15:20 
GeneralRe: 1 Document, 3 Concurrent Views Pin
PJ Arends28-Nov-04 17:08
professionalPJ Arends28-Nov-04 17:08 
GeneralRe: 1 Document, 3 Concurrent Views Pin
bitpusher29-Nov-04 5:59
bitpusher29-Nov-04 5:59 
GeneralRe: 1 Document, 3 Concurrent Views Pin
PJ Arends29-Nov-04 7:51
professionalPJ Arends29-Nov-04 7:51 
GeneralRe: 1 Document, 3 Concurrent Views Pin
Ryan Binns28-Nov-04 17:16
Ryan Binns28-Nov-04 17:16 
QuestionMSFlexgrid distribute? Pin
José Luis Sogorb28-Nov-04 7:24
José Luis Sogorb28-Nov-04 7:24 
GeneralGraph error result returned from 'AxImp.exe'. Pin
h00ps28-Nov-04 6:55
h00ps28-Nov-04 6:55 
QuestionSDK for MP3 ? Pin
lasterix28-Nov-04 6:27
lasterix28-Nov-04 6:27 
AnswerRe: SDK for MP3 ? Pin
Anonymous28-Nov-04 12:21
Anonymous28-Nov-04 12:21 
AnswerRe: SDK for MP3 ? Pin
Michael Dunn28-Nov-04 20:37
sitebuilderMichael Dunn28-Nov-04 20:37 

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.