void customer (struct data *cust1);
void menu();
void printReceipt(struct data *cust1, float &balance);
struct data{
char name[20];
int accno;
}cust, *cust1;
above is an excerpt from my completed c++ program.
my c++ coding is running well and i dont have a problem with it, but i am required to change my coding to pascal as well. so, i would like to ask for your help in this.
i already know that ^ is the symbol for pointers.
but i am confused with the & symbol.does it have an alternate symbol in pascal or not?
and the syntax is like sample^ := sample2. i dont know if it's the right one or not, still.
and also another question,
when i'm writing my procedures
for example like
void customer(struct data *cust1, float &balance)
{
cout<<"Welcome";
....others.
other code.
at the void section, how am i going to write it in pascal?
do i just write in the same way like
procedure customer (data ^cust1, &balance:float); ?
i can't really get a hold on pascal programming yet, so im stuck on the code.
i already have my own full pascal conversion from my c++ coding, but im pretty sure only the basics are correct, but when it comes to pointers and all, i sucked.
would be grateful if anyone would share their knowledge here.
if you would like to see my whole pascal or c++ code, please state your email account. thank you.