Library call Eas230

Library call Eas230 - << endl srand(int)time(0...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include <string > #include <cstdlib> #include <ctime> using namespace std; void main( ) { string testPhrase = "Test some libraries"; cout << testPhrase << endl; cout << "# of seconds since Jan 1, 1970 " << time( 0 ) << endl; cout << "Unseeded rand: (is it 11035027590?) " << rand(
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ) << endl; srand( (int)time(0) ); cout << "Seeded rand: " << rand( ) << endl; cout << endl << "Windows DIR command: " << endl; system("dir"); system("pause"); } // end main...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online