pacman -Syu (<pkg>)
- update && upgrade /pkg optionalpacman -S <pkg>
- installpacman -Rsc <pkg>
- uninstallpacman -Ss <keywords>
- searchpacman -Qe
- list installed pkgs by you
This file contains 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
// https://learnxinyminutes.com/docs/c++/ | |
////////////////// | |
// Comparison to C | |
////////////////// | |
// C++ is _almost_ a superset of C and shares its basic syntax for | |
// variable declarations, primitive types, and functions. | |
// Just like in C, your program's entry point is a function called | |
// main with an integer return type. |
This file contains 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
fn print(buffer: &str) { | |
use std::io::Write; | |
print!("{}", buffer); | |
std::io::stdout().flush().unwrap(); | |
} | |