need help!!

This is a discussion on need help!! within the C++ Programming forums, part of the General Programming Boards category; insert Code: people need help. I am a newbie with C++ and I need some help with this. IF IT ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Location
    korea
    Posts
    5

    need help!!

    insert
    Code:
    people need help. I am a newbie with C++ and I need some help with this. IF IT IS  POSSIBLE PLEASE DRAW IT. PLZPLZPLZPLZ
    
    typedef struct course_type
    {
    	char dept[4];
    	char course_name[20];
    	char prof_ID[7];
    	int credit;
    };
    
    
    typedef struct student
    {
    	int st_num;
    	struct name_type
    	{	char last[20];
    		char midinit;
    		char first[20];
    	}
    	struct address_type
    	{	char street[25];
    		char city[10];
    		char state[2];
    		int zip;
    	}address;
    	int	no_of_courses;
    	course_type course[10];
    }

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,441
    What help do you need?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    yah structure inside structure is possible called i think container structures and about the syntax it will give compile time error

  4. #4
    Registered User
    Join Date
    Nov 2009
    Location
    korea
    Posts
    5
    i need to make a report on it. need to explain everything and draw table

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    i think what you want is that student table with st_num as its member kind of just do it buddy

    structure name will be container and the elements of it will be its rows i think

  6. #6
    Professional Chef leeor_net's Avatar
    Join Date
    Apr 2004
    Location
    Charles Town, WV
    Posts
    147
    Quote Originally Posted by midasmidas View Post
    i need to make a report on it. need to explain everything and draw table
    Sounds like you want us to do your homework for you. If that's the case, you're asking the wrong people.
    Last edited by leeor_net; 11-10-2009 at 03:39 PM.
    - Leeor

Popular pages Recent additions subscribe to a feed

Tags for this Thread


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