Я всегда получаю сообщение об ошибке
Код: Выделить всё
Error C4996: 'strtok': This function or variable may be unsafe.
Consider using strtok_s instead.
To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
Код: Выделить всё
#include "stdafx.h"
#define _CRT_SECURE_NO_WARNINGS
#include
#include
using namespace std;
int main() {
char the_string[81], *p;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/21044177/why-does-the-compiler-still-warn-me-about-unsafe-strtok-even-after-i-define-crt[/url]
Мобильная версия