Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » PR, media coverage, articles and documentation » grammar corrections
Re: grammar corrections [message #732 is a reply to message #604] Sun, 29 January 2006 21:10 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Next round is:
Indext$en-us.tpp
ModularSerialization$en-us.tpp
Moveable$en-us.tpp
NTL$en-us.tpp
NTLvsSTL$en-us.tpp
One$en-us.tpp
Overview$en-us.tpp
pick_$en-us.tpp
PtePtr$en-us.tpp
Segtor$en-us.tpp
SerializationUtils$en-us.tpp

One of the interesting errors was a code bug inside the documentation Razz Here is the bad version:
class SimpleString {
	char *text;
public:
	SimpleString(const char *txt) {
		text = new char[strlen(txt)];
		strcpy(text, txt);
	}
	SimpleString(const SimpleString& s) {
		text = new char[strlen(s.text)];
		strcpy(text, s.text);
	}
	void operator=(const SimpleString& s) {
		delete[] text;
		text = new char[strlen(s.text)];
		strcpy(text, s.text);		
	}
	SimpleString() {
		delete[] text;
	}
};
Can you spot the error? Razz
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Terminology
Next Topic: documentation and uvs
Goto Forum:
  


Current Time: Mon May 06 20:26:05 CEST 2024

Total time taken to generate the page: 0.02662 seconds