This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// Class Stack with default parameter | |
template<typename T, int N=10> | |
class Stack | |
{ | |
public: | |
Stack(); | |
~Stack(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
using namespace std; | |
// This function is required, and it will be called at the end. | |
void print() | |
{ | |
cout<<"\n Print is Complete"<<endl; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <memory> | |
#include <numeric> | |
#include <exception> | |
using namespace std; | |
class base | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <algorithm> | |
#include <string> | |
#include <map> | |
using namespace std; | |
int main() | |
{ | |
unsigned long totalQuery = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Ironhouse Pattern | |
// | |
// This is exactly the same example but broken into two threads | |
// so you can better see what client and server do, separately. | |
#include <czmq.h> | |
#include <iostream> | |
#include <sstream> | |
#include <sys/time.h> | |
#include <string> |