陆续更新!#include<iostream> #include<cstdlib> #include<string> using namespace std; main() { int number; cout <<"a number in decimal:"<<dec<<15<<endl; cout<<"in octal :"<<oct<<15<<endl; cout<<"in hex:" << hex << 15 <<endl;//进制的输出 cout << "this is far too long to put on a" "single line but it can be broken up with " "no ill effects /nas long as there is no" "punctuation separating adjacent character " " arrays./n";//字符串的分行输入 cout<< "Enter a decimal number : "; cin >> number; cout << "value in octal = 0" <<oct<< number << endl; cout <<"value in hex =0x" << hex << number <<endl; string s1,s2; string s3= "hello ,word."; string s4("I am"); s2="Today"; s1=s3+" "+s4; s1+=" 8 "; cout<< s1+s2+"!"<<endl;//字符串的处理 //system("cmd"); }