I want the user to make 5 accounts with 5 different passwords and for them to get stored in an array and then prints out all the accounts and passwords registered. However I do that by this code and it only prints out the number of the 4th account 5 times. What am i doing wrong.
your array should only have 10 elements.
also make sure that you enter purely numerical values for both the account name and password as you delclare:
int account;
int password;
here is the code. your code only needed minor corrections.
#include<iostream>
#include<iomanip>
int main()
{
const int row = 5;
const int column=2;