home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!uflorida!mailer.cc.fsu.edu!fsu1.cc.fsu.edu!c3460344
- From: c3460344@fsu1.cc.fsu.edu (C3460344)
- Newsgroups: comp.lang.c
- Subject: Would this be the place to...
- Message-ID: <1992Aug8.052246.14904@mailer.cc.fsu.edu>
- Date: 15 Aug 92 12:22:55 GMT
- Sender: Jeff Blaine
- Reply-To: c3460344@fsu1.cc.fsu.edu
- Followup-To: ^^^^
- Organization: Florida State University
- Lines: 21
- News-Software: VAX/VMS VNEWS 1.3-4
-
- If I have a piece of code that I am having trouble finding a problem in,
- would I post it here? It is about 50 or so lines...
-
- I am getting garbage in the trans_type element of this structure when I
- print it to screen:
-
- typedef struct {
- char date[9];
- char cknum[4];
- char comment[21];
- char trans_type[4];
- float amount;
- } entry;
-
- So, I am assuming that I am lacking some variable initialization.
- Please bare with me, I am new to C. How would I go about initializing an
- array full of these structures (just the trans_type and amount parts, the
- rest is fine)??
-
- -=Jeff Blaine
- c3460344@fsu1.cc.fsu.edu
-