24-2 SISS
-
[SISS/웹 스터디] 2학기 2주차 스터디 - PHP24-2 SISS/웹 2024. 9. 14. 21:30
2주차 09/09 ~ 09/15 [PHP] 17 ~ 22 17.1. 반복문과 조건문의 활용 1디렉토리에서 파일 읽기scandir → 파일의 이름이 배열에 담아 반환// index.php 17.2. 반복문과 조건문의 활용 2count()리스트의 원소의 개수 반환data의 파일 개수에 따라 반복 횟수 달라짐$list[$i]\n"; $i = $i + 1; }?> 17.3. 반복문과 조건문의 활용 3‘.’, ‘..’ 제외한 목록으로 변경$list[$i]\n"; } } $i = $i + 1; }?> 18. 함수 만들기 예고사용자 정의 함수 → 코드를 이해하기 쉬워진다 19.1. 함수의 형식 1/3기본 형태 예시 코드 1// 예시 코드 1기초"); print("문장 2"); } basic(); basi..
-
[SISS/C언어 스터디] 2학기 2주차 스터디24-2 SISS/C언어 2024. 9. 14. 21:30
자율 2문제를 풀어서 제출하면 됩니다.언어는 C언어만 가능합니다.레벨 제한사항: Silver 5 이상 12865동적 프로그래밍 → 배낭에 넣을 수 있는 물건의 최대 가치 합을 출력참고 링크 → https://cotak.tistory.com/38// 12865.c#include // 물건 개수, 최대 무게int n, k;// 각갹의 무게 및 가치int w[101], v[101];// dp 테이블int dp[101][100001];int main(){ int i, j; // 물건 개수, 최대 무게 입력 scanf("%d %d", &n, &k); // 각각의 물건 입력 for (i = 1; i dp[i - 1][j - w[i]] + v[i] ? dp[i - 1][j] : dp[i..
-
[SISS/웹해킹 스터디] 2학기 2, 3주차 스터디24-2 SISS/웹해킹 2024. 9. 14. 19:30
2주차 09/09 ~ 09/15 [드림핵] Cookie & Session 쿠키클라이언트의 IP 주소, User-Agent는 매번 변경될 수 있음HTTP 프로토콜은 Connectionless, Stateless함Connectionless → 한 요청 당 하나의 응답을 한 후 연결을 종료Stateless → 통신 종료 후 상태 정보를 저장하지 않음→ 웹 서버는 클라이언트를 기억할 수 없으므로 쿠키를 이용 쿠키클라이언트의 정보(인증 정보 포함)와 요청의 내용을 구체화하는 데이터Key + Value이용(클라이언트) 서버에 요청 전송 시 쿠키를 함께 전송(서버) 쿠키를 통해 클라이언트 구분용도정보 기록 → 클라이언트 정보 저장 (팝업 다시 보지 않기 등)상태 정보 → 로그인 상태 및 이용자 구별쿠키 변조변조된 쿠..
-
[SISS/웹해킹 스터디] 2학기 1주차 스터디24-2 SISS/웹해킹 2024. 9. 8. 23:55
1주차 09/02 ~ 09/08 [드림핵] Background - Web * 편집 및 사진 파일 문제 9/9(월) 중으로 수정 예정→ 수정 완료 웹인터넷 기반 서비스 → HTTP를 이용하여 정보 공유정보정보 제공하는 → 웹 서버정보 제공받는 → 웹 클라이언트웹 보안다양한 분야에서 이용되는 서비스가 됨 → 웹에서 처리하는 정보 자산이 많아지며 안전한 보관 및 처리의 중요성 증가서비스 구조프론트엔드 → 이용자의 요청을 받음웹 리소스로 구성백엔드 → 요청을 처리함 웹 리소스웹의 정보 자산구성URI(Uniform Resource Identifier) → 웹 리소스의 식별자(이름) → (예시) dreamhack.ioURL은 “식별자+위치” → http://dreamhack.io/index.htmlHTML(Hype..
-
[SISS/웹 스터디] 2학기 1주차 스터디 - PHP24-2 SISS/웹 2024. 9. 8. 23:50
1주차 09/02 ~ 09/08 [PHP] 01 ~ 16[생활코딩] PHP→ https://www.youtube.com/playlist?list=PLuHgQVnccGMAMMNByX8Bf1BkVrShBhj1I * 편집 및 사진 파일 문제 9/9(월) 중으로 수정 예정→ 수정 완료 1. 수업소개웹의 등장(1990)으로 정보의 확산 시작HTML 이용에의 불만 발생사람의 손으로 하나하나 코드를 치는 것에 대한 불만 (웹페이지의 통합적 관리 + 양방향 정보 생산)을 위한 움직임PHP, JSP, ASP, Django, Ruby on Rails, Node.js 등 개발PHP웹 페이지 자동 생성(콘텐츠를 이용하여 자동으로 HTML을 만듦) 2. 수업의 목적php의 등장 배경 → 모든 페이지를 수동적으로 수정할 경우 많..
-
[SISS/C언어 스터디] 2학기 1주차 스터디24-2 SISS/C언어 2024. 9. 8. 23:35
자율 2문제를 풀어서 제출하면 됩니다.언어는 C언어만 가능합니다.레벨 제한사항: Silver 5 이상 10845자료 구조 (큐) → 큐의 기본 내용 실습하기// 10845.c#include #include int main(){ // 명령 수(n), 큐, 큐의 앞 뒤 인덱스 int n; int queue[10000]; int front = 0; int back = 0; // 명령 수 입력 scanf("%d", &n); // n번 동안 for (int i = 0; i 15649백트래킹 → N까지의 자연수 중 중복 없이 M개를 고를 수열 찾기// 15649.c#include // 자연수의 개수(n), 수열의 길이(m)int n, m;// 수열의 길이 m이 8..