How to make a program that contains all of these: struct, nested loop, and recursive

I have tried to make it but it stuck on here. The main problem is how to make a single program using struct, nested loop, and recursive

#include <iostream>
using namespace std;

struct team{
    char club[30];
    int point;
    int goal;
};

main(){
    team m[3];
    cout<<"Learning Struct CPP \n\n";

    for (int i=0; i<1; i++){

        cout<<"INPUT CLUB'S NAME : ";
        cin>>m[i].club;

        cout<<"INPUT CLUB'S POINT : ";
        cin>>m[i].point;

        cout<<"INPUT CLUB'S GOAL : ";
        cin>>m[i].goal;

        cout<<"\n\n\n";
    }
    for (int i=0; i<1; i++){
        cout<<"DATA\n\n";

        cout<<"CLUB'S NAME : "<<m[i].club<<endl;
        cout<<"CLUB'S POINT : "<<m[i].point<<endl;
        cout<<"CLUB'S GOAL : "<<m[i].goal<<endl<<endl;
   }
   return 0;
}

Can someone help me for this?



Read more here: https://stackoverflow.com/questions/66326814/how-to-make-a-program-that-contains-all-of-these-struct-nested-loop-and-recur

Content Attribution

This content was originally published by Muhammad Syalfatur Virga at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: