fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. string czas(){
  5. char bufor[ 80 ];
  6. time_t datownik;
  7. time(&datownik );
  8. tm wypisz=*localtime(&datownik );
  9. setlocale(LC_ALL,"Polish");
  10. strftime(bufor,sizeof(bufor),"Dzis jest: %#c",&wypisz);
  11. return bufor;
  12. }
  13.  
  14. int main() {
  15. cout << czas() << endl;
  16. // your code goes here
  17. return 0;
  18. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
Dzis jest: Mon Apr  4 22:08:38 2016