Math in C++

This is a discussion on Math in C++ within the C++ Programming forums, part of the General Programming Boards category; Does anyone know what the code is for excluding anything besides numbers and math operators?...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    3
    Does anyone know what the code is for excluding anything besides numbers and math operators?
    Last edited by Soccerman1234; 01-18-2004 at 02:24 PM.

  2. #2
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    could you please explain more what you mean by "excluding" ?
    do you mean that you want C++ to recognize only math operators and functions?

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    I'm not sure if this is what you want, but math functions are located in:

    math.h -- old headers
    cmath -- new headers in std namespace

  4. #4
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    I'd like to give this post my vote for the Vague Post of the Week award.
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  5. #5
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    welcome to the boards Soccerman1234, and please be specific next time, didn't notice that this is your first post.

  6. #6
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Do you mean restrict input to mathematical symbols only?

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,422
    Perhaps Soccerman1234 could start a new thread and leave the code attached for comments.
    This guessing thread is closed
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Math
    By knightjp in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 04-01-2009, 05:36 PM
  2. Help with C++ Math
    By aonic in forum C++ Programming
    Replies: 4
    Last Post: 01-29-2005, 03:40 AM
  3. Basic Math Problem. Undefined Math Functions
    By gsoft in forum C Programming
    Replies: 1
    Last Post: 12-28-2004, 02:14 AM
  4. Math Header?
    By Rune Hunter in forum C++ Programming
    Replies: 26
    Last Post: 09-17-2004, 06:39 AM
  5. toughest math course
    By axon in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-28-2003, 09:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21