Home > Back-end >  C language with c header file
C language with c header file

Time:10-28

I have been writing the c language, are now beginning to change all the header files to similar & lt; Cstdio & gt; & lt; Cstrings & gt; Such, input/output and so on some basic statement in c language, also can affect I write code? Because rich some c + + library, recently in the race, convenient point problem, c/c + + mixed write code like this should be no problem!

CodePudding user response:

Your title is wrong, but from you mean that you should always think in c + + function in c, this is entirely possible, the game can choose # include & lt; Bits/stdc++. H> , known as the universal header file (the header files included in advance you can use all the header files), but no matter use what header files, using namespace STD. Be sure to add,

CodePudding user response:

reference 1st floor apkipa1 response:
your title is wrong, but from you mean that you should always think in c + + in c function, it is completely possible, the game can choose # include & lt; Bits/stdc++. H> , known as the universal header file (the header files included in advance you can use all the header files), but no matter use what header files, using namespace STD. Must add

Ha ha, because I have no contact with c + + things, thank you

CodePudding user response:

C and c + + mixed programming without any problems
In actual open, often need to put before c code in the c + + project to
  • Related