#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(int argc, char** argv)
{
    if(argc<2)
    {
        printf("error usage!\n");
        exit(1);
    }
    int a = atoi(argv[1]);
    printf("you've input %s\n, after atoi...",argv[1]);
    printf("you get %d\n",a);
    return 0;
}

 

相关文章:

  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
相关资源
相似解决方案