#include "BankAccountCStruct.h" void initialise(BankAccount* b, std::string n) { b->name = n; b->balance = 0; } void deposit(BankAccount* b, float amount) { b->balance += amount; } void withdraw(BankAccount* b, float amount) { b->balance -= amount; } void transfer(BankAccount* from, BankAccount* to, float amount) { withdraw(from, amount); deposit(to, amount); }