Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
11
Добавлен:
09.06.2015
Размер:
772 б
Скачать
/*1*/ #include <stdlib.h>
/*2*/ #include <stdio.h>
/*3*/
/*4*/ void main( void )
/*5*/ {
/*6*/ char *string, *stopstring;
/*7*/ wchar_t *wstring, *wstopstring;
/*8*/ double x;
/*9*/ string = "3.1415926This stopped it";
/*10*/ wstring = L"3.1415926This stopped it";
/*11*/ x = strtod( string, &stopstring );
/*12*/ printf( "ANSI string = %s\n", string );
/*13*/ printf(" strtod = %f\n", x );
/*14*/ printf(" Stopped scan at: %s\n\n", stopstring );
/*15*/ x = wcstod( wstring, &wstopstring );
/*16*/ printf( "UNICODE string = %S\n", wstring );
/*17*/ printf(" wcstod = %f\n", x );
/*18*/ printf(" Stopped scan at: %S\n\n", wstopstring );
/*19*/
/*20*/ }
/*21*/
Соседние файлы в папке lecture11