codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  function problem  koter18 at 02:20 on Monday, March 27, 2006
 

could anyone help me with this problem?

i need a function that has one i/p parameter, one o/p parameter, and one o/p parameter that is returned as a boolean.
the function is also to take the i/p parameter and make sure that it is in the bounds "-1 <= i/p parameter <= 1" if it's in bounds, the function is to use "double magicalMath(double x)" on the i/p parameter assuming the magicalMath funnction is already written below this function i need.
the o/p parameter of the function is then used to pass back the resultant value of the calculation magicalMath for the i/p parameter.
the return statement is used to return a 1 if the calculation went ok, otherwise a 0.

i know this'd be nothing to many pros out there but i'm a beginner hope i can get some help...

  Re: function problem  80Degrees at 18:44 on Thursday, March 30, 2006
 

Your' post assumes that I know what you mean by "i/p parameter" and "o/p parameter", which I don't.
How about restating your question in words that can be universally understood.

  Re: function problem  INeedHelp2 at 00:36 on Friday, March 31, 2006
 

You are probably looking at something like this:

int yourFunction (double inputA, double &outputB)
{
if ((inputA >= -1.0) && (inputA <= 1.0))
{
outputB = magicalMath(inputA);
return 1;
}
else
{
cout << "input out of range << endl;
return 0;
}
}

  Re: function problem  80Degrees at 02:37 on Friday, March 31, 2006
 

oh, so you mean data validation?

  Re: function problem  koter18 at 05:14 on Friday, March 31, 2006
 

thnx a mil :)

  Re: function problem  windows111 at 07:02 on Tuesday, August 23, 2011
 

Microsoft provides technical Toru total number of patients who develop a professional IT staff,(http://www.windows7product-key.net/), and annual meetings for the global technology, Windows 7 Product Key,product evaluation reports and on the production, interactive surgery and up to Microsoft Sheng Resources Committee, Windows XP Product Key,The release of the meeting, Chinese President Kasi Nubes, Windows Vista Product Key,president of Microsoft's board of directors of the sum of the bar leading to a soft total fine of luck and experience to provide innovative start test Nubes computando VMware's Windows Azure, Office 2010 Product Key,Microsoft is encouraging users to try on the table.
Zhang Jie for the Friends of the meeting were as Microsoft, Microsoft Product Key,NEC commodo, several investigations computo wide current Nubes sum augue HP ESRI display "+ freight customers" strategy, Office 2007 Product Key,a draft resolution, the use of computing technology must side vestibular surgery luck, Windows 7 Key,good fragrance experience.

  Re: function problem  luling at 02:31 on Wednesday, August 24, 2011
 

If it is summer, within your area, why not appear http://catsup996.tumblr.com/ warm since the environment getting just one instead
noticeable (and covetable) Chanel hand bag, purs http://refrigeration0625.multiply.com/ clutch bag. traditional Chanel can be an all- time
period producer with its new product or provider for http://alleycat-shanshan.blogspot.com/ winter outfit. The handbags from the choice have
exactly the identical luxurious treatment. They are http://wocan.weebly.com/ equally fuzzy, furry and embellished. The common
signature quilted Chanel bag is updated in chunky http://kitchenrange.i.ph/ experienced been accented with feathers or fur.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Stack, Queue, Palindrome Program...Help!!
•  online store
•  online store
•  online store
•  online store
•  online store
•  online store
•  online store
•  interesting information


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011