here's the code that I have, it shows me an error, but I've no clue why...
PHP Code:
#include <iostream>
#include <string>
using namespace std;
struct account() {
string name;
int acc_no;
double balance;
};
int main() {
account acc;
acc.name = "test";
acc.acc_no = 123;
acc.balance = 999999;
cout << acc.name << endl;
}
does anybody have a good explanation of what is structure? why do we want to use it? is it similar with abstract class in java?

it seems like it to me... but haven't tried to inherit it...