skip(), pause()
(高顯忠, sjgau4311@gmail.com, 2011-04-28 16:14)
1樓
#include <cstdlib>
#include <iostream>
using namespace std;
// ------------------------------------
int main(int argc, char *argv[])
{
int i;
skip(-3);
pause();
skip(33);
pause();
skip(3);
for (i=1;i<=20;i++) {
skip(i);
printf("i= %5d, i*i= %5d, sqrt(i)= %10.6lf \n", i, i*i, sqrt(i));
pause();
}
pause();
return EXIT_SUCCESS;
}// end of main()