Mail Archives: djgpp/1998/08/06/20:35:18
Chia wrote:
>
> I have a class JG_MENUOPT.
>
> The only constructor is:
>
> JG_MENUOPT( char *n, void (*cb)(void) )
> {
> allegro_exit();
> cout << n;
> exit(0);
> }
>
> When I send the string, "&Show Barquie", it prints out, "Show Barquie"
> without the &.
>
> JG_MENUOPT *TheOpt = new JG_MENUOPT( "&Show Barquie", ShowBarquieProc );
>
> No other strings seem to suffer from this phenomenon. When I made a simple
> program to test it, it printed the & like it should.
That is strange. Can you post a complete, compilable piece of code that
demonstrates it?
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -