I am new to programming and am trying to create a program that takes two numbers from the command line (wind speed and outside temperature), runs them through a few calculations and spits out a number (wind chill). I would like to take input in this sort of style:
I must be able to use negative numbers for the temperature variable.Code:./wind_chill -w 12 -t -7
So, how would one take the "-w 12 -t -7" part and define them as variables for further use?
Bookmarks