複数の値を読み込むために使用しようとしてscanf_s()
いますが、プログラムを実行するたびに
ラボ 2.exe の 0x592AD6AC (msvcr120d.dll) で未処理の例外: 0xC0000005: アクセス違反の書き込み場所 0x00000000。
ポップアップウィンドウで。これを修正するにはどうすればよいですか?
float inTemp;
char inUnit;
char outUnit;
printf("Please enter the starting temperature with its units and the units\nyou would like to convert to (i.e. 74.5 F C): ");
scanf_s("%f %c %c", &inTemp, &inUnit, &outUnit); //takes in all user input (NOT WORKING)