C언어는 예전부터 알고 있던 내용이라
몰랐던 내용이나 까먹을뻔 한 내용을 위주로 정리할 예정이다.
Visual Studio
- .sln을 누르면 Visual Studio로 켜짐
choco 설치
- powershell 관리자 권한으로 실행
- https://chocolatey.org/install 참고
-- Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
-- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
https://evandde.github.io/vscode-cpp/ 참고
mingw 설치
- cmd 관리자 권한으로 실행
- choco install mingw -y
-- gcc --version
-- gdb --version
터미널에서 컴파일
- gcc vstest.c -o vstest
-- gcc -o vstest vstest.c
-- vstest.ext 생성
-- -o : 이름 변경하여 저장
- ./vstest.exe
-- ./ : 실행 명령어
- gcc vstest.c -c vstest
-- vstest.o 생성
-- -c : 목적파일 만들기
포인터 정리
https://coding-factory.tistory.com/636
sln(solution)
- 여러개의 project를 담을 수 있다.
proj(project)
- 소스 파일(c파일 등)을 담고 있다.