| To: | realbasic-nug at lists dot realsoftware dot com |
|---|---|
| Subject: | Re: C++ Libraries for RB (A little bit off) |
| From: | "Craig A. Finseth" <fin at finseth dot com> |
| Date: | Thu, 30 Dec 2004 15:24:22 -0600 (CST) |
| Cc: | realbasic-nug at lists dot realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <1906DF0E-5A9E-11D9-AB40-000A9578809A at epicodeinteractive dot com> <8FA065D8-5A9E-11D9-8A9B-000393101B4A at mobleybros dot com> <DCB0C160-5AA2-11D9-B1D0-000A95A0549A at comcast dot net> <20041230204517 dot 4DC7F76C69 at isis dot visi dot com> <722D5284-5AA6-11D9-863A-000A9585ABA2 at mac dot com> |
...
> Probably as either:
>
> int getMyNum(int fnum, int snum)
> {
> int tnum;
> tnum = fnum + snum;
> return tnum;
> }
>
> or:
>
> int getMyNum(int fnum, int snum)
> {
> return fnum + snum;
> }
First, I apologize to everyone for forgetting the smily on my response.
Why? The first code snippet is perfectly legal. Isn't it?
Moreover, ill usage of = instead of == is a famous error in
C/C++ coding ;-)
While legal, it is not recommended.
And I can write bad code in any language, RB included.
Craig
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: String as Dictionary string, Theodore H.Smith |
|---|---|
| Next by Date: | Re: String as Dictionary string, Theodore H.Smith |
| Previous by Thread: | Re: C++ Libraries for RB (A little bit off), Stefan Pantke |
| Next by Thread: | Re: C++ Libraries for RB (A little bit off), Stuart Malin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |