mirror of
https://github.com/sfall-team/int2ssl.git
synced 2026-07-27 16:52:42 -07:00
First usable version
This commit is contained in:
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user