Well, that might sound silly, but I couldn't figure out how to pass int / char to this system call
that's how i would like it to work
system ("cal %d %d", month, year);
I expect this to give me the following command on terminal " cal 3 2009"
and the terminal will show me the March 2009 calendar.
But the compiler complains that it has too many arguments
any ideas? I need to make this method system ("cal ")return me a dynamic calendar.
Notes: calaccept the argumentcal month year
source
share