Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main (void)
{
   struct tm t;  
   t.tm_yday = 12;  
   t.tm_mon = 1;    
   t.tm_year = 1988;
   printf( "Nous sommes le : %s", ctime( &t ) );
   return (EXIT_SUCCESS);
}
erreur: cannot convert ‘tm*’ to ‘const time_t*’ for argument ‘1’ to ‘char* ctime(const time_t*)’

Pourquoi ca ne marche pas.