About a simple cloud system


Hi I have a school project
I have a list which is about; 83 usernames 83 passwords and 5 size of file for each user(some of them are 0 and it means no file)

and I should create a menu
for example in menu when user press 1 program should display usernames of the users who have no files in system

Here is my question how can I assign the passwords and the file sizes to the user

I mean user "blabla"'s password is 12345 and his files are 200mb,100mb,0mb,523mb,876mb


Last edited on
I would pull in the data from where ever you are getting it from and put it in a vector of struct with the username, password and file sizes. Then if you want to see the users with no files you look in the files part of the vector for those with 0 and then output the rest of the information for them.
Topic archived. No new replies allowed.