First usable version

This commit is contained in:
alexeevdv
2015-02-14 23:18:15 +03:00
parent db90d25ea6
commit e5f9ee4ec7
11 changed files with 271 additions and 263 deletions
-1
View File
@@ -18,7 +18,6 @@ CFile* CArchive::GetFile()
void CArchive::WriteString(const char * value)
{
std::cout << _file->_ostream.is_open() << std::endl;
_file->_ostream << value;
}
+11 -5
View File
@@ -13,6 +13,16 @@ public:
{
}
A& operator[](ULONG offset)
{
return _vector[offset];
}
const A& operator[](ULONG offset) const
{
return _vector[offset];
}
void RemoveAll()
{
while (!_vector.empty()) _vector.pop_back();
@@ -54,13 +64,9 @@ public:
_vector.insert(_vector.begin() + position, value);
}
A& at(ULONG n)
{
return _vector.at(n);
}
void Copy(CArray source)
{
_vector.clear();
for (auto it = source._vector.begin(); it != source._vector.end(); ++it)
{
_vector.push_back(*it);
+2 -2
View File
@@ -28,7 +28,7 @@ const char * CString::c_str() const
CString& CString::operator=(const char* value)
{
_string += value;
_string = value;
return *this;
}
@@ -40,7 +40,7 @@ CString& CString::operator+=(const char* value)
CString& CString::operator+(const char* value)
{
_string += value;
_string = _string + value;
return *this;
}