! A fortran95 program for G95
! By WQY
program test
implicit none
integer, target::a=1
integer, pointer::p=>null()
print*, associated(p)
p=>a
print*, associated(p)
print*, associated(p, a)
pause
end program
example-2:数组指针
! A fortran95 program for G95
! By WQY
program test
implicit none
integer, target::a(2, 3)=999
integer, pointer::p(:, :)=>null()
print*, associated(p)
p=>a
print*, associated(p)
print*, associated(p, a)
pause
end program
example-3:过程指针
! A fortran95 program for G95
! By WQY
program test
use m
integer::a=1
procedure(pro), pointer::p
interface
subroutine pro(a)
integer a
end subroutine
end interface
p=>sub
call p(a)
pause
end program
module m
contains
subroutine sub(a)
integer a
print*, "sub:", a
end subroutine sub
end module
使用 ORDER BY 进行排序
使用 ORDER BY 语句按升序或降序对结果进行排序。
ORDER BY 关键字默认按升序排序。要按降序排序结果,使用 DESC 关键字。
示例按名称按字母顺序排序结果:
import mysql.connectormydb mysql.connector.connect(host"l…
WebSphere Liberty 8.5.5.9 (二)
encode and decode
Pre WebSphere Liberty 8.5.5.9
xor and AES
提取 D:\wlp-webProfile7-java8-8.5.5.9\wlp\lib 下必要加解密包
com.ibm.ws.crypto.certificateutil_1.0.12.jar
com.ibm.ws.crypto.passwordutil_1…