Thread: sqrt function, easy question

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    15

    sqrt function, easy question

    how do you use call sqrt function from the math library? i can't remember!

    thanks,
    sarah

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You type "sqrt(number)". You need to #include <math.h> as well.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    15

    thanks!

    thanks,
    i am new to programming and just blanked out for a minute there...

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    58
    Good thing libraries exist. Link

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    24
    Quote Originally Posted by blurx View Post
    Good thing libraries exist. Link
    yup or u would have a problem with input and outputs if they didnt exist. i have a nice question too, which do u guys prefer: getch(); or sleep();?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM