You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
450 B
C++
19 lines
450 B
C++
#include <iostream>
|
|
#include "miptstring.h"
|
|
#include "miptstringview.h"
|
|
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(2);
|
|
cout << av << endl;
|
|
mipt::String meow = av;
|
|
cout << "sv to string: " << meow << endl;
|
|
}
|