Hello all, I have a quick question about XCode. I am working on my Data Structures homework, which was to create a class template with some functions in C++, and then to test the template with both a float and a struct (that we made in class). I have finished the assignment, but I am unable to compile it. So I was wondering, how should my files be in my XCode project? I know in Visual Studio you are not to include the class implementation file into the project. I have tried both ways, and continue to get errors (all of which occur in the class implementation file). So, I am certain that I am not setting this up correctly.
If it helps, I can compress the folder to post here or I can just post my 3 source files (1 header, and 2 .cpp's), just let me know.
Thanks in advance!!!
Sean
Edit:
Silly me, I forgot to post the error that I get...
In the class implementation file, above each function definition there is the "template<class DataType>" line, and that is where the error occurs for all of the class definitions, and the error is "Expected initializer before '<' token"
If it helps, I can compress the folder to post here or I can just post my 3 source files (1 header, and 2 .cpp's), just let me know.
Thanks in advance!!!
Sean
Edit:
Silly me, I forgot to post the error that I get...
In the class implementation file, above each function definition there is the "template<class DataType>" line, and that is where the error occurs for all of the class definitions, and the error is "Expected initializer before '<' token"