<p>warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.</p> <p><br></p> <p><br></p> <p>이게 오류내용입니다..scanf가 아예 안먹네요 하나만 해봐도 안되구요...뭐 틀린곳이 있나요..?</p> <p><br></p> <div class="colorscripter-code" style="color:#010101;overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <table class="colorscripter-code-table" style="margin:0px;padding:0px;border:;background-color:#fafafa;" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:6px;border-right-color:#e5e5e5;border-right-width:2px;border-right-style:solid;"> <div style="margin:0px;padding:0px;text-align:right;color:#666666;line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="line-height:130%;">1</div> <div style="line-height:130%;">2</div> <div style="line-height:130%;">3</div> <div style="line-height:130%;">4</div> <div style="line-height:130%;">5</div> <div style="line-height:130%;">6</div> <div style="line-height:130%;">7</div> <div style="line-height:130%;">8</div> <div style="line-height:130%;">9</div> <div style="line-height:130%;">10</div> <div style="line-height:130%;">11</div> <div style="line-height:130%;">12</div> <div style="line-height:130%;">13</div> <div style="line-height:130%;">14</div> <div style="line-height:130%;">15</div> <div style="line-height:130%;">16</div> <div style="line-height:130%;">17</div> <div style="line-height:130%;">18</div> <div style="line-height:130%;">19</div> <div style="line-height:130%;">20</div> <div style="line-height:130%;">21</div> <div style="line-height:130%;">22</div> <div style="line-height:130%;">23</div> <div style="line-height:130%;">24</div> <div style="line-height:130%;">25</div> <div style="line-height:130%;">26</div> <div style="line-height:130%;">27</div></div></td> <td style="padding:6px 0px;"> <div style="margin:0px;padding:0px;color:#010101;line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:#0086b3;">#include</span> <span style="color:#010101;"></span><span style="color:#a71d5d;"><</span>stdio.h<span style="color:#010101;"></span><span style="color:#a71d5d;">></span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">main()</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;">{</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#066de2;">int</span> fir,sec,op;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"첫번째 계산할 값을 입력하세요 ==> \n"</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#066de2;">scanf</span>(<span style="color:#63a35c;">"%d"</span>,&fir);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"<1>덧셈 <2>뺄셈 <3>곱셈 <4>나눗셈 ==> \n"</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#066de2;">scanf</span>(<span style="color:#63a35c;">"%d"</span>,&op);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"두번째 계산할 값을 입력하세요 ==> \n"</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#066de2;">scanf</span>(<span style="color:#63a35c;">"%d"</span>,&sec);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#a71d5d;">switch</span>(op){</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#a71d5d;">case</span> <span style="color:#0099cc;">1</span>:</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"%d + %d = %d"</span>,fir,sec,fir<span style="color:#010101;"></span><span style="color:#a71d5d;">+</span>sec);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#a71d5d;">break</span>;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#a71d5d;">case</span> <span style="color:#0099cc;">2</span>:</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"%d - %d = %d"</span>,fir,sec,fir<span style="color:#010101;"></span><span style="color:#a71d5d;">-</span>sec);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#a71d5d;">break</span>;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#a71d5d;">case</span> <span style="color:#0099cc;">3</span>:</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"%d * %d = %d"</span>,fir,sec,fir<span style="color:#010101;"></span><span style="color:#a71d5d;">*</span>sec);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#a71d5d;">break</span>;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> <span style="color:#a71d5d;">case</span> <span style="color:#0099cc;">4</span>:</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> <span style="color:#066de2;">printf</span>(<span style="color:#63a35c;">"%d / %d = %d"</span>,fir,sec,fir<span style="color:#010101;"></span><span style="color:#a71d5d;">/</span>sec);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;background-color:#f0f0f0;"> }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">}</div></div> <div style="text-align:right;font-size:9px;font-style:italic;margin-top:-13px;margin-right:5px;"><a style="color:#e5e5e5;text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank">Colored by Color Scripter</a></div></td> <td style="padding:0px 2px 4px 0px;vertical-align:bottom;"><a style="color:#FFFFFF;text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank"><span style="padding:1px;color:#FFFFFF;font-size:9px;background-color:#e5e5e5;">cs</span></a></td></tr></tbody></table></div> <p><br></p>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.