Can I use any other header file instead of <iostream> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I use any other header file instead of <iostream> ?

14th Jan 2017, 4:01 PM
adiba sharif
adiba sharif - avatar
4 Answers
+ 8
You can use many headers, depending on what you want and need... Examples: <string> - for strings <cmath> - for mathematics <iostream> - input output etc. If you want I can provide you with a link with all of the headers used in C++(C) Oh, I just saw that you asked for a header instead of <iostream>... Sorry, you can use <stdio.h> for scanf() and printf() for C, and I guess <fstream> for C++
14th Jan 2017, 6:19 PM
Filip
Filip - avatar
+ 5
stdio.h
23rd Apr 2017, 6:50 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 3
for I/O you can use <stdio.h>
14th Jan 2017, 4:59 PM
Kawaii
Kawaii - avatar
+ 1
Thai u very much
15th Jan 2017, 4:21 AM
adiba sharif
adiba sharif - avatar