+ 1

What is the combined c++ and c library name

like when you want to have both running at the same time.c and c++

23rd Sep 2020, 4:26 AM
Quinton Langat
Quinton Langat - avatar
6 odpowiedzi
+ 5
I didn't understood your question . Post Question in other way . May be u asking common headerfile which you can use in cpp and cpp there are many headerfile which u can include in c and cpp both like graphics.h, conio.h,string.h ....... And soo many . Write your question with brief discription.
23rd Sep 2020, 4:37 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
You can use both c and cpp in one editor you need to include both headerfile for example simple helloo progrm and use #include <stdio.h> #include<iostream> int main(int argc, char *argv[]) { std::cout<<"hello"; printf("hello"); } If u using cpp function then you have to include iostream if u using c function then include c headerfile. But condition is that u must save your file with cpp extension.
23rd Sep 2020, 4:47 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
There's a header file "bits/stdc++.h" in C++, which includes all standard header files in C++ & C. So that, you don't have to worry about including C/C++ header files. #include<bits/stdc++.h> int main() { using std::cout; using std::cin; // Do something... return 0; } http://gcc.gnu.org/onlinedocs/gcc-4.8.0/libstdc++/api/a01541_source.html Be reminded that, using "bits/stdc++.h" may slow down program execution. Hence, it's better to include the header file you needed instead of including all header files.
23rd Sep 2020, 8:55 AM
Vinay_GB
Vinay_GB - avatar
+ 1
assuming i want both C and C++ to run at the same time without having to type in the compiler the headers.what is the combined header file i can used to call up on both the languages
23rd Sep 2020, 4:42 AM
Quinton Langat
Quinton Langat - avatar
+ 1
in combined.the library is C++(C standard library) in the invocation process is where am confused. cause there is CSTDLIB CCTYPE etc
23rd Sep 2020, 4:53 AM
Quinton Langat
Quinton Langat - avatar
+ 1
Thank you guyz.
23rd Sep 2020, 9:20 AM
Quinton Langat
Quinton Langat - avatar