Thread: I Need Help

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    2

    Question I Need Help

    // customerdata.h: Definition of the data struction file
    // Kyle Johnson
    // May 10th, 2002

    #ifndef CUSTOMERDATA_H
    #define CUSTOMERDATA_H

    int main ()
    {
    struct customerData
    {
    int customerNumber;
    char lastName [15];
    char firstName [15];
    double balance;
    };
    }
    #endif

    here is my init file for my final project.....i dont know what is wrong with it.....it just says in the error:
    Link Error : Undefined symbol: _main in Project: final.mcp, target: C++ Console App Debug maincrt.obj


    please help me...it would be much appreciated

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,876
    Why do you have main in a header file?

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed