본문 바로가기

dev36

[C] 2차원 배열 포인터 변수에 괄호가 있으면 2차원 배열을 가리키는 포인터   포인터 변수에 괄호가 없으면 포인터를 담을수 있는 배열이다. 2024. 5. 26.
[C] prototype - main 함수전에 prototype 선언하기 main 함수에서 호출하는 함수가 main 함수 아래에선언되어 있어서 에러가 발생    main 함수위에 cube함수의 선언부만선언해주면 정상적으로cube 함수를 호출할수 있다. 2024. 5. 26.
[C] printf 사용법 https://en.wikipedia.org/wiki/Printf printf - WikipediaFrom Wikipedia, the free encyclopedia C function to format and output text An example of the printf function printf is a C standard library function that formats text and writes it to standard output. The name, printf is short for print formatted where prien.wikipedia.org 2024. 5. 25.
[C] IDE - ubuntu에 codeblock 설치하기 codeblock 홈페이지로 이동후 Downloads 클릭     Download the binary release클릭     아래의 PPA 링크 클릭    Release Builds 클릭   sudo add-apt-repository ppa:codeblocks-devs/rleasesudo apt-get updatesudo apt-get install codeblocks codeblocks-contrib명령어를 한줄씩 입력    GNU GCC Compiler를 클릭   IDE 시작 화면이 뜨면 설치 완료  아래의 영상을 참고 https://www.youtube.com/watch?v=KTrQyyVmHDc 2024. 5. 25.
[build-tool] java - jar 파일 실행하기 https://stackoverflow.com/questions/9689793/cant-execute-jar-file-no-main-manifest-attribute Can't execute jar- file: "no main manifest attribute"I have installed an application and when I try to run it (it's an executable jar) nothing happens. When I run it from the command line with: java -jar "app.jar" I get the following mess...stackoverflow.com  https://ioflood.com/blog/no-main-manifest-att.. 2024. 5. 24.
[build-tool] gradle 및 maven 으로 jar 파일 생성하기 https://www.youtube.com/watch?v=tKdFrVzDLV4    https://www.youtube.com/watch?v=870XIYMrlSo      https://www.youtube.com/watch?v=uNOcwMuVWP4 2024. 5. 24.
[build-tool] gradle - Command https://docs.gradle.org/8.7/userguide/command_line_interface.html Command-Line Interface ReferenceGradle provides several built-in tasks which show particular details of your build. This can be useful for understanding your build’s structure and dependencies, as well as debugging problems. Running the projects task gives you a list of the subprojectsdocs.gradle.org 2024. 5. 24.
[Java] 비트 연산자 & | ^ ~ > 비트 연산자의 종류는 위와 같다.   | (or 연산자): 한쪽 비트의 값이 1이면 1, 아니면 0  &(And 연산자): 양쪽 비트의 값이 1이면 1, 아니면 0 ^ (XOR 연산자): 두 연산자의 값이 다를때만 1, 아니면 0 ~(비트 전환 연산자): 피연산자의 비트를 0이면 1로, 1이면 0을 바꾼다. > (쉬프트 연산자): 피연산자의 각 자리를 오른쪽 또는 왼쪽으로 이동 시킨다.    정수로 7, 11 이라는 숫자가 있을때  8비트로 각각 표현해주면7 -> 0000011111 -> 00001011이렇게 된다.    | (or 연산자 사용시) int test = 7 | 11;같은 비트 자리에 하나라도 1이면 1이므로    00001111즉, 15가된다.        &(And 연산.. 2024. 5. 18.
[java] 참조변수 - 1 오늘의 code   요즘 정처기를 준비하면서 자바에서 중요하지만 인지하고 있지않으면 잊어버리기 쉬운개념들을 정리해 보려고 한다.      Case_1 객체를 생성하고 Case_1객체의 메서드를 호출해서Case_1객체의 a라는 변수의 값을 변경하는 로직이다.   c에 있는 Case_1 타입 객체의 주소값을c2에 대입하였으므로,결과적으로는c2와 c 가 가리키는 객체는같은 객체가 된다.    주소값을 출력해보면은  주소값이 같은 것을 확인할수 있다. 참조변수 c 혹은 c2를 사용해서 호출하는 메서드는같은 객체에 속해 있는 메서드를 호출하게 된다. 2024. 5. 18.