A data structure is a convenient method for keeping properties of an object together.
eg.
Customer Personal Data
Customer object
Name : John Doe
Age : 32
Adddress : 1234 Main Street
City : Anywhere
State : Virginia
Zipcode : 12345
There are different ways of implementing this and they will be different based on the programming language that you use. I'll use C++ as an example. This is a Struct in its most basic form.
struct Customer
{
char[ 40] name;
int age;
char[ 40] address;
char[ 20] city;
char[ 20] state;
char[ 10] zipcode;
}
...
int main()
{
Customer[ 20] Customer_List;
Customer_List[ 0].name = "John Doe";
Customer_List[ 0].age = 32;
...
return 0;
}
By using a data structure, you can now dynamically access, add, and remove objects from a list. You can make a generalized script to add customer information.
eg.
// Function declaration
// Ideally you would create a method inside of a Class.
Customer addCustomer( void)
{
Customer NewCustomer = new Customer();
cout << "Enter customer name : ";
cin >> NewCustomer.name;
...
cout << "Enter zip code : ";
cin >> NewCustomer.zipcode;
return NewCustomer;
}
Customer_List[ 1] = addCustomer();
This is a very simplified example. One would preferably use a Class in this example where you would have method that would add and/or edit the contents of a data structure. This is where you would also control who and what has access to the information contained in a structure. It's also how you would programmatically authenticate the information entered.
There are many different types of data structures, not just ones that hold such straight-forward data. You've already mentioned linked lists which is a data structure that organizes data. The uses go on and on and on and is only limited by your imagination.