Search:

Type: Posts; User: QCMontrealQC

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    674

    Scanning for input; structures

    I need to write a function which reads two complex number from the user and stores it into the structure. How should I scan for input?


    typedef struct{
    float real, imag;
    } complex_t;
  2. Replies
    1
    Views
    733

    Printing structure

    Is this code properly scanning all the information in my file, if so how can I print the results?
  3. I defined a structure and called the file for...

    I defined a structure and called the file for reading, but I am confused about how to store the information in the fscanf portion of the code.


    typedef struct
    {
    int ranking;
    char name[20];...
  4. I need to store information from a file that...

    I need to store information from a file that contains stats of ten different countries, and store that information in an array of ten elements, where each element is a structure named data_t.
  5. File information into array of structures

    Once a file is read, how would you store the information into an array of nine elements where each element is a structure named data_t.
  6. Replies
    1
    Views
    734

    Array of Structures

    How would you store information read from a file into an array where each element is a structure?
Results 1 to 6 of 6