+ 1
Is data structures use in c++?
yes, it has array, linked list implementation and also with stack and queue
2 odpowiedzi
+ 1
You can make data structure using struct keyword. Ex.
struct users{
string username;
string password;
}
int main()
{
users James =
{
"Jmi21",
"Jamesblunt645"
}
cout << James.username;
users Jacob;
Jacob.username = "Qwer";
cin >> Jacob.password;
}
You can also create struct objects like arrays:
users New[3];
0
Yes, they are used