COS 126

Compiling from the LCC-Win32 IDE
Programming Assignment 0

Due: Thursday, 11:59pm

These instructions are designed for students using LCC-Win32 which runs the C IDE on Windows machines. Don't be afraid to ask for help.

Your assignment is to create, compile, and run the following extension of everybody's first C program.

#include <stdio.h>

int main(void) {
    int num;
    printf("Hello world! Give me an integer:\n");
    scanf("%d", &num);
    printf("Thanks! I've always been fond of %d.\n", num);
    return 0;
}

Completing this assignment involves a number of steps that are described below.

Editing the program

Now you are ready to write your first program.

Compiling the program

Running the program




Questions? Email Sharam Fouladgar-Mercer.

Most of this material was provided from the page created by Robert Sedgewick.