Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- int _tmain(int argc, _TCHAR* argv[])
- {
- setlocale(LC_ALL, "Ukrainian");
- int i, result;
- float fp;
- char c, s[80];
- wchar_t wc, ws[80];
- result = scanf_s("%d %f %c %C %s %S", &i, &fp, &c, 1,
- &wc, 1, s, _countof(s), ws, _countof(ws));
- printf("The number of fields input is %d\n", result);
- printf("The contents are: %d %f %c %C %s %S\n", i, fp, c, wc, s, ws);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement