This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/dm/stlport/test/regression/strass1.cpp

10 lines
178 B
C++
Raw Normal View History

#include <string>
int main()
{
std::string str1 = "string";
std::string str2;
str2.assign(str1.begin(), str1.begin() + 3);
return 0;
}