D
David Steward
I am really scratching my head on this problem. I am
trying to set up a very simple linked list using the
<list> STL. As an example I wrote sample code just like
what is given in the help files. An example is as follows:
#include "stdafx.h"
#include <iostream>
#include <list>
#include <stdio.h>
#include <stdlib.h>
using namespace System;
using namespace System::IO;
using namespace std;
list<int> intList;
intList.push_back(20);
The problem is that when I compile this, I get compiler
error's C2143, C2501, C2371. It appears that I have all
the header files, but then again I may be wrong.
Help!
David Steward
trying to set up a very simple linked list using the
<list> STL. As an example I wrote sample code just like
what is given in the help files. An example is as follows:
#include "stdafx.h"
#include <iostream>
#include <list>
#include <stdio.h>
#include <stdlib.h>
using namespace System;
using namespace System::IO;
using namespace std;
list<int> intList;
intList.push_back(20);
The problem is that when I compile this, I get compiler
error's C2143, C2501, C2371. It appears that I have all
the header files, but then again I may be wrong.
Help!
David Steward