#include <iostream>
#include <fstream>
#include <string>
using namespace std;
struct TsuPod //First letter capitalized just like in adobe reader file.
{
string title;
string artist;
int size;
}
////////////////////////////////
/* FUNCTION - void initTsuPod
Initialize all the slots to blank and 0 size memory.
input parms - none.
output parms - none
*/
void initTsuPod (int numSongs,TsuPod storedSongs[])
{ //Line 33
for(int i = 0; i < numSongs; i++)
{
storedSongs[i].title = "Blank";
storedSongs[i].artist = "Blank";
storedSongs[i].size = 0;
}
}
I have to do this project in a certain way for class and it incolves using and passing abstract data type arrays. When I try to compile I continue to get these two errors:
33 new types may not be defined in a return type
33 two or more data types in declaration of `initTsuPod'
After looking through this site the solution seems to be putting in a semi-colon somewhere but for the life of me I can’t figure out where one would have to go in order to make this work. Any help would be appreciated.