์ ์ฒด ๊ธ48 ๋ฆฌ๋ ์ค ์ ๋จ์ถํค Keyboard shortcuts for bash Ctrl + A Go to the beginning of the line you are currently typing on Ctrl + E Go to the end of the line you are currently typing on Ctrl + L Clears the Screen, similar to the clear command Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. Ctrl + H Same as backspace Ctrl + R Let’s you search through previously used commands Ctrl + C Ki.. 2015. 4. 9. C++ ํ์ผ ์ ์ถ๋ ฅ ofstream / ifstream C++ programming์์๋ fstream์ ofstream / ifstream ํด๋์ค๋ฅผ ์ด์ฉํ์ฌ ํ์ผ์ ์ ์ถ๋ ฅํ๋ค. getline( fin, line ) extracts characters from fin and stores them into line variable getline()์ '/n'(defalut)์ ์ ๋ ฅ์ ๋์ผ๋ก ์ธ์ํ์ฌ ์ ํด์ง ๊ธธ์ด๋งํผ ํ์ค ์ ์ฒด๋ฅผ ์ฝ์ด๋ค์ธ๋ค. #include using namespace std; #define MAX_SIZE 1000 char inputString[MAX_SIZE]; int main() { // write a file ofstream outFile( "output.txt" ); for( int i=0; i 2015. 4. 9. Eigen3 Library Constructors #include #include using namespace Eigen; Matrix3f A; MatrixXf B; MatrixXf C( 10, 15 ); VectorXf d( 30 ); Matrix3F E; E 2015. 3. 27. STL vector class vector๋ STL์์ ๊ฐ์ฅ ์์ฃผ ์ฌ์ฉํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ด๋ค. ํ๋ก๊ทธ๋๋ฐ์ ํ ๋ ๊ฐ์ฅ ์์ฃผ ์ฌ์ฉํ๋ ์๋ฃ๊ตฌ์กฐ๋ ๋ฐฐ์ด(array)์ธ๋ฐ, vector๋ ๋ฐฐ์ด์ ๋์ฒดํ์ฌ ์ธ ์ ์๋ค. ๋ฐฐ์ด์ ๊ฒฝ์ฐ ๊ฐ์ ์ข ๋ฅ์ ๋ฐ์ดํฐ๊ฐ ์์ฐจ์ ์ผ๋ก ์ ์ฅ๋๋ค. ๋ฐฐ์ด์ ํฌ๊ธฐ๋ ๊ณ ์ ๋์ด ์์ง๋ง vector๋ ๋์ ์ผ๋ก ๋ณํ๋ค๋ ์ ์ด vector์ array์ ๊ฐ์ฅ ํฐ ์ฐจ์ด์ ์ด๋ค. 1. ๋ฐฐ์ด์ ํน์ง - ํฌ๊ธฐ ๊ณ ์ : ์ฒ์์ ํฌ๊ธฐ๋ฅผ ์ค์ ํ๋ฉด ์ดํ์ ํฌ๊ธฐ๋ฅผ ๋ณ๊ฒฝํ์ง ๋ชปํ๋ค. - ์ค๊ฐ์ ๋ฐ์ดํฐ ์ฝ์ , ์ญ์ ๊ฐ ์ฉ์ดํ์ง ์๋ค. - ๊ตฌํ์ด ์ฝ๋ค. - ๋ฐ์ดํฐ๋ฅผ ์์ฐจ์ ์ผ๋ก ์ ์ฅํ๋ฏ๋ก ๋๋ค ์ ๊ทผ์ด ๊ฐ๋ฅํ๋ค. 2. vector๋ฅผ ์ฌ์ฉํด์ผ ํ๋ ๊ฒฝ์ฐ - ์ ์ฅํ ๋ฐ์ดํฐ์ ๊ฐ์๊ฐ ๊ฐ๋ณ์ ์ด๋ค. - ์ค๊ฐ์ ๋ฐ์ดํฐ ์ฝ์ , ์ญ์ ๊ฐ ์๋ค. ๊ฐ์ฅ ๋ค์์๋ถํฐ ๋ฐ์ดํฐ๋ฅผ ์ญ์ ํ.. 2015. 3. 25. ์ด์ 1 ยทยทยท 4 5 6 7 8 9 10 ยทยทยท 12 ๋ค์