He or she might be asking for cout/cin in place of printf/scanf? But like newb said if you really want to use the original c functions just use them directly in your C++ prog.
Nope. What you show is C plus there is no <stdio> include. I believe you meant <cstdio>.
To the OP:
The functions you mention are replaced by operator<< and operator>> depending upon whether you are insrtingor extracting data from a stream.
The functions you mention can be used only with the built-on types of C whereas the operator<< and operator>> can be written by you to work woth any type of object.
Nope. What you show is C plus there is no <stdio> include. I believe you meant <cstdio>.
To the OP:
The functions you mention are replaced by operator<< and operator>> depending upon whether you are insrtingor extracting data from a stream.
The functions you mention can be used only with the built-on types of C whereas the operator<< and operator>> can be written by you to work woth any type of object.
Well if you would be so kind as to tell me what those functions are exactly?
Like printf("Hello world");
How do I write it with the << >> operators?
Comment