SHARE
TWEET

Untitled

a guest May 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct {
  2.  
  3.     int year;
  4.     int number;
  5.     char* title;
  6.     double data;
  7.     Data * next;
  8.  
  9. } Data;
  10.  
  11. Data* readDataInfo(ifstream &inFile);
  12. void printStruct(Data structName);
  13.  
  14. int main() {
  15.  
  16.     Data * head;
  17.    // Data * temp;
  18.  
  19.  
  20.    Data * temp = new Data[20];
  21.    temp = head;
  22.  
  23.    for(int i=0; i<20; i++){
  24.        temp[i]=temp[i]->next;
  25.    }
RAW Paste Data
Top