Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Exception for typing int instead of real
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 27th February 04:40
steven stevenson
External User
 
Posts: 1
Default Exception for typing int instead of real



[1 <text/plain; iso-8859-1 (quoted-printable)>]
Hi

I want to define a function that works for both int and real value. Is it possible? If so how?
How can I ask the function to perform one part of a program when the input is of type int, and to run another part when the input is of type real?

If the user input an int instead of a real number then, is it possible to catch an exception for that?

Thanks in advanced
Steve
[2 <text/html; iso-8859-1 (quoted-printable)>]
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666