Utilisateur
a text editor that uses the CLI.
The mode in VIM that allows you to type in commands. Press esc to enter ______ mode.
The mode in VIM that allows you to add text to the file. Press "i" to enter _____ mode.
vim <filename>
"wq"
Copies the line
paste
Deletes line and stores in clipboard
go to first line
Go to last line
undo
redo
Reformats Indentation of Entire Program
The first operating system writtten in a "high level programming language" (C).
The path from the root directory (very top directory) all the way to the directory/file. The absolute path will always begin with a forward slash. This first slash is the symbol for the root directory, and the slashes after that separate parent and child directories. (practice witting a root path)
Starts at the current working directory instead of the root. Note that we do not begin the relative path with a forward slash. (practice writing a relative path)
list directory
Change Directory
Make Directory
Deletes a file
Removes a directory
Remote access a computer
Downloads a file from a remote computer
Prints user's username
Clears the command line
Moves a file from directory 1 to directory 2
Allows you to use numeric limits
Clears the cin of fail state
returns true if cin is in the fail state
cin.ignore() takes two arguments, a number and a character. It will ignore until it reads the specified character OR until it's already ignored X number of characters, whichever comes first. For example, cin.ignore(5, 'r') will ignore 5 characters or will ignore until it reads an 'r'
cin.ignore(numeric_limits<streamsize>::max(), <character>);
Idk what to tell you just understand it
#include <iomanip>
#include <iostream>
setw();
sets width of cout
Changes what extra spaces will be. USES A CHAR NOT A STRING
left justifiies
right jusities
sets the decimal precision
Gets rid of scientific notation when using setprecision
Allows whats after the decimal point to be visible or not
Opposite of fixed
Sets the base that ints will be displayed in
#include <vector>
Vector <int> intVector1;
Resizes the vector plus 1 and adds the thing in the first cell
Resizes a vector to a cells with b value being the default for new ones
Resizes vector to 0
Pulls the value at that cell in the array
returns the size of the vector
A way of reading and writing from files like we do from the console.
1. Include the <fstream> header
2. ifstream fin;
3. fin.open();
4. fin << or >>
5. fin.close();
Opens the file in the string
Detects if there is an open file
closes the file
returns true if the file couldn't be opened
a is the fin, b is the line, c is delimiter
The number of arguments in the command line. Argument count. Int
The array of arguments in the command line. Argument values. Array of c-style strings
The file name
like .open but for stringstreams
clears the string stream. Must be done before .str();