【初心者歓迎】C/C++室 Ver.22【環境依存OK】
■ このスレッドは過去ログ倉庫に格納されています
0304デフォルトの名無しさん
2005/10/17(月) 15:55:161 #include <iostream>
2 #include <algorithm>
3 #include <functional>
4 #include <iterator>
5 using namespace std;
6
7 template <class T>
8 class MyFirstContainer {
9 public:
10 typedef T value_type;
11 typedef value_type *pointer;
12 typedef value_type &reference;
13 typedef size_t size_type;
14 typedef ptrdiff_t difference_type;
15 //typedef pointer iterator;
16 class MyIterator: public iterator <forward_iterator_tag, T> {
17 typename MyIterator::value_type *vp;
18 public:
...
これで、
list4-4.cc:16: parse error before `<'
...
のようになってしまいます。
よろしくお願いします。
■ このスレッドは過去ログ倉庫に格納されています