Hey guys i am in trouble about BST Tree exercise.. i need to create an array that can take number of elements user want and the user has to enter integers but the program need to get this number in one line ... Here is code that i already wrote ;
#include<iostream>
#include<string>
using namespace std;
int main(){
int size,snumb;
cin>>size;
string *myArray = new string[size];
for(int i=1;i<=size;i++){
getline (cin,myArray[i]);
}
cin>>snumb;
system("pause");
}