c++ - cin and cout in c programming -


my code written in c. however, converted code via changing header files c++ , program works fine. question is: want cin , cout work in c program. have included following libraries

    #include <stdio.h>     #include <stdlib.h>     #include <string.h>     #include <linux/types.h>     #include <asm/types.h>     #include <linux/socket.h>     #include <asm/socket.h>     #include <netinet/in.h>     #include <errno.h> 

and cin , cout work used iostream library in c++ not work in c. kindly advise me of library can use or if can convert code work in c programming.

cin , cout streams , not exist in c. can use printf() , scanf() in c.

in general running c code in c++ work c++ based on c going other way can problematic there lot of features in c++ don't exist in c.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -