| | |
can somebody limit this program up to 3 users??(c++)
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
i wrote it in c++,so it just giving me the matrix.
#include<iostream>
using namespace std;
int main()
{
int account;
do
{
float startBalance, endBalance, allowed, credits, charges;
cout << "Enter account number: ";
cin >> account;
cout << "Enter beginning balance: ";
cin >> credits;
cout << "Enter total charges: ";
cin >> charges;
cout << "Enter total credits: ";
cin >> startBalance;
cout << "Credit limit?: ";
cin >> allowed;
endBalance = startBalance + charges - credits;
if (endBalance > allowed)
cout << "Credit limit exceeded";
}
while (account != -1);
cout<<"enter account number (-1 to end)"<<endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int account;
do
{
float startBalance, endBalance, allowed, credits, charges;
cout << "Enter account number: ";
cin >> account;
cout << "Enter beginning balance: ";
cin >> credits;
cout << "Enter total charges: ";
cin >> charges;
cout << "Enter total credits: ";
cin >> startBalance;
cout << "Credit limit?: ";
cin >> allowed;
endBalance = startBalance + charges - credits;
if (endBalance > allowed)
cout << "Credit limit exceeded";
}
while (account != -1);
cout<<"enter account number (-1 to end)"<<endl;
return 0;
}
![]() |
Similar Threads
- Dansguardian - "Unable to getgrnam(): Success" (*nix Software)
- Script needed: To 21 users, who each have access to certain dloads! Plz (PHP)
- Basic Cryptography Program Help (Python)
- Need any help possible!!! mathematics program... (Python)
- deleting a structure (C++)
- Need help with a simple python program (Python)
- C++ help (C++)
Other Threads in the C++ Forum
- Previous Thread: Program design (help)
- Next Thread: Visual C++
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





