so I am trying to write a code to print to screen a diagonal line using MACROs
and keep getting errors with the signs listed above. can anyone help figure out what is wrong?
Thanks that worked but my first printf and scanf keeps showing errors. Can you tell whats wrong?
my error is:
Severity Code Description Project File Line Suppression State
Error 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. e2macro c:\users\owner\documents\visual studio 2015\projects\e2macros\e1a2e2_kb.cpp 20
The error is a good one, use the scanf_s function like it says :+)
scanf functions returns a value, you should make use of that to see that it worked. A switch is handy for taking care of the result, when there are multiple variables to be scanned.
In the future could we ask you to ensure that code tags are used? I know the button on the create a new topic don't always work, but you can go back afterwards and put them in: