Hi,first i must say this is not my homework,because i am to young (14 Years old)to have programming homework.I am trying to make application for automation of the dental surgery(i am testing my skills :D),this is the program menu :
Ask for username and password and if it's correct it shows the main menu :
Add patient
Remove patient
Patient review
Modify patient
Search patient
Calculator
Exit
The program is in non english language but i think that is not important,important is the syntax.
If you compile this code you will see the errors that i also get when compiling,i tryed to fix it but i didnt find where is the error. Can you help me to find where is the error ?
Here is the code :
#include <iostream>
#include <windows.h>
#include <string>
#include <cstdlib>
using namespace std;
void Dodadi(void)
{
}
void Odzemi(void)
{
}
void Pregled(void)
{
}
void Izmeni(void)
{
}
void Baraj(void)
{
}
void Kalkulator(void)
{
}
int main()
{
string korisnik;
string lozinka;
char izbor;
system("Color 3F");
do {
do {
system("cls");
cout <<"\aKORISNIK : ";
cin >> korisnik;
cout <<endl;
}
while (korisnik != "DOKTOR123");
cout <<"\aLOZINKA : ";
cin >> lozinka;
cout <<endl;
}
while (lozinka != "LOZINKA123");
system("cls");
do {
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | D |----------------------- DODADI PACIENT -------------------------| D |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | O |----------------------- ODZEMI PACIENT -------------------------| O |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | P |----------------------- PREGLED NA PACIENTI ---------------------| P |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | I |----------------------- IZMENI PACIENT -------------------------| I |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | B |----------------------- BARAJ PACIENT --------------------------| B |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | K |----------------------- KALKULATOR -----------------------------| K |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<" | N |----------------------- IZLEZ ----------------------------------| N |"<<endl;
cout<<" |------------------------------------------------------------------------|"<<endl;
cout<<endl;
Beep (100,300);
cin >> izbor;
if ((izbor=='d')||(izbor=='D')) {
Dodadi();
}
if ((izbor=='o')||(izbor=='O')) {
Odzemi();
}
if ((izbor=='P')||(izbor=='P')) {
Pregled();
}
if ((izbor=='i')||(izbor=='I')) {
Izmeni();
}
if ((izbor=='b')||(izbor=='B')) {
Baraj();
}
if ((izbor=='k')||(izbor=='K')) {
Kalkulator();
}
}
while ((izbor!='n') && (izbor!='N'));
return 0;
}
system("PAUSE");
return 0;
}
This is the first help that i need for this c++ application,but because i am beginner i think i will need more help later with some code :D