What you need to do is put your code in a DO WHILE LOOP. You are almost there. A Do While Loop will repeat your option menu until the user decides to quit.
something like this;
Do
{
//
cout << "Enter a loan amount: ";
cin >> LoanAmount;//etc............ ...
} while (letter != 'Q' && letter != 'Z');...
User Profile
Collapse
-
I have tried severval IT recruitment agency's, i am getting plenty of phone calls from them so hopefully it will be any time soon.
PS: I will remember to help and not provide solutions:)...Leave a comment:
-
I must say the reason for inline functions is efficiency. For example, everytime a function is called, a series of instructions must be executed, to set up the function call and to push any arguments onto the stack. In some instances many CPU cycles are used to perform these procedures. When you expand a function inline no such overhead exists and the overall speed of your program will increase. Even when your inline function is large, the overall...Leave a comment:
-
-
Ok here is the code you require.
#include <iostream>
using namespace std;
int main()
{
int Array[5];// Declaring an array to hold 5 intergers.
int *p, num, i;
p=Array;
for(i=0; i<5;i++)
{
cout <<"Enter num :"<<(i+1)<<endl ;
cin>>num;
...Leave a comment:
-
#include <iostream>
using namespace std;
void printNum()//print 1-20 to the screen but skips 15, 16, and 17
{
int x;
for(x=1;x<=20;x ++)
{
if( (x ==15) || (x==16) || (x==17))
continue;
cout <<x<<" ";
}
return;
...Leave a comment:
-
C++ Trainee Programmer Position, How?
Hi all,
I graduated from university last year( Bsc Hons Computer Science with Mathematics). I have been attempting to land a C++ programming job for 6months now and have not succeded yet. I have had plenty of interviews but they tend to say i have a lack of commercial experience. I really enjoy coding in C++ and have even read a book on its core essentials (C++ A beginners guide by Herbert Schildt).
Can I please ask...
No activity results to display
Show More
Leave a comment: