#include<iostream>
#include<string>
#include<sstream>
usingnamespace std;
#define N_records 10
struct stud_info{
int no;
string name;
}; // remember the ;
int main()
{
stud_info student[N_records]; // declares an array (called student) that can hold N_records elements of type stud_info
for (int X = 0; X < N_records; X++) // I started X at 0 because the first element in any array is arrayName[0]. I changed the <= in the continuation condition to < because the last element (in an array of 10) is student[9] (because the first is student[0]).
{
cout<<"please inset the student number\n";
getline (cin,student[X].no);
cout<<"please insert the student name\n";
getline (cin,student[X].name);
} // end of for-loop
// the code here should read values of name and no from standard input (cin) and assign them to student[0] through student[9]. If you want to store the data in a file or something, more code is required for that.
return 0;
}