Search:

Type: Posts; User: jeemang

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    798

    Pointer cast question

    I'm a C beginner (come from a Java and Ruby background) and I'm trying to learn C by completing some tutorials.

    One tutorial gives some sample code to complete and I'm struggling with one line in...
  2. That would definitely be a smarter way to do...

    That would definitely be a smarter way to do things.

    However, this is basically just an example program I'm using to learn how to do things like pass pointer arrays into functions and the like...
  3. Thanks, CommonTater and anduril, for the advice....

    Thanks, CommonTater and anduril, for the advice.

    I finally got the first chunk of my code working (I won't say how long it took me as it's embarrassing).

    Basically, the big mistake I was...
  4. Re: header file: thanks for the heads up. One...

    Re: header file: thanks for the heads up. One question: if I toss the active code into employee.c, how do I reference employee.c from employee.h? Do I just put an #include "employee.c" at the bottom...
  5. The init_database function (apologies, as I...

    The init_database function (apologies, as I mentioned I come from a Java/Ruby background) is defined in the employee.h header file, which is copied in my initial post above.
  6. Hi CommonTater; Thanks for the reply. As I...

    Hi CommonTater;

    Thanks for the reply.

    As I understand it, the intention of the second typedef statement is to create a Database type that is 10-element array of pointers to the Employee types....
  7. beginner question about -- you guessed it -- arrays and pointers

    Hi all;

    I've been searching archives and playing around with tutorial code for a few hours now so I thought I'd give this forum a try.

    My problem is that I'm having a really hard time figuring...
Results 1 to 7 of 7