What shall we know? And what does mean your stupid statement that ""COUT" doesn't work for "char *"!!!"? Does it mean that the compiler issues an error? When show the error message.
EDIT:
If you use a statement like this
cout << BI1 ;
where BI1 is a character array or a pointer to char then the array itself shall contain the terminating zero character. Your dynamically allocated array pointed by BI1 has no such a character.
You can change for example function AllocFill the following way
THank you!
SORRY for my bad English.
I did it but it still doesn't do what I want.
I changed the code a little bit, I wrote it with CodeBlocks 12.11.
If you have codeblocks, can you please test it!! thanks.
I will not test your code. If you want that somebody will test your code then please pay the work.
And I do not see what you changed according to my comment.
@Ardeshir81 Perhaps it's because you are assigning all of the elements to 0 at line 46:
1 2
for (short i = 0 ; i < REsize ; i ++)
Result [i] = 0 ;
This would cause cout to stop at the 1st character.
I think you want Result [i] = '0'; instead.
Also line 59 should perhaps be: Result [REsize - 1] = '1' ;
@vlad. He did add a line in accordance with your recommendation, though not in his AllocFill() function as you showed, and where he does also need it. See line 47.
Also, that would be another report for the bullying.