Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I ran this program on Visual 2015, and it gives me errors. week1Lab Microsoft Visual Studio Quick Launch (Ctri-O Edit View Project Build Debug Team

image text in transcribedI ran this program on Visual 2015, and it gives me errors.

week1Lab Microsoft Visual Studio Quick Launch (Ctri-O Edit View Project Build Debug Team IncrediBuild Tools Test Analyze Window Help Local Windows Debugger, I "z *A > Tabular Madel Explorer week! Lab Global Scope main() eSearch 1 week1Lab.cpp Defines the entry point for the console application Models E#include nclude #include "stdafx.h" 9 Eint main 12 13 14 tine t tiner; char buffer[26], ch struct t tm info; tine(&tiner); tn info loca!tine(Atiner); printf( Enter your option:nit 18 19 26 "D: Display date and tinent "U: Unblock the queueinlt" "P: Print the current ststus of processnt" T: Print the process time and exitin") scanf("%c", ich (ch) &ch); Tabuer Model 24 26 28 Solution Explorer Tearm Explorer Class View strftine(buffer, 26, "An-M-XYY: %S", tn info); 'D.; puts (buffer); break; case main VCCodeFunction break; B C+ Name File Error List Entire Solution *3Errors 0Wernings 0 0 Messages Build Intel Sense Search Error List Line Suppression Stste File week1Lab.cpp 16 week1Lab.cepp 16 Code Description C2006 'tm tm info: redefinition week1Lab False 3 C4996 localtime': This functian or variable may he unsafe. Consider using lacaltime s instead. To disable deprecation, use week1Lab CRT SECURE NO WARNINGS. See online help for details scanf: This function or variable may be unsafe. Consider using scanfs instead. To disable deprecation, use False week1Lab week1Lab.cpp RT_SECURE_NO WARNINGS. See online help for

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions