printf("Hello. This program will store your account information.\n");
getinfo(&customer);
showinfo(&customer);
printf("Thank you.");
getch();
return 0;
}
void getinfo (struct account * pst)
{
printf("Please enter your account number.\n");
gets(pst -> number);
printf("Please enter your street adress.\n");
gets(pst -> s_adress);
printf("Please enter the city and the state you live in.\n");
gets(pst -> city_state);
printf("Please enter your zip code.\n");
gets(pst -> zip_code);
printf("Please enter your balances.\n");
gets(pst -> balances);
printf("Please enter your credit limit.\n");
gets(pst -> limit);
printf("Please enter your name.\n");
gets(pst -> name);
}
PLEASE USE CODE TAGS (the <> formatting button) when posting code. http://v2.cplusplus.com/articles/jEywvCM9/
It makes it easier to read your code and it also makes it easier to respond to your post.
BTW, you say you're learning C++, but I see no C++ code.