Very new to programming and l can't find any basic explanation online or code that will work well for what l need. I have a fairly long piece of programme (approx 300 lines) it all works. This is the structure to give an idea:
#include <iostream>   
#include <stdlib.h>    
#include <time.h>      
#include <vector>      
#include <algorithm>   
using namespace std;   
int main() 
{
      //code....
    { 
         //code... etc...
    }
}
I want to ask the user to repeat the programme. If enters y, then repeat int main up to the point of asking the same repeat question again. Else to cout<< "e.g. Thank you, goodbye";
 
     
     
    