I Need Help

This is a discussion on I Need Help within the C++ Programming forums, part of the General Programming Boards category; // customerdata.h: Definition of the data struction file // Kyle Johnson // May 10th, 2002 #ifndef CUSTOMERDATA_H #define CUSTOMERDATA_H int ...

  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,796
    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

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