Untitled
public text v1 · immutable x=' ';
menu();
x=getch();
system("cls");
switch(x)
{
case '1': //ADD NEW PROPERTY
{
for(int i=0;i<=99;i++)
{
if(arr[i].get_status_debug() == false)
{
//NOT SET, WE CAN USE THIS RECORD
cout << "Enter Address: ";
//cin.getline(option,100);
arr[i].set_address(option);
cout << "Enter Asking price: ";
cin >> askprice;
arr[i].set_askingprice(askprice);
arr[i].set_status_debug();
arr[i].set_selling_price(123);
//BREAK AFTER WE FINISH
break;
}
else
{
//do nothing
}
}
break;
}