Question about Header files.

I'm new to C++ (newish, I've played around a little) and I have minor to moderate experience with Java (a couple of introductory college courses). So, that's just to say you don't have to feel like I'm one who needs a great deal of very in depth explanations.

I just have a question out of curiosity...

What are header files written in? For example, when I include the file 'iostream' into my code, I am including programming already written that includes things like 'cout' and all that good stuff, right?

So are files like that just c++ source code, or are they assembly language?

What makes me ask this is that I wondered: "If 'iostream' is only c++ source code, doesn't that mean a programmer could effectively add what ever kind of keywords he wanted, as long as he was able to code the proper header files?"

Sorry if I didn't explain well enough, I hope you all can get what I'm trying to ask.
hi everyone im iasmael from Phil. need your help hence my instructor in c++ gave a case study but its to confused for me...........

i hope some one read this......

this is the output

Enter your age: 18
Are you a Filipino citizen ? (y/n): Y

You are eligible to vote


Hi every one im ismael balana from Phil..
need your help..

this is the problem.

A progra to determine the users input indicates that they are either no more than 12 years old or at least 65,the program outputs that their admission is free. otherwise, the program outputs that they have to pay


here the output

Enter your age: 12
Admission is free


Enter your age :13
You have to pay

Enter your age:65

Admission is free


hope you understand this output
i need our help....
anyone???
@tehDickman

Header files are regular text files just like any other C++ source code file. That said, standard header files (the ones like <cstdio> and <iostream>) aren't required to actually exist; the compiler may just act as if they do.

But again, every C++ STL header (<iostream> and <vector> etc) I've seen (which isn't a whole lot, but most are from major players: MS, GCC, Borland, Sun, etc) do keep them as a regular text file on disk.


@takemewithyou

It is rude to hijack someone else's thread with unrelated questions. Get your own thread, and when you do, post the code you've written to try to answer the assignment, and we will help you.
Topic archived. No new replies allowed.