C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-25-2008, 04:49 PM   #46
Registered User
 
Join Date: May 2008
Posts: 70
but as you can see from the previous post containing the whole program the fill_account is actually fillinng the file+ the account_write functions so what should i do to delete this program (read and write works but not delete)
overlord21 is offline   Reply With Quote
Old 09-25-2008, 04:53 PM   #47
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
Quote:
Originally Posted by overlord21 View Post
but as you can see from the previous post containing the whole program the fill_account is actually fillinng the file+ the account_write functions so what should i do to delete this program (read and write works but not delete)
I would recommend not deleting the file with all your records in it before you try to read them in.

All the w modes immediately delete the file, if it already exists. So don't use a w mode.
tabstop is offline   Reply With Quote
Old 09-25-2008, 04:58 PM   #48
Registered User
 
Join Date: May 2008
Posts: 70
only for the delete? i just use a "w" or "r" operator?
overlord21 is offline   Reply With Quote
Old 09-25-2008, 05:01 PM   #49
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
Quote:
Originally Posted by overlord21 View Post
only for the delete? i just use a "w" or "r" operator?
Since the only thing you do in this function is read, you would use "rb".
tabstop is offline   Reply With Quote
Old 09-25-2008, 05:22 PM   #50
Registered User
 
Join Date: May 2008
Posts: 70
well i noticed that this function empty all the file but what i would like to is to is deleting one chosen account by making modification in t[i] and then copy the changes to the file(fwrite maybe)?
overlord21 is offline   Reply With Quote
Old 09-26-2008, 11:56 AM   #51
Registered User
 
Join Date: May 2008
Posts: 70
please can anyone provide a little program using stacks (push & pop)? and another for postfix notation
overlord21 is offline   Reply With Quote
Old 09-26-2008, 11:58 AM   #52
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
Quote:
Originally Posted by overlord21 View Post
please can anyone provide a little program using stacks (push & pop)? and another for postfix notation
Is there a good reason why we should? Why do you expect we can do any better than the hundreds that are already on the web?

And why tack this on to the end of this thread?
tabstop is offline   Reply With Quote
Old 09-26-2008, 01:45 PM   #53
Registered User
 
Join Date: May 2008
Posts: 70
i'm so sorry i am just beginner and thought " well you can learn from more expert people if you can interact with them" but well your answer shows the opposite
overlord21 is offline   Reply With Quote
Old 09-26-2008, 01:47 PM   #54
Registered User
 
Join Date: May 2008
Posts: 70
just thought writing this last post would attract someone to respond instead of creating a new thread
overlord21 is offline   Reply With Quote
Old 09-26-2008, 01:52 PM   #55
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
If you know the people on this forum who are like me well (which you clearly do not) you would know me, matsp, and tabstop make mad dashes to be the first to reply to an unanswered question. Which is why the three of us so frequently give such highly redundant answers. By changing the topic around all you do is disrupt the flow of answers to the original poster's question. Which is not very fair to the original poster, now is it?
master5001 is offline   Reply With Quote
Old 09-26-2008, 02:28 PM   #56
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
Quote:
Originally Posted by overlord21 View Post
just thought writing this last post would attract someone to respond instead of creating a new thread
Why would you think someone would say "oh here's post 47 about sequential files, maybe it will be about postfix notation" instead of "oh here's post 47 about sequential files, isn't that topic done already?"

And as you could have learned from this very thread, the more work you show going into the question, the more work we show going into the answer.

So if you want to know something about postfix notation, or stacks, then create a new thread -- WITH actual questions, not "why won't anybody give me teh cod3z for a stack?"
tabstop is offline   Reply With Quote
Old 09-26-2008, 02:39 PM   #57
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
Heh... its as if all the hostile remarks I fought off saying flowed through the internet into tabstop's finger tips and made his remarks extra cutting. I like it
master5001 is offline   Reply With Quote
Old 09-26-2008, 02:43 PM   #58
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
Quote:
Originally Posted by master5001 View Post
Heh... its as if all the hostile remarks I fought off saying flowed through the internet into tabstop's finger tips and made his remarks extra cutting. I like it
I can take on either side of good cop, bad cop; but bad cop is more fun
tabstop is offline   Reply With Quote
Reply

Tags
files, program impleùmentation, random, sequential

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we have vector of vector? ketu1 C++ Programming 24 01-03-2008 05:02 AM
struct question caduardo21 Windows Programming 5 01-31-2005 04:49 PM
Simple File encryption caroundw5h C Programming 2 10-13-2004 10:51 PM
what does this mean to you? pkananen C++ Programming 8 02-04-2002 03:58 PM
Outputting String arrays in windows Xterria Game Programming 11 11-13-2001 07:35 PM


All times are GMT -6. The time now is 10:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22