🎄T
Size: a a a
🎄T
.
c++
#include <iostream>
#include <string>
int main() {
std::string *test = new std::string();
delete test;
std::string *test2 = new std::string();
*test = "ti pidor";
std::cout << *test;
}
source_file.cpp: In function ‘int main()’:
source_file.cpp:7:22: warning: unused variable ‘test2’ [-Wunused-variable]
std::string *test2 = new std::string();
^
ti pidor
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
Э
Э
🎄T
.
c++
#include <iostream>
#include <string>
int main() {
std::string *test = new std::string();
std::string *test2 = new std::string();
*test = "ti pidor";
std::cout << *test2;
}
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
.
.
Э
🎄T
z
.
c++
#include <iostream>
#include <string>
int main() {
std::string *test = new std::string();
delete test;
std::string *test2 = new std::string();
*test = "ti pidor";
std::cout << &test2 << std::endl << &test;
}
0x7ffeb97df660
0x7ffeb97df658
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
.
🎄T
c++
#include <iostream>
#include <string>
int main() {
std::string *test = new std::string();
delete test;
std::string *test2 = new std::string();
*test = "ti pidor";
std::cout << &test2 << std::endl << &test;
}
0x7ffeb97df660
0x7ffeb97df658
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
.
.
.
🎄T
.