I get an error every time I run the following code : along the lines of :error C2440: '=' : cannot convert from 'std::basic_istream<_Elem,_Traits>::int_type' to 'char *'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
//my code begins here
char* num;
for(int i=0; i < child.length(); i++ ) {
num = seeds.get();
int x = atoi(num);
child.gene(i,i);
cout<<child.gene(i);
seeds.get();
}
Can anybody see the problem
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
//my code begins here
char* num;
for(int i=0; i < child.length(); i++ ) {
num = seeds.get();
int x = atoi(num);
child.gene(i,i);
cout<<child.gene(i);
seeds.get();
}
Can anybody see the problem