its it skipping. This is the part of the code. :(
cout<<"enter a string\n";
getline(std::cin,phrase);
#include <iostream>
#include <string>
#include "phrase.h"
#include "EA.h"
#include <cstdlib>
#include <time.h>
int main()
{
phrase a;
EA b;
std::string phrase;
int populationsize;
//int percentmutation;
std::cout<<"enter a population size\n";
std::cin>>populationsize;
b.setpopulationsize(populationsize);
//std::cout<<"enter the percentage you would like to mutate\n";
//std::cin>>percentmutation;
std::cout<<"enter a string\n";
getline(std::cin,phrase);
//std::cout<<a.getphraselength();
srand ((unsigned)time(0));
b.initalizepopulation();
/*while(phrase!=bestofpopulation())
{
//mutate and crossover to create new population
}*/
return 0;
}