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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -