<stack>和<queue>这个C++类模板可以用C实现么~
											这个是网上搜的代码~原出处为
http://www.
程序代码:#include "stdafx.h"  
#include <stack>  
#include <vector>  
#include <deque>  
#include <iostream>  
   
using namespace std;  
   
int _tmain(int argc, _TCHAR* argv[])  
{  
    deque<int> mydeque(2,100);  
    vector<int> myvector(2,200);  
   
    stack<int> first;  
    stack<int> second(mydeque);  
   
    stack<int,vector<int> > third;  
    stack<int,vector<int> > fourth(myvector);  
   
    cout << "size of first: " << (int) first.size() << endl;  
    cout << "size of second: " << (int) second.size() << endl;  
    cout << "size of third: " << (int) third.size() << endl;  
    cout << "size of fourth: " << (int) fourth.size() << endl;  
   
   
    return 0;  
}打算自己用C弄个栈和队列~却被吐槽说直接调用模板函数就可以啦~多少有点无语~~~~~问问这个模板能用C实现么~
虽然感觉这个很方便~不过用C++表示还没有怎么学~~所以如果用C的话是不是要另外自己写自定义函数了?~~~~~
或者……这个贴应该发在C++板块~

											


	    