일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Web Hacking
- BASE64
- reversing
- 카이사르 암호
- Masonic Cipher
- Javscript
- Python
- AVR
- vigenere cipher
- Pigpen Cipher
- Qrcode
- base16
- Fortran 90
- JavaScript
- cookie
- sha1
- 시저 암호
- assembly
- Navajo alphabet
- Linux
- sql injection
- php_extract
- Caesar Cipher
- base32
- webhacking
- burpsuit
- Mail Header injection
- overthewire
- 비즈네르 암호
- aslr
- Today
- Total
목록Fortran 90 (6)
My Drive
• 배열 선언 : dimension◦ example :real, dimension(2,2) :: areal, dimension(3:4,-2:-1) :: qinteger, parameter :: m=27, n=123real, dimension(n,m) :: b,creal, dimension(m) :: x,y • 배열 관련 함수 : shape, size, lbound, ubound◦ example :shape(b) → 123, 27 (= n,m) ! 배열 b의 모양(가로, 세로 크기)size(b) → 3321 (= 123*27) ! 배열 b의 크기(가로x세로)size(b,1) → 123 ! 배열 b의 가로 크기size(b,2) → 27 ! 배열 b의 세로 크기lbound(q,2) → −2 ! 배열 q의 세로..
1. If (single-statement)◦ example :if(x.gt.0.) x=sqrt(x) 2. If (block)◦ example :if(x.gt.0.) thenx=sqrt(x)y=y-xendif 3. If-Then-Else ( end if == endif )◦ example :if(x.lt.0.) thenwrite(*,*) ’x is negative’elseif(x.gt.0.) thenwrite(*,*) ’x is positive’elsewrite(*,*) ’x must be zero’endifendif 4. If-Then-Elseif- ... - Else - Endif ( else if == elseif )◦ example :if(x.lt.0.) thenwrite(*,*) ’x is ne..
1. do-loop ( increment : 옵션, default = 1 )◦ example :do i=1,10,2 ! begin, end, incrementwrite(*,*) i,i**2enddo ! or, end do만약, begin이 end보다 크면, increment가 주어져야 함. 그렇지 않으면 실행 안됨◦ example :do i=10,1 ! not executedwrite(*,*) i,i**2enddo do i=10,1,-1 ! executedwrite(*,*) i,i**2enddo 2. while-loop◦ example :x=.2do while (x.lt..95)x=3.8*x*(1.-x)write(*,*) xenddo 3. 무한 루프◦ example :do ! "do forever". E..
1. 수◦ 연산자 :+ 더하기- 뺴기* 곱하기/ 나누기** 거듭제곱◦ 중요 함수 : sin, cos, tan, atan, exp, log (natural logarithm), log10 (logarithm to base 10), sqrt, . . .정밀도가 높은 피연산자에 의해 결과가 나타난다.◦ examples :1/2 → 01./2 → 0.50000001/2. → 0.50000001/2._dp → 0.5000000000000001+(1.,3) → (2.000000,3.000000) 2. 논리◦ 연산자 : .and. boolean "and" .or. boolean "or" .not. boolean "not".eq. or == "equal".ne. or /= "not equal".gt. or > "gre..
1. 기본 자료형integer real complex character logical 2. 유도 자료형◦ example :type person ! type [type 이름]character (len=20) :: nameinteger :: ageend type ! end typetype(person) :: myselfmyself%age=17 3. 속성dimension allocatable parameter intent kind lensave pointer public private optionalparameter : 컴파일 타임에 정의되기 때문에, 프로그램 실행 줄 바뀔 수 없음 (배열 크기 선언 시 유용)◦ example :integer, parameter :: np=3real, dimension(np)..
1. line-orientedLine-oriented programming language는 라인의 끝을 문장/명령어의 끝으로 해석한다. 보통 다음 줄로 이어진다는 표시문자가 있다.(대게 / 또는 - )포트란에서는 한 줄이 최대 132 글자이고, 다음줄로 이어지는 문장은 & 표시를 한다.◦ example :a=3*b + &7*c* C나 C++ 등은 Non-line-oriented programming language로 문장/명령어의 끝을 ; 이나 . 등 으로 나타내준다.포트란에서 한 줄에 여러 문장/명령어를 나타내기 위해 ; 를 사용한다.◦ example :if(a>5) then; b=7; else; b=8; endif corresponds toif(a>5) thenb=7elseb=8endif 2. 주석..