Created
June 14, 2021 14:16
-
-
Save emadflash/7fbf689f390429f0f71e49185099101a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cpp | |
string s { "aaaa" }; | |
auto x = std::move(s); | |
s = "some other shit"; | |
cout << s; | |
// rust | |
let x = String::from("aaaa"); | |
let y = x; | |
println!("{}", x); | |
println!("{}", y); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment