using classes, struct, int, char or the like in other .cpp or h files

im having trouble using classes, structures, ints, and char in files that need the stuff in them. I have tried using the include <example.h> in the .cpp file I want the stuff in. I have also made sure when I use the include<example.h> that I have defined the header file like
ifndef EXAMPLE_H
define EXAMPLE_H

but the file that has the include <example.h> says the header file does not exist. I have also tried include "example.h" but I get the same thing. so I was wondering if their is another way to get the values or a way to connect 2 .cpp files so that they can exchange variable and class values or data?

P.S. I am also getting the file does not exist error when I put the include<example.h> in the file VS tells me to put include's in!

Any help, suggestions, or notes of mistakes on my part would be greatly appretiated.
Last edited on
Did you make a project? How does the make know about your file?
#include "example.h"

Use quotes for files in the same directory.
Topic archived. No new replies allowed.