User Profile

Collapse

Profile Sidebar

Collapse
HUSTer
HUSTer
Last Activity: Sep 7 '11, 10:37 AM
Joined: Aug 17 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • see the code below:
    Code:
    #include <time.h>
    #include <iostream>
    #define TEST_TIMES 1000000000
    
    using namespace std;
    
    int main()
    {
    	unsigned char a = 'c';
    	unsigned char b[1] = {'c'};
    	unsigned char c[1][1][1] = {'c'};;
    	unsigned char temp;
    	clock_t ct = clock();
    	for(int i = 0;i < TEST_TIMES;++i)
    		temp = a;
    	cout<<clock() - ct<<endl;
    ...
    See more | Go to post
    Last edited by HUSTer; Aug 29 '11, 03:24 AM. Reason: there is something wrong with my answer!

    Leave a comment:


  • HUSTer
    replied to School vs. Experience
    both of them is very impotant~~
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...