Converting character string to integer

前端 未结 2 1050
醉话见心
醉话见心 2021-01-24 02:38

This is a follow up to my get_command_argument() question.

I\'m reading a command line argument (arg) into a Fortran program. Then I want to store the value

2条回答
  •  孤城傲影
    2021-01-24 03:08

    This isn't an answer but an extended comment:

    That's a bizarre way to loop over the command line arguments. What's wrong with the straightforward and obvious

    do i = 1, command_argument_count()
       call get_command_argument(i,arg)
       ! do funky stuff    
    end do
    

提交回复
热议问题