#include <iostream>using namespace std;#include <stack>int main(){ char map[]="ABCDEF"; int num,R,sign; stack<int>s; while(cin >> num >> R) { sign=0; if(num<0) { sign=1; num=-num; } while(num) { s.push(num%R); ... Read More
文件 BookInfo.txt关键字 书号 algorithms 034analysis 034,050,067computer 005,034data 005,010,023design 034fundamental 023introduction 010,... Read More
#include <iostream>using namespace std;#include <list> //stl list是一双向链表,可高效地进行插入删除元素#include <string>int main () { list<string> cc; list<string>::iterator pointCC; //iterator迭代器 cc.push_back("Chocolate"); cc.push_back("Strawberry"); cc.push_front(&qu Read More