I'm making a singly Linked List called Tracks, why is it throwing exception when I try to make a ptr of type Tracks and assign head to it. It also gives same error when I assign mbidd value to node->trackRef->mbid
Test Case:
TEST(SoundCloudTesting, AlbumDatabase) { string path = "Albums.csv"; ad = Create_AD<int, string, float>(path); //function to be implemented int expected_albums[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; //expected abid(s) //Testing AD Data structure AD<int, string, float>* current = ad; for (int i = 0; i < 13; i++) { EXPECT_EQ(expected_albums[i], current->abid); current = current->next; } EXPECT_EQ(1, current->abid); }
mainthat duplicates the error.MMD?