gener1.cpp
gener1.cpp
#include ‹stl.h›
#include ‹iostream.h›
#include ‹stdlib.h›
int main() {
int numbers[10];
generate(numbers, numbers + 10, rand);
for (int i = 0; i ‹ 10; i++) cout ‹‹ numbers[i] ‹‹ ;
cout ‹‹ endl;
return 0;
}
gener1.cpp
#include ‹stl.h›
#include ‹iostream.h›
#include ‹stdlib.h›
int main() {
int numbers[10];
generate(numbers, numbers + 10, rand);
for (int i = 0; i ‹ 10; i++) cout ‹‹ numbers[i] ‹‹ ;
cout ‹‹ endl;
return 0;
}