Thread: temp struct....

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    14

    temp struct....

    hi,

    I have a struct

    struct Person{
    char name[20];
    char firsname[20];
    }Names[7];

    and I have to fill it with data from a files and then show the content....

    how do i do??

    do I have to declare a temp struct or something like that???
    and I have to put it in different fonction, like,

    main(){

    readdata();
    showdata();

    readdata(){
    }
    show(){
    }

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    14
    I can read my data without problem, my trouble is to keep all the value to use it again in another function....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with linked list sorting function
    By Jaggid1x in forum C Programming
    Replies: 6
    Last Post: 06-02-2009, 02:14 AM
  2. linked list question
    By brb9412 in forum C Programming
    Replies: 16
    Last Post: 01-04-2009, 04:05 PM
  3. Replies: 16
    Last Post: 10-29-2006, 05:04 AM
  4. Help with my program
    By duty11694 in forum C Programming
    Replies: 2
    Last Post: 11-24-2002, 05:54 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM