anyone tell me whats wrong? is it about using vector with structure?
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
struct stu{
string name;
int age;
};
int no=0;
char other;
vector<stu> school;
do {
cout<<"enter the name ";
cin>>school[no].name;
cout<<"enter age";
cin>>school[no].age;
cout<<"another?";
cin>>other;
no+=1; }
while (other=='y');
}