Re: EUPHORIA Digest - 9 Jun 1998 to 10 Jun 1998 (#1998-24)
At 12:00 AM 6/11/98 -0400, Automatic digest processor wrote:
>Date: Wed, 10 Jun 1998 05:02:43 -0700
>From: Mathew Hounsell <mat.hounsell at MAILEXCITE.COM>
>Subject: CODE : Temprature Conversion
>
>function CtoK(atom celcius)
> return celcius - 273
>end function
Since 0 C = 273 K and not vice versa, this
should be celcius + 273
>function FtoK(atom farenheit)
> return ( (farenheit - 32) / 1.8 ) - 273
>end function
should be ((farenheit - 32) / 1.8) + 273
>function KtoC(atom kelvin)
> return kelvin + 273
>end function
should be kelvin - 273
>Date: Wed, 10 Jun 1998 14:29:20 +0200
>From: Einar Mogen <nord.staernes at ROLLAG.MAIL.TELIA.COM>
>Subject: Re: CODE : Temprature Conversion
>
>function KtoF(atom kelvin)
> return (kelvin + 273) * 1.8 + 32
>end function
should be (kelvin - 273) * 1.8 + 32
Why not include reamur? (= 0.8 * celcius)
Is "farenheit" or "fahrenheit" the correct spelling?
>Date: Wed, 10 Jun 1998 06:27:45 -0700
>From: Mathew Hounsell <mat.hounsell at MAILEXCITE.COM>
>Subject: (No Subject)
>
>To RDS : Please trim the 'Recent' Contributions page, or at least
>categorise it and split it into multiple pages, as it takes forever
>for Netscape (v2-v4) to format.
Use my lynxmail, get the page, save the mail, open it with Netscape.
Hopefully it works.
To: pbmserv at demo.bsdi.com
Subject: get [-t] [-uu] URL [URL ...]
-t textified, no longer HTML (but with URLs of references)
-uu uuencode (you need this when you get e.g. a zipfile)
URL http://members.aol.com/FilesEu/whatever.html (I don't know the filename)
It works with ftp:// as well.
Btw, send a message there, with the word 'help' in the subject...
>Date: Wed, 10 Jun 1998 10:51:39 -0700
>From: Rafael Skovron <ballsy007 at YAHOO.COM>
>Subject: How do I write a program to calculate the golden section?
>
>I want to use Euphoria to make a fibonacci series like:
> 1,2,3,5,8,13,24,37,51
Shouldn't that be
1 1 2 3 5 8 13 21 34 55 89 ... ?
>Date: Wed, 10 Jun 1998 17:03:49 -0500
>From: Terry Constant <constant at FLASH.NET>
>Subject: GetPrivateProfileString API call
>
>GpId = define_c_func(Kernel32, "GetPrivateProfileStringA", {C_POINTER,
>C_POINTER, C_POINTER, C_POINTER, C_DOUBLE, C_POINTER}, C_INT)
^^^^^^^^
From win32.hlp:
DWORD GetPrivateProfileString(
LPCTSTR lpAppName, // points to section name
LPCTSTR lpKeyName, // points to key name
LPCTSTR lpDefault, // points to default string
LPTSTR lpReturnedString, // points to destination buffer
DWORD nSize, // size of destination buffer
LPCTSTR lpFileName // points to initialization filename
);
I believe you should substitute C_INT (four-byte integer) for C_DOUBLE!
C_DOUBLE is an eight-byte floating point type, isn't it?
>function ReadPvtIni(sequence Section, sequence Key, sequence IniFile)
> integer
^^^^^^^
> RtnBufLen,
>
> Rtn = c_func(GpId,{ptrSection, ptrKey, ptrDefVal, ptrRtnBuf,
>RtnBufLen, ptrIniFile})
RtnBufLen is definitely a C_INT.
|
Not Categorized, Please Help
|
|