Bonjour ,
Pouvez-vous me dire pourquoi le code ci-dessous génere une erreur error C3861: 'strtold'*: identificateur introuvable sur MS visual C++ 2010 Express ?
Merci.
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
16
17
18
19
20 // crt_strtold.c // Build with: cl /W4 /Tc crt_strtold.c // This program uses strtold to convert a // string to a long double-precision value. #include <stdlib.h> #include <stdio.h> int main( void ) { char *string; char *stopstring; long double x; string = "3.1415926535898This stopped it"; x = strtold(string, &stopstring); printf("string = %s\n", string); printf(" strtold = %.13Lf\n", x); printf(" Stopped scan at: %s\n\n", stopstring); }
Partager