int x; scanf("%x",&x); printf("%08x",12); 转载于:https://www.cnblogs.com/speedmancs/archive/2011/06/25/2089454.html