help me p lz

Discussion in 'C++' started by 4nti.g0d.71, Nov 29, 2010.

  1. 4nti.g0d.71

    4nti.g0d.71 New Member

    Joined:
    Nov 29, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    hello to every one.
    could u tell me how can i measure time in c++,i mean the time of excuting.
    thank u.
     
  2. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    9
    Trophy Points:
    0
    Use

    Code:
    clock_t start, finish;
    start = clock();
    
    // your code here
    
    finish = clock();
     
  3. 4nti.g0d.71

    4nti.g0d.71 New Member

    Joined:
    Nov 29, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    thank,u....and plz explain how to read a file.txt by c++ and do sth with the text...e,g how to count using of the word "kol" in the text.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice