is this program i wrote so far going to store all the data entered by the user correctly?, i dont really understand structures completely yet. i think my cin statements need to store them differently to reference the structure.
my code:
#include <iostream>
int main()
{
struct students
{
char name[10]; //name of student
int SSN; // social security number
char cardtype[10];
float balance;
}
for ( i = 0; i <= 10; i++ )
{
std::cout << "Enter student name\n";
std::cin >> name[ i ];
std::cout << "Enter social security number\n";
std::cin >> SSN;
std::cout << "Enter card type\n";
std::cin >> cardtype[ i ];
}