online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> #include <vector> using namespace std; template <class Key, class T> class map_template; template <class Key, class T> ostream& operator<< (ostream &o, const map_template<Key, T> &map); template <class Key, class T> //template <klucze, dane pracownikow> class map_template{ private: vector<Key> keys; //vector do przechowywania unikalnych kluczy pracowników vector<T> content; //vector do przechowywania danych pracowników public: map_template(){} void Add(Key key, T t) {}; T* Find(Key key) { T *t; return t; } template<typename, typename> friend ostream& operator<< (ostream &out, map_template &map); }; template<class Key, class T> ostream& operator<<(ostream &out, map_template<Key, T> &map) { out << "dupa"; return out; } int main() { map_template<unsigned int, int> map; cout << map; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue