02 2012 档案
摘要:View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.IO; 6 7 namespace CTest 8 { 9 class PropertyFileOperator10 {11 private StreamReader sr = null;12 /// <summary>13 /// 构造函数14 /// </summary>15 /// <param nam...
阅读全文
摘要:程序功能描述: 把每有个字符看成是二进制位数据,程序提供给这些字符组成的图像加边框操作、横向合并操作、纵向合并操作。 1 #include <iostream> 2 using namespace std; 3 class Picture; 4 ostream& operator<<(ostream&,const Picture&); 5 Picture frame(const Picture&); 6 Picture operator&(const Picture&,const Picture&); 7 Pict
阅读全文
摘要:1 #include <iostream> 2 #include <string> 3 #include <stack> 4 5 using namespace std; 6 int main() 7 { 8 string str ="I live in cnblogs.com"; 9 stack<char> cStack ;10 for(int i=0,w=0;i <str.length(); i++) 11 { 12 if (str[i]==' '||i==str.length()-1) 13 { 1
阅读全文