Library call Eas230

Library call Eas230 - ) << endl;...

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: ) &lt;&lt; endl; srand( (int)time(0) ); cout &lt;&lt; &quot;Seeded rand: &quot; &lt;&lt; rand( ) &lt;&lt; endl; cout &lt;&lt; endl &lt;&lt; &quot;Windows DIR command: &quot; &lt;&lt; endl; system(&quot;dir&quot;); system(&quot;pause&quot;); } // end main...
View Full Document

Ask a homework question - tutors are online