c++ edition of a command 'n control type deal.