반응형
로컬에서 commit 후 원격지에 push 하기 전 메시지 수정
git commit --amend
반응형
'Programming > Git' 카테고리의 다른 글
[Git] 리포지터리 생성 및 로컬 리포지토리 생성 (0) | 2021.04.14 |
---|---|
[Git] .gitignore (0) | 2021.04.14 |
git commit --amend
[Git] 리포지터리 생성 및 로컬 리포지토리 생성 (0) | 2021.04.14 |
---|---|
[Git] .gitignore (0) | 2021.04.14 |
public class Exam {
public static void main(String[] args) {
// 숫자를 넣어줄 2차원 배열 생성
int[][] array = new int[5][5];
// 1씩 증가하여 배열에 들어갈 정수 number 생성
int number = 0;
// 첫번째 for문은 행, 두번째 for문은 열을 담당한다.
// 두번째 for문이 x값과 동일하게 증가해야 계단 모양으로 값을 입력할 수 있다.
for (int x = 0; x < array.length; x++) {
for (int y = 0; y <= x; y++) {
number++;
array[x][y] = number;
}
}
// 출력하는 부분
for (int x = 0; x < array.length; x++) {
for (int y = 0; y < array.length; y++) {
System.out.printf("%3d",array[x][y]);
}
System.out.println();
}
}
}
K번째수 구하기 알고리즘 - 자바 (0) | 2021.04.18 |
---|---|
구구단 출력 알고리즘 - 코틀린 (0) | 2021.04.16 |
동명이인 찾기 알고리즘 - 파이썬 (0) | 2021.04.15 |
XAMPP에서 가상 호스트를 추가하려는데 해당 오류가 발생하여 아래와 <Directory></Directory> 를 추가하여 해결하였다.
Listen 포트번호
<VirtualHost *:포트번호>
DocumentRoot "디렉토리 경로"
</VirtualHost>
## 이 부분을 추가하니까 해결
<Directory "디렉토리 경로">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
## 예시
Listen 8020
<VirtualHost *:8020>
DocumentRoot "C:/project"
</VirtualHost>
<Directory "C:/project">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
[PHP] 접근 제어자 private (0) | 2021.06.01 |
---|---|
[PHP] 세션을 이용한 로그인 기능 구현 (0) | 2021.05.31 |
[PHP] 줄바꿈 처리 (0) | 2021.05.26 |
[PHP] 게시물 조회 (0) | 2021.05.24 |
[PHP] 데이터베이스 연동 (0) | 2021.05.24 |
포인터는 변수의 주소를 담는다.
#include <stdio>
main () {
int a = 20;
// *b는 포인트 변수
int *b;
// b는 a의 주소를 가리킴
b = &a;
// b가 가리키는 곳에 b가 가리키는 곳의 값 + 10을 넣어준다.
*b = *b + 10;
printf("%d, %d", a, b);
// 결과
30, 30
}