17 lines
409 B
C++
17 lines
409 B
C++
|
#include <iostream>
|
||
|
#include "miptstring.cpp"
|
||
|
#include "miptstringview.cpp"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
mipt::String str = "Meow!!";
|
||
|
cout << str << endl;
|
||
|
mipt::StringView sv = str;
|
||
|
cout << "string view: " << sv << endl;
|
||
|
char a[] = "nyaa!";
|
||
|
mipt::StringView sv1 = a;
|
||
|
cout << "string view: " << sv1 << endl;
|
||
|
cout << sv1.at(200) << endl;
|
||
|
}
|