Pages
Home
Eaglesoft Download
About us
Monday, May 24, 2021
get current date of system in c++ cpp
#include
<iostream>
#include
<ctime>
using
namespace
std
;
int
main
()
{
time_t
now
=
time
(
0
);
cout
<<
"now is :"
<<
now
<<
endl
;
char
*
date_time
=
ctime
(&
now
);
cout
<<
date_time
;
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Most Common Coding Mistakes by Beginners
Most Common Coding Mistakes by Beginners Switching Between Multiple Languages No Roadmap Lone Wolf Programming Not Maintaining Notes Tutor...
Difference between getch() and getche() function | getch() vs getche() w...
Find IP address of any website by using python with Eaglesoft
import socket as s my_hostname=s.gethostname() print ( "Your host name is:" + my_hostname) my_ip=s.gethostbyname(my_hostname) ...
No comments:
Post a Comment