Thank you both for your help!!
skorman00 and kuphryn...
I am working on the solution now thanks to your help
-shane
Type: Posts; User: shaeng
Thank you both for your help!!
skorman00 and kuphryn...
I am working on the solution now thanks to your help
-shane
Everyone,
I need some help. I have been tackling this in my head for a while now and I am sure someone out there has my answer on tap. So here goes.
I am creating a simple employee storage...
hk_mp5kpdw,
Thank you...
I will give that a shot
Boy this is really getting complicated.
It is funny, I can read books and books of programming and online msg boards, but nothing beats...
Ok here is the gist of my problem, I am trying to use arrays, linked lists, and functions all together and somehow make it all work.
The idea is to have a number of records read in from a file one...
Quzah,
thanks for the tip.
You were right, sometimes a solution that is found is not the best way to go.
A practice I need to start ingraining in my head.
thanks
-shane
I figured it out...
Needed to explicitly type the return value
- shane
typedef struct dep_db
{
char name[NAME_LENGTH + 1];
char ssn[SSN_LENGTH + 1];
struct dep_db* next;
} DEP_DB_T;
void print_links( const DEP_DB_T* ptr );
DEP_DB_T* get_links( void);
I found out that with this change, everything is okay now.
BEFORE
//Type Definitions
typedef struct tax_db
{
Quzah,
Thank you for your help and suggestions. I am still trying things out I have determined that it is my ssn variable that is causing problems.
For some reason some of the ssn variables in...
After removing the feof
I am still getting the error?
I am so confused.
I have a quick question I was using the Feof to signal the end of reading the file. How would I create a loop of "unknown passes" What I mean is that a file could have 2 lines or 50 lines. I only...
#define MAX_ARRAY_SIZE 100 // Maximum array size for taxpayers
#define FILE_PATH_SIZE 50 // Maximum path/filename
#define DPDNT_DED 1000 // Dependent deduction...
Sorry about that...
//Type Definitions
typedef struct tax_db
{
char name[NAME_LENGTH + 1];
char ssn[SSN_LENGTH + 1];
Here is the population function
void pop_array (FILE *readptr, TAX_DB_T *tax_record, int *array_cnt)
{
// Variable Declarations
int x=0; // Counter for array of structures
//...
Thank you so much for your help and code examples, I have incorporated them and everything is working great!
- shane
Hey Everyone...
I was hoping that someone could give me a little help here.
Here is my dilemma.
I have the following text file that is structured as so
25 char, space, 11 char, space, 1...
Hello Everyone,
I was wondering if someone could please help me out. I am a newbie
to the world of "C" and I have been having some difficulty with
something I have been trying to do. I am just...