#include<iostream>using namespace std;int main(int argc, char *argv[]){ int n; while(cin>>n) { int count=0; char *str = new char[n]; cin>>str; for(int k=1; k<n; ++k) { char elem=str[k]; for(int j=(k-1); j!=(-1); --j) { ...
为了领积分哈!随便贴一段代码哈,O(∩_∩)O~!
#include<iostream>#include<string>using namespace std; class fraction; //const fraction operator=(const fraction &f1,const fraction &f2); const fraction operator+(const fraction &f1,const fraction &f2); const fraction operator-(const fract...