Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Sabrina M.
Enthusiastic tutor with over 4 years of experience in Engineering/ Programming/ Biomedical
Tutor Satisfaction Guarantee
C++ Programming
TutorMe
Question:

Why are header files important when writing a program in C++?

Sabrina M.
Answer:

Header files are vital in a C++ program as they contain the required function definitions for running inbuilt functions. Header files can be thought of as a dictionary that contains the definitions for all the words. Imagine a scenario where I write an essay with many new and unknown words and present it to a user without providing them any access to a dictionary. Most likely the chances are that he/she would not be able to understand what is written as the meaning of the words remain unknown. Now, if i provide a dictionary, the entire essay will be clear with the meanings in hand as the user can now refer to the dictionary to understand the meanings of the words that are unknown. The header files work in much the same way. When the program comes across a function. it refers to the header files to extract the steps that are required to run the respective function. Omitting the header file is similar to not presenting a dictionary to understand the meaning of the words. This would cause the compiler to give out errors.

C Programming
TutorMe
Question:

What is the purpose of printf( ) ?

Sabrina M.
Answer:

printf( ) is an inbuilt function in C that is mainly used for standard output of character, string, integer, float, double etc. to the monitor. In order for it to work, the function must be written in a specific format with format tags that specify the type of data to be output. For example, %d is used to specify that the output will be a signed decimal integer and %s is used to specify a string output.

Anatomy
TutorMe
Question:

What is the structure of the heart valves?

Sabrina M.
Answer:

Heart valves are present at the junction between the atria and the ventricles. Between the right atrium and right ventricle is the tricuspid valve which contains three cusps. Between the left atrium and the left ventricle is the bicuspid or the mitral valve which contains two cusps. Both the valves are formed by the papillary muscles and attached to the walls of the heart via tendon like cords called chordae tendinae.

Send a message explaining your
needs and Sabrina will reply soon.
Contact Sabrina
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.