This is what I made (finds the maxim size of entered string). Now I have to write this program with linked list (to show,delete and show the modified list). I didn't really understand nodes and that stuff.
#include <iostream>
int main() {
int n, msize = 0;
std::cin >> n;
std::string a[n];
for(int i = 0; i < n; ++i) {
std::cin >> a[i];
if(a[i].length() > msize) msize = a[i].length();
}
for(int i = 0; i < n; ++i) {
if(a[i].length() == msize) {
}
}
}