18 lines
382 B
C++
18 lines
382 B
C++
#include <iostream>
|
|
#include "miptstring.cpp"
|
|
#include "miptstringview.cpp"
|
|
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
mipt::String a = "abcd";
|
|
mipt::String b = "abce";
|
|
mipt::StringView av = a;
|
|
mipt::StringView bv = b;
|
|
//cout << (b < a) << endl;
|
|
//cout << (bv < av) << endl;
|
|
cout << av.substr(1,10) << endl;
|
|
av.remove_suffix(5);
|
|
cout << av << endl;
|
|
}
|