Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-01-2006, 03:29 PM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2006

Posts: 1

liljay00

Post Can some1 help me do this

i have this project that is due on Monday
pls help

it's asking to write this code in C++

"Develop a win32 application project to copy a file named “data.txt” to a file called “Newdata.txt” using C++ file handling mechanisms. Repeat the process five times copying the file 1, 5, 10, 100, 1000 bytes at a time. Find the elapsed time for each experiment. Is there any difference in elapsed time for different experiments? "
_________________________________________
clock_t start, finish;
double duration;
start = clock();
qsort( (void *)nums, (size_t)200000UL, sizeof( int ), compare );
finish = clock();
printf("\n ***** elapsed time for quick sort ****");
duration = (double)(finish - start) / CLOCKS_PER_SEC; // elapsed time in clocks/second
printf("\n clock ticks = %10.3lf\n",(double)(finish-start)); // elapsed time, clock ticks
printf("\n seconds = %10.3lf\n", duration );
liljay00 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On