It is customerry to post code that will compile. Also this is an arduino forum but that is not arduino code.