Week 0 - 1 PDF
Week 0 - 1 PDF
onboarding
In these sessions, we'll cover everything you need to get started
with C programming. We'll introduce you to essential tools like
Visual Studio Code (VSCode) and a C compiler, and guide you through
setting up your development environment.
UNDERSTANDING TOOLS:
- Compiler:
Download the installer from the provided link. Double click the
downloaded file to initialize the installation process. Follow the
on screen instructions to complete installation.
It may not look exactly the same, but that’s alright. Look at the
icons from the left sidebar, and find the Extensions Tab. You may
also press Ctrl+Shift+X.
Search for your desired Extension in the search bar, and click on
the “install” button for extensions you wish to install.
Download the installer from the provided link. Run it and follow the
installation wizard. During installation, select "Architecture" (32-
bit or 64-bit) and "Threads" (posix or win32). Make sure to copy the
path it’s installing to. Then, add the `bin` directory of MinGW to
your system's PATH environment variable. I will configure this for
you.
WRITING YOUR FIRST PROGRAM:
Open VSCode and create a new file by clicking on "File" > "New
File".
helloworld.c
#include<stdio.h>
int main() {
printf("Hello world!\n”);
return 0;
}
Run the program using the Code Runner extension I have already
installed for you. To do so, right click anywhere on the editor and
click on “Run Code”, or press Ctrl+Alt+N.
helloworld.c
Hello world!