Midterm
VIM
a text editor that uses the CLI.
Normal Mode
The mode in VIM that allows you to type in commands. Press esc to enter ______ mode.
Insert Mode
The mode in VIM that allows you to add text to the file. Press "i" to enter _____ mode.
How to open a file with VIM on the CLI
vim <filename>
How to save and exit vim
"wq"
VIM Command "yy"
Copies the line
VIM Command "dd"
Deletes line and stores in clipboard
VIM Command "gg"
go to first line
VIM Command "G"
Go to last line
VIM Command "gg=G"
Reformats Indentation of Entire Program
Unix
The first operating system writtten in a "high level programming language" (C).
Absolute Path
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)
Relative 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)
Unix Command "ls"
list directory
Unix Command "cd"
Change Directory
Unix Command mkdir
Make Directory
Unix Command rm
Deletes a file
Unix Command rmdir
Removes a directory
Unix Command ssh
Remote access a computer
Unix Command scp
Downloads a file from a remote computer
Unix Command whoami
Prints user's username
Unix Command clear
Clears the command line
mv
Moves a file from directory 1 to directory 2
#include <limits>
Allows you to use numeric limits
cin.clear()
Clears the cin of fail state
cin.fail();
returns true if cin is in the fail state
cin.ignore()
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'
How to cin.ignore() until a certain characte
cin.ignore(numeric_limits<streamsize>::max(), <character>);
How does cin work with if statements
Idk what to tell you just understand it
What to include for input output manipulation
#include <iomanip>
#include <iostream>
The only non persistent manipulator
setw();
setfill()
Changes what extra spaces will be. USES A CHAR NOT A STRING
setprecision()
sets the decimal precision
fixed
Gets rid of scientific notation when using setprecision
showpoint/ noshowpoint
Allows whats after the decimal point to be visible or not
scientific
Opposite of fixed
hex/ dec/ oct
Sets the base that ints will be displayed in
Vector header
#include <vector>
Vector decleration format
Vector <int> intVector1;
push_back();
Resizes the vector plus 1 and adds the thing in the first cell
resize(a ,b)
Resizes a vector to a cells with b value being the default for new ones
clear();
Resizes vector to 0
.at();
Pulls the value at that cell in the array
.size();
returns the size of the vector
Filestreams
A way of reading and writing from files like we do from the console.
Steps for filestream setup
1. Include the <fstream> header
2. ifstream fin;
3. fin.open();
4. fin << or >>
5. fin.close();
.open()
Opens the file in the string
is_open()
Detects if there is an open file
.fail();
returns true if the file couldn't be opened
getline(a,b,c);
a is the fin, b is the line, c is delimiter
Argc
The number of arguments in the command line. Argument count. Int
Argv
The array of arguments in the command line. Argument values. Array of c-style strings
What's in argv[0]?
The file name
.str()
like .open but for stringstreams
.clear()
clears the string stream. Must be done before .str();
Quiz |
---|
Quadratic Expressions (gr 10 math) |
German speaking projects 1 |
2546- Third Trimester |
Patologia generale |
Scentific method |
Atrama ir judėjimas |
GOVERNANCE & DEVELOPMENT |
FINANCIAL MANAGEMENT |
Augalo organizmas |
gyvybes ivairove |
H1 |
bio |
duits H1 (4) |
geschiedenis 1.1 2.1 |
no kärnfysik åk9 nr2 |
duits H1 (3) |
duits |
inicio del desarrollo del sistema circulatorio |
Duits 2 H 1 woordjes |
english week 41 |
derecho |
KOTOBA PM LEMBAR 11(hal 43,44,45,46) |
BRW |
segmentación y delaminación del mesodermo |
Glossary Vocab Qiuz |
Test 2 |
2546- Second Trimester |
2546- First Trimester |
homework |
demografi migration etc |
Karens Midterm |
Afrikaans se instruksies |
Hjärtat |
geography case studies |
frans |
duits H1 (2) |
duits H1 |
SO-cold war |
Laboratório Anexo3Medição em Química |
SPANISHI would like |
Salesforce data cloud 2024 |
KOTOBA PM LEMBAR 10(hal 37,38,39,40-41,43) |
QUIZ Ethics |
NSTPdrrm |
312 |
bio 12 quiz on Macro molecules |
no kärnfysik |
Normalvärden, triage och HLR |
Week 4 - Joints (Chapter 9) |
6.1 ( school subjects spanish) |
5.3 (directions spanish) |
5.2 ( why you go there spanish) |
5.1 (Places in town Spanish) |
voc 5 (The death penalty) |
PY2501.1 ~ {Designing Good Research Studies} |
Palavras ou expressões p1 em inglêsP1 |
unidad 2 |
p |
O |
MIDTERMS THEORY |
Glosor |
COUNTRIES CAPITAL AND CURRENCIESby Ayaz Sindhi |
KOTOBA PM LEMBAR 9(hal 34,35,36,37) |
OB |
FREN 3P03 VOCABULAIRE |
Ite 366 |
Parcial 1 |
Quiz Gine Parcial |
S&A |
gr 9 science exam 1 |
Week 6 - Nervous System Chapter 12 |
Week 5 - Axial Skeleton (Chapter 7) |
FREN 3P03 |
Diritto PrivatoIl diritto è un sistema di regola per la soluzione di conflitti fra gli uomini. |
Chapter 21 vessels |
NO |
ses |
MAD Mobile Application development MIDTERM part 2 |
MAD Mobile Application development MIDTERM part 1 |
MAD Mobile Application development chapter 5 part 2 |
MAD Mobile Application development chapter 5 part 1 |
MAD Mobile Application development chapter 4 part 4 |
MAD Mobile Application development chapter 4 part 3 |
MAD Mobile Application development chapter 4 part 2 |
MAD Mobile Application development chapter 4 part 1 |
MAD Mobile Application development chapter 3 |
MAD Mobile Application development chapter 2 |
MAD Mobile Application develooment chapter 1 part 2 |
MAD Mobile Application develooment chapter 1 part 1 |
Ganda - copy |
ak hoofdstuk 1 havo 2 |
ITP |
glosor V.40 |
kap 7 |
Duits woordenlijst |
Kompletering prefix små tal |
にほんごの質問 |
Matte complwtering prefix stora tal |
Grunder i belysningsteknik övningstenta A+BÖvningstenta |
STAINS |
zahlen |
frage wörter |
Konjugation verben auf -ar |
Konjugation ser |
3Osso dell'anca, ileo, ischio, pube |
LO1 |
Glosor v41 |
FRÅGOR |
KOTOBA PM LEMBAR 8(hal 31,32,33,34) |
banking gk and awareness |
Fysik 5.1 , 5.2 Rörelse åk 8 |
Anatomofisiologia |
CHAPTER 4 |
anatomia 2 parcial |
French and indian warSTUDY |
systeme nerveux |
Enzymes, Chemical Peels, Circadia Cocoa Enzyme Lactic Acid Treatment |
intrinsic aging and hormones |
koder pli |
Vicios del lenguaje |
burn |
wound |
Auf die Räder |
auro |
cosmeceuticals |
galvanic |
Science 9 test 1 |
neurulacion |
come si scirvere un cv |
CVlinguaggio formale. come scivere una cover letter. |
notocorda |
anglais |
definition and characteristics of rubrics |
les autochtones |
ORG AGRI REVIEWER |
vocabulaire 1er chapitre term |
Kapitel 10 |
intrinsic aging and hormones |
Kapitel 9 |
FOLA M1 |
Auteurs sociologie contemporaine |
Genesis 1:2 And the earth was without form, and void; and darkness was upon the |
sinterizzazione |
Kapitel 1 - copy |
BASIC KEYBOARDING |
1L1M Understanding the self |
ROTC |
KOTOBA PM LEMBAR 7(hal 26,27,28,29,30) |
Drinkar 3De 10-20 första drinkarna |
class 12 ch 1 |
enzymes |
PAE 2P |
modernismo y posmodernismo |
microbiology |
parcial 1 y 2 - copia |
Enzymes, Chemical Peels, Circadia Cocoa Enzyme Lactic Acid Treatment |
FREN 3P05 Test 1 oct 2024 |
Urinary system |
historia |
inglês palavras adjetivos(p1)Palavras e expressões guardadas de Português para inglês e vice versa
Adjetivos |
french untie 1 |
Quiz 2 Body mechanics |
Week 4 - Skeletal System (Chapter 6) |
Chapitre 1c semaine 40 ord + futurum med ALLER |
kapitel 8 |
prefix |
kranialnerver |
Lab Heart |
Cirkulationssystemet |
the younger brother's inheritance |
Kort transaksionele tecks woordeskat |
evolution |
biology |
CHAPTER 3: TYPICAL SIGNS AND SYMPTOMS OF PSYCHOPATHOLOGY (PART 3) |
40 |
civil olyndand |
Grammar Ending's German |
Salesforce Data Cloud 1 - copy |
Kapitel 6 |
C# Chapter 4 part 2 |
C# Chapter 4 part 1 |
C# Chapter 3 Part 2 |
C# Chapter 3 Part 1 |
C# Chapter 2 Part 2 |
C# Chapter 2 Part 1 |
C# Chapter 1 part 2 |
C# Chapter 1 part 1 |
Kapitel 4 |
KOTOBA PM LEMBAR 6(hal 19,20,21,22-23,24,25,26) |
Kaptiel 3 |
Cognitive psychology attention |
76-100 |
قیافه شناسی |
marketing |
Paris Basin |
انتقال ها |
Market StudiesMarket Studies is a discipline used to understand the market, the customers, the development of the offer and the position of the brand & its communication. |
Many Kingdoms |
SCI-401 |
Pacial Gine |
morfologia das articulações |
articulacoes |
articulações anatomia humana |
Spanska v. 40 |
Forensic Toxicology |
Math, Unit 2 Quiz |
Blodet |
kap 1 |
BLED CHAP 12 |
TLE (tech) (1st exam)Study!!! |
BLED CHAP 11 |
integumentary |
CHAPTER 3: TYPICAL SIGNS AND SYMPTOMS OF PSYCHOPATHOLOGY (PART 2) |
ekologi |
Analyse qualitative des données |
Spanska - djur 1 |
Spanska - djur |
Sociologie des mobillitéjj |
tyska glosor |
Handel och logistik - kopia |
ModalsModal is an auxilliary verb |
KOTOBA PM LEMBAR 5(hal 15,16,17,18) |
Drinkar 2De 10 första drinkarna |
Merkantilism |
Keynesianismen |
Kanji 一 |
Handel och logistik |
aparato reproductor femeninocompruebe los temas estudiados de el aparato reproductor femenino |
51-75 |
Math GRE |
BAB 25 |
la materia y sus interacciones |
endocrinologia |
Rock |
PSYC-2018 Quiz |
Revolution francaise |
Lavar |
Drinkar VGHär kommer ett härligt sätt att övar på drinkar! |
Spanska |
Forensic Ballistics (3) |
English vocabulary 3 |
atividades de ocio |
Resonera |
Djur stamtavla |
Ropa |
Tipos de comercio |
интеркаларни, латерални, трауматични меристеми и меристемоиди |
Normas de trabajo y seguridad. 1 |
Вегетациона купа коријена |
HEPSY Cours 2 |
DNL |
havo maatschappijleer se1 |
Virology |
Hi |
NEURO TD2 |
computer |
gs so 2.2,3,5 |
Geo glaciersHehe |
Mandarin |
hge |
KOTOBA PM LEMBAR 4(hal 12,13,14,15) |
Anglais S5 Voc 1 |
kap 6 |
Animal physiology |
Forensic Ballistics (2) |
GEOGRAFIA |
FÍSICA |
sistema oseosistema oseo |
moment 1 |
FILOSOFIA |
musculosmusculos de la cabeza |
Léna |
Sociology |
Relgion prov 1 |
Test 1 |
BIOLOGIA 2.0 |
lite randoms |
frågor |
färger |
kläder |
veckodagarna |
Jag är... |
Food accessories |
Food |
Djur |
math |
مکتب ها |
scheikunde se1 |
Gender and Society |
KOTOBA PM LEMBAR 3(hal 8,9,10,11,12) |
AP 10 |
Chapter 20 Cardiac |
Java 2 chapter 10 review study |
Java 2 Chapter 8 review study |
Vegetaciona kupa stabla |
Java 2 chapter 9 review study |
LED fakta |
Suffixes Forming AdjectivesSuffixes which transform any parts of speech into adjective |
voc 4 (america's gun culture) |
Ljustekniska storheter och enheterklar |
16 LERNWORTSCHATS |
VerbChoose the correct answer and earn points! Good luck!! |
Suffixes Forming NounsSuffixes which transform any parts of speech into noun |
intro to transpo L1 |
Kapitel 2 |
Ljusfördelning och avbländning |
Art and power : the power of music |
its PL1 |