这是他们的例程 你看看吧Example Copy Code// crt_sprintf.c/* This program uses sprintf to format various * data and place them in the string named buffer. */ #includeint main( void ){ charbuffer[200], s[] = "computer", c = 'l'; int i = 35, j; float fp = 1.7320534f