CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: gaby32

Search: Search took 0.04 seconds.

  1. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    All working now, code attached below:wave:



    //#include <stdafx>
    #include <iostream>
    #include <string>
    #include <iomanip> // setprecision() funcion
    #include <conio.h> // _getch() function...
  2. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    updated code, program still does not work, i'm pulling my hair out now ahhhhh, enough for the day.



    #include "stdafx.h"
    #include <iostream>
    #include <string>
    #include <iomanip> //...
  3. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    Added while(choice !=5); see below

    }// End of switch statement

    } // End of loop
    while(choice !=5);

    } //End of 'display_main_menu' method

    void open_account()
  4. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    #include <iostream>
    #include <string>
    #include <iomanip> // setprecision() funcion
    #include <conio.h> // _getch() function
    #include <ctime> // add system time and date
    using namespace std;
    ...
  5. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    closing bracket for problem 2 still presets, can't see any silliy mistakes

    } //End of 'display_main_menu' method
  6. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    ms v studio 2008 express edition
  7. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    thanks for that tip.

    but why is #include "stdafx.h" highlighted in red?
  8. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    update problem 3 sorted added ; at end of getch() so it becomes getch();
  9. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    update problem 4 sorted, i had wrong bracket above display_main_menu();

    void main()
    {
    display_main_menu();
    }
  10. Replies
    18
    Views
    3,930

    Re: Bank Project Problem

    hello

    Thanks i got that: balance = balance + deposit;

    but I'm still having the above 4 problems in my first post
  11. Replies
    18
    Views
    3,930

    Bank Project Problem

    // Title: Bank Account Program
    // Author:
    // Descripition: A bank account program that lets the user open an account by adding a
    // customer name then adding a balance to the account, also lets...
  12. Re: nter first and surname and then display the full name problem

    Problem fixed last line


    void pr_string()
    {
    cout << "my name is " << first_name << " " << surname << name << "\n";
    }

    final code
  13. Re: nter first and surname and then display the full name problem

    still can not get space in between the first and surname


    // Enter first and surname and then display the full name.
    #include<iostream>
    #include<string>
    #include<cctype>
    using namespace std;...
  14. Re: enter first and surname and then display the full name problem

    ok it works now only one wee minor problem, when you enter your first name then enter surname enter the full name is displayed, but no space in between first and surname, example johnsmith should be...
  15. Re: enter first and surname and then display the full name problem

    Ok made some changes when i press ctrl and f5 runs program asks for my first_name then surname then i press enter system says name isfirst_namesurname


    // Enter first and surname and then display...
  16. Re: nter first and surname and then display the full name problem

    ok i understabd a little bit, if you were to right the same program, what would your code be?
  17. nter first and surname and then display the full name problem

    Hi

    I'am new to C++, i done various basic programs in C++, but one program is giving me a major headache: enter first and surname and then display the full name:

    code below:

    // Enter first...
Results 1 to 17 of 17





Click Here to Expand Forum to Full Width

Featured