Thread: win32 calculater

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User 00Sven's Avatar
    Join Date
    Feb 2006
    Posts
    127
    I feel i have done everything to it, that i can do in its current state.
    What about square root or exponents? In math.h there is a sqrt() function for getting the square root and you can use a loop to do exponents.

    Code:
    main()
    main() returns an integer.
    Code:
    int main(void)
    You should use floats or doubles to do division. Otherwise the user cant get decimals.
    Last edited by 00Sven; 07-04-2006 at 02:56 PM.
    Windows XP Home Edition - Dev-C++ 4.9.9.2
    Quote Originally Posted by "The C Programming Language" by Brian W. Kernignhan and Dennis M. Ritchie
    int fflush(FILE *stream)
    On an output stream, fflush causes any buffered but unwritten data to be written; On an input stream, the effect is undefined. It returns EOF for a write error, and zero otherwise. fflush(NULL) flushes all output streams.
    board.theprogrammingsite.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 12:46 PM
  2. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  3. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  5. Win32 API Tutorials?
    By c++_n00b in forum C++ Programming
    Replies: 9
    Last Post: 05-09-2002, 03:51 PM