Строка объявляется без <string.h>
От: Аноним  
Дата: 07.10.04 15:51
Оценка:
Это содержимое моего stdafx.h файла:


// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once




#include <iostream>
#include <tchar.h>
using namespace std;

// TODO: reference additional headers your program requires here


А это cpp файл:


// pt4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
string user_name;

return 0;
}

Компилируется без ошибок.
Вопрос: почему компилятор (.NET) не ругается на отсуствие заголовочного файла <string.h>?
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.