Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc,char *argv[])
- {
- if ( argc == 2)
- {
- if ( *argv[1] == 'i')
- {
- cout << "Input";
- }
- else if ( *argv[1] == 'o')
- {
- cout << "Output!";
- }
- else
- {
- cout << "Zły argument!";
- }
- }
- else if ( argc == 1)
- {
- cout << "Nie podałeś argumentu!";
- }
- else
- {
- cout << "Zła ilość argumentow!";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement