#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int rand(void);
int i;
int main()
{
srand(time(NULL));
for(i=0;i<10;i++)
{
cout << rand() % 10 << ' ' ;
}
cout << endl;
system("PAUSE");
return 0;
}
#include <iostream> #include <string.h> using namespace std; int main(int argc, char** argv) { for(int j=2;j<=100;j++)//j...
沒有留言:
張貼留言