분류 전체보기
-
[Algorithm] - 선형 탐색(Linear Search)Data Structure, Algorithm 2016. 3. 5. 12:50
#include using std::cout; using std::endl; int LinearSearch(int arr[], int len, int target) { for (int i = 0; i < len; i++) { if (target == arr[i]) { return i; } } return -1; } int main(void) { int arr[] = { 3, 5, 2, 4, 9 }; int index = LinearSearch(arr, sizeof(arr) ⁄ sizeof(arr[0]), 4); if (index == -1) { cout
-
[Java Database Connectivity] - DBMS 연결하기Java/Java SE 2015. 12. 18. 16:48
OracleClassName - oracle.jdbc.driver.OracleDriverUrl - jdbc:oracle:thin:@localhost:port:database(sid) MySQLClassName - com.my.jdbc.DriverUrl - jdbc:mysql:localhost:port/database SQL ServerClassName - Version 2000 ClassName - com.microsoft.jdbc.sqlserver.SQLServerDriver Url - jdbc:microsoft.sqlserver:localhost:port;databaseName=database- Version 2005 이상 ClassName - com.microsoft.sqlserver.jdbc.SQ..