First I use this, the compiler show no error but the cmd stop working.
1 2
char * binput;
cin>>binput;
Therefore I change to this one, also from tutorial.
1 2
char binput[30];
cin>>binput;
This one work but I have to put some size of array there.
Lets say if I write char binput[2], how many character can I input?
And what is wrong with the first one? which one is the better way to use?
or either one is not good?
Thank you.