You cannot replace brackets. If you are using Visual C ++, you can use a variable macro to accomplish what you want:
#define scanf( format, ... ) fscanf( inf, format, __VA_ARGS__ )
Other compilers may have a similar object, but I am not familiar with them.
source
share