I know it has something to do with how included my files. Here is the exact error that i get.
c:\program files\microsoft visual studio\myprojects\areacalc\functions.c(1) : warning C4182: #include nesting level is 363 deep; possible infinite recursion
c:\program files\microsoft visual studio\myprojects\areacalc\functions.c(1) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
here is how i have it. I have a main.c with the main function in it. I have these included:
#include "functions.c"
#include "header.h"
#include <stdio.h>
#include <stdlib.h>
and in functions.c i have these:
#include "main.c"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "header.h"
can somebody plz explain this to me in easy terms, cuz i am sort of a noob. It is homework for me. Ive already made the program and it works, when i have it in one file, but my instructure want a header file, a function.c file, and a main.c file, and we havent learned that yet. I am just trying to get ahead on my homework, and i ran into this.