Hello everyone...
Anybody can help me on this question, please?
i´ve this code in my application:
/*for Card creation*/
typedef struct card
{
etc,etc
} Card;
typedef Card *PtrCrt;
/*For trans creation*/
typedef struct trans
{
etc,etc
} Trans;
typedef Trans *PtrTrans;
I need to calculate the Balance of every card and how put this verification
in one function?!
Jan 21 '07
13 1991
Jeff Mullen <41*@nls.netwri tes:
Flash Gordon wrote:
Jeff Mullen wrote, On 22/01/07 07:47:
<snip>
P.S.
http://www.nls.net/mp/413/sea.ZIP
Self-expanding arrays. (This is the code your college professor
warned you about.) :) :) :)
Extracts from the code in the archive above...
from sea.h:
[snip]
>
Thank you for looking my code over. I hope that all the people
whom you provide with unsolicited reviews will be as forthright,
and in as much a position to make changes regarding your constructive
criticism, as I am.
As a matter of internet etiquette, you should have sent me a private
email about this--not because the message might air some "dirty
laundry" of mine (I don't care about that if it improves the code),
but because, as I am rather busy, the message on a usenet list might
expire before I can get back to it. Thankfully, that was not the
case this time. You should also consider asking people whether
they would like their code reviewed when they do not explicitly
request this service. As I pointed out, I appreciate your efforts,
but you should be more sensitive to the possibility of other points
of view.
If you don't want your code publicly reviewed, I suggest not making it
publicly available. If you don't want it reviewed in this newsgroup,
don't post a link to it in this newgroup. The review was as much for
the benefit of other readers who saw the link as it was for you.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jeff Mullen said:
<snip>
Thank you for looking my code over. I hope that all the people
whom you provide with unsolicited reviews will be as forthright,
and in as much a position to make changes regarding your constructive
criticism, as I am.
As a matter of internet etiquette, you should have sent me a private
email about this
Wrong. Post here, read here.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at the above domain, - www.
On Thu, 01 Feb 2007 19:43:37 -0500, in comp.lang.c , Jeff Mullen
<41*@nls.netwro te:
>As a matter of internet etiquette, you should have sent me a private email about this--
This is usenet: write here, read here.
>because, as I am rather busy, the message on a usenet list might expire before I can get back to it.
So you mean that because /you're/ busy, the dozens of people reading
your posting have to send you individual messages. Don't you think
thats a bit absurd?
>case this time. You should also consider asking people whether they would like their code reviewed when they do not explicitly request this service.
One of the things that happens to code here in CLC is that it gets
reviewed. If you don't want your code reviewed, the fix is - don't
post it or link to it.
Of course, if you don't post it, then its awfully hard for people to
help you with any problems with it. You're likely to get lots of
replys along hte lines of "my crystal ball is broken, but I think its
line 42".
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Keith Thompson wrote, On 02/02/07 02:13:
Jeff Mullen <41*@nls.netwri tes:
>Flash Gordon wrote:
>>Jeff Mullen wrote, On 22/01/07 07:47:
<snip>
>>Extracts from the code in the archive above... from sea.h:
[snip]
>Thank you for looking my code over. I hope that all the people whom you provide with unsolicited reviews will be as forthright,
<snip>
If you don't want your code publicly reviewed, I suggest not making it
publicly available. If you don't want it reviewed in this newsgroup,
don't post a link to it in this newgroup. The review was as much for
the benefit of other readers who saw the link as it was for you.
For the record, I consider any posting of code here (or links to such
code) to be, amongst other things, a request for it to be reviewed so no
review can be considered unsolicited. This includes any code I post, of
course, and whilst I don't like having my errors pointed out I like even
less having the errors left uncorrected.
I agree with the rest of what Ben, Keith and Richard posted as well.
--
Flash Gordon This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg |
last post by:
On my report I want to have an opening balance signifying all transactions
up to the month selected
and detailed transactions for the month selected
and then a closing blance.
I'm perpelexed how to do this Anyone knows how the banks do it with
statement formatting?
suggestions, ideas welcome.
|
by: bobdydd |
last post by:
Hi Guys Can anyone help
I am trying to find a way to implement a running balance that will
re-calculate if the date order is changed, or if an earlier record is
changed like you might want to do during a bank statement reconcile.
I am using the following fields
Date|Payment|Deposit|Running_Balance (tblTransactions)
|
by: RobcPettit |
last post by:
Hi, after reading up, c# doesnt appear to use gloal variables. Alot of
post advise against them also. So Im wondering how to get around this.
Im trying to do a calculation, retain the result, do another
calculation then add the result to my retained value etc. my values:
Im backing then laying horses. So I back first, say with a return of
£20 if it wins. Then I lay the horse with an offset bet giving me an
overall return of £1. Ok, so I...
|
by: mauking |
last post by:
Hello Everyone,
Im a certified public accountant here in the Philippines. Im using microsoft access 2000 and 2003 running in a Windows XP environment.
Im having a problem of how to calculate a running balance using a query coming from two tables.
This is my problem. I have two tables (Sales and Collections), with these table I wanted to have a query to recalculate a running balance everytime there is a sales and collections...
|
by: Paul H |
last post by:
I have a transactions table and a balance table that look something
like this:
tblTransactions
TransactionID (PK Autonumber)
ClientID
TransactionDate
TransactionAmount (currency field, values must be >0)
CRDR (indicates whether the transaction is a (credit or debit)
StatementDate (Date stamp applied when the “Statement” report is run)
| |
by: dustonheaven |
last post by:
I need to calculate running balance on data containing Null, which is sorted by few columns.
As example below, Clr is sorted by Null Desc, then by date, then just by ID.
So far, I just come out with this...
SELECT tr1.Clr, tr1.ID, tr1.Date, tr1.Acc, tr1.Dbt, tr1.Cdt, (SELECT SUM(Nz(tr2.Dbt) - Nz(tr2.Cdt)) FROM tbl00 AS tr2 WHERE (tr2.Acc = tr1.Acc AND tr2.Clr <= tr1.Clr)) AS Bal
FROM tbl00 AS tr1
WHERE (((tr1.Acc)=12345) AND...
|
by: maxx233 |
last post by:
I need to figure out a way to generate a report to find customers in our DB that have unused credits on their account so we can void them out periodically - we manually assign them credits, they make purchases, but if they don't use the full balance of the credits in 24 hours we can negate the leftover (it's a promotional thing.)
There's two problems I'm wrestling with though - The table doesn't have a running balance field (not that big of...
|
by: darendaren88 |
last post by:
I have created this table:
mysql> describe acount;
+----------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+---------------+------+-----+---------+----------------+
| uniqueID | bigint(20) | NO | PRI | NULL | auto_increment |
| amount | decimal(20,0) | NO | | NULL | |
| BALANCE | decimal(20,2) | NO | |...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |