04 2012 档案
摘要:#include <iostream>using namespace std;#include <iomanip>int main(){ //16进制的输入输出 cin>>hex>>j; //输入为十六进制数 // cout<<”hex:”<<”i=”<<hex<<i<<endl; //cout输出变量的“大写”十六进制格式 setiosflags(ios::uppercase) long long a,b; long long sum; while(cin >> hex &
阅读全文
摘要:#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); ...
阅读全文
摘要:文件 BookInfo.txt关键字 书号 algorithms 034analysis 034,050,067computer 005,034data 005,010,023design 034fundamental 023introduction 010,...
阅读全文
摘要:#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
阅读全文

浙公网安备 33010602011771号