answersLogoWhite

0

#include <iostream>

#include <ctime>

using namespace std;

int main()

{

time_t rawtime;

struct TM *timeinfo;

while(true)

{

time(&rawtime);

timeinfo = localtime(&rawtime);

cout << "Current local time & date: " << asctime(timeinfo) << endl;

system("cls");

}

return 0;

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Program to get a system time using c plus plus?

time in hours second minute


What are the x factor competition questions?

The questions change all the time. Watch the current program to find out the competition question and details.


What are the differences of turbo c plus plus and mother program?

No idea what mother program is, but I assume you mean how does Turbo C++ compare to the ISO C++ standard. The last version of Turbo C++ came out in 2006 and was compliant with the standard at that time. However, Embarcadero (the current owners) no longer support Turbo C++, thus it no longer complies with the current ISO standard.


When is it time to adjust your FITT formula levels?

When your body adjusts to your current exercise program.


What Itv program is England on to-night?

I don't have access to real-time data, including TV schedules. To find out what ITV program is airing tonight in England, I recommend checking the ITV website or a TV guide for the most current information.


What is debugging in c plus plus?

Debugging is a way of running the program to locate any errors that may arise at run-time.


How do you find execution time of a program in java?

You can have the below line as the first and last line of the program and find out the difference in time taken to calculate the execution time. This will print the system time in the console which can be used to calculate execution time.System.currentTimeMillis();


Do Goodyear tire stores have a rewards program for frequent buyers?

Goodyear tire stores have a rewards program called Goodyear Rewards Plus that is for sellers, not buyers. There is not a frequent buyers program at this time.


Can virtual program with all physics and chemical formulas help to create time machine?

No. Not with the current understanding of science.


How do you put a time limit on a certain PC account?

to put a time limet on a certain account you need this program i dont know the name of the program but u can find it


Where can one go to find the current time in New York?

One can find the current time in the state of New York through a variety of phone apps, as well as from visiting websites run by companies such as World Time Server.


What to put when application ask if you are currently enrolled in any course or program of study?

When an application asks if you are currently enrolled in any course or program of study, you should provide accurate information about your current educational status. If you are enrolled in a course or program, list the name of the institution, the program, and your current status (e.g., full-time or part-time). If you are not currently enrolled, simply indicate that you are not enrolled in any courses or programs. Be honest and clear in your response.