.

Saturday, December 7, 2013

??????

<???> //my chain.cpp #include <iostream> #include <string.h> #include my soak up.h using namespace std; trace:: make( set on fire* ch) { sizing = strlen(ch); fair sexArr = in the buff char[ size of it+1]; for(int i = 0 ; i<size ; i++) charArr[i] = ch[i]; } take out:: chemical chain() { size = 0; charArr = bleak char[50]; charArr[0] = 0; } String::~String() { delete[] charArr; } String::String(const String& deoxyadenosine monophosphate; str) { size = str.size; charArr = new char[size+1]; for(int i = 0 ; i<size ; i++) charArr[i] = str.charArr[i]; } bool String::check(int i)const { press under true; } void String::write(int k,char ch) { if(k > size||k < 0) cout<< indicant<<k<<exceeds array size!Nothing was do<<endl; else { charArr[k] = ch; } } char String:: promoter[] (int i)const { recurrence charArr[i]; } int String:: get toSize() { endow across size; } String& String:: actor = (const String& str) { if(this!=& str) { delete[] charArr; size = str.size; charArr = new char[size+1]; for(int i=0 ; i<size ; i++) charArr[i] = str.
Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.
charArr[i]; } return *this; } String& String::operator+(String& str) { String* autonomic nervous system = new String; for(int i = 0 ; i<size ; i++) ans->charArr[i] = charArr[i]; for(int j = 0 ; j<str.size ; j++) ans->charArr[j+size] = str.charArr[j]; ans->size = size+str.size; return *ans; } String&String::operator+=(String& str) { char* tmp = new char[size+str.size+1]; for(int i=0 ; i<size ; i++) tmp[i] = charArr[i]; for(int j=0 ; j<st r.size ; j++) tmp[j+size] = str.charArr[j];! size+=str.size; charArr = new char[size]; for(int i=0 ; i<size ; i++) charArr[i] = tmp[i]; delete[] tmp; return *this; } bool String::operator==(String& str) { if(strcmp(charArr,str.charArr)==0) return true; else return preposterous; } bool String::operator!=(String& str) {...If you want to get a full essay, order it on our website: OrderEssay.net

If you want to get a full information about our service, visit our page: write my essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.