C语言 命令行接收参数

#include <stdio.h>

int main(int argc, char* argv[]) {
    int i;
    while (argc-- > 0) {
        printf("%s\n", *argv++);
    }
    return 0;
}

posted on 2023-12-09 15:20  王景迁  阅读(7)  评论(0编辑  收藏  举报

导航