I've started using Dev C++ to practice the exercises at home. One of those was to show the classes I'm taking this semester, and print the screen as evidence that the code worked. So I made the code, and when I compiled/ran it, the display window appeared for less than a second before disappearing, not giving me time to "print screen" it. The code looks like this (note - the comments and a couple of other things are in spanish, but the rest is C, lol):
Quote:
#include <stdio.h>
/*Asignacion de INGE 3016 por my name*/
int main ()
{
printf("Programa de clases:\n\t");
printf("Algoritmos y Programacion (INGE 3016) LWV 8:35 - 9:25\n\t");
printf("Fisica I (FISI 3171) LMWV 9:40 - 10:30\n\t");
printf("Engineering Mechanics (INGE 3035) LWV 11:50 - 12:40\n\t");
printf("Fundamentos del Volleyball (EDFI 3225) LW 12:55 - 1:45\n\t");
printf("Calculo II (MATE 3032) LWJV 2:00 - 3:00\n\n");
printf("Clases a tomar el proximo semestre:\n\t");
printf("Calculo III (MATE 3063)\n\t");
printf("Electrical System Analysis I (INEL 3105)\n\t");
printf("Engineering Materials (INGE 4001)\n\t");
printf("Fisica II (FISI 3172)\n\t");
printf("Lab. Fisica I (FISI 3173)");
}
|
What could be wrong? How can I make the display window that "prints" the output stay? Thanks in advanced for the help...