https://github.com/simpsonresearch/cstarterfiles
Starter files and make file for C programs
https://github.com/simpsonresearch/cstarterfiles
c makefile programming
Last synced: 4 months ago
JSON representation
Starter files and make file for C programs
- Host: GitHub
- URL: https://github.com/simpsonresearch/cstarterfiles
- Owner: simpsonresearch
- License: mit
- Created: 2023-09-12T00:09:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T20:32:17.000Z (over 2 years ago)
- Last Synced: 2025-08-11T15:30:01.834Z (4 months ago)
- Topics: c, makefile, programming
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quick Info
### Clone this folder
Go into your terminal and type:
`
git clone https://github.com/Simpson-Computer-Technologies-Research/cstarterfiles.git
`
To clone this folder onto your desktop, type `cd Desktop` before the command above.
### Where to put files read by main.c
Put all of the files read by main.c (ex: file.txt) in the same area as the Makefile
Example Directory:
```
/src
/build
Makefile
file.txt
```
```c
// Example main.c
#include
int main()
{
fopen("file.txt", "r");
return 0;
}
```
# Installing C
### Windows
1. Install MinGW
2. Restart your computer
3. Add MinGW to your PATH if it's not there already. Check by typing "gcc -v" in your terminal.
4. Go into the terminal for this directory and type "make"
5. The program will run.
### Mac
1. Install Xcode from the App Store.
2. Restart your computer
4. Go into the terminal for this directory and type "make"
5. The program will run.
### If using VSCode
1. Install the required C/C++ Extensions
2. Open this directory in vscode
3. Open the terminal in vscode
4. Type "make" into the terminal
5. The program will run.
#### Made by tristan