#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
posted @ 2012-04-29 23:06 潘小雨 Views(267) Comments(0) Diggs(0) Edit
文件 BookInfo.txt关键字 书号 algorithms 034analysis 034,050,067computer 005,034data 005,010,023design 034fundamental 023introduction 010,... Read More
posted @ 2012-04-29 21:05 潘小雨 Views(207) Comments(0) Diggs(0) Edit
#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
posted @ 2012-04-29 20:23 潘小雨 Views(4990) Comments(0) Diggs(0) Edit