Search:

Type: Posts; User: lowerlogic

Search: Search took 0.01 seconds.

  1. Thanks.

    Thanks.
  2. Replies
    4
    Views
    1,962

    A few days ago I made a function that splits a...

    A few days ago I made a function that splits a string into a vector of words, also handles extra spaces nicely:

    #include <iostream>
    #include <string>
    #include <vector>
    ...
  3. template class does not like list iterator

    Here's a simple example that shows the error:


    #include <list>
    using namespace std;
    template <class T>
    class fastlist {
    public:
    list<T>::iterator begin();
    private:
  4. Thanks

    Thanks for the fast replies.
  5. How do I define two C++ classes with pointers to each other?

    I'm trying to make two classes that hold a pointer or variable of the other, like this (pseudo-code):
    ---unit.h---

    #ifndef UNIT_H
    #define UNIT_H
    #include "action.h"
    #include <vector>
    using...
Results 1 to 5 of 5