I would like to use unmanaged C ++.
The following code:
#include"string.h" std::string nodename[100];
Gives me the following compilation error:
'std': not a class or namespace name
You are using the wrong header file. You must be #includeing <string>, not "string.h":
#include
<string>
"string.h"
std::string
<string.h>
char *
<cstring>
std
, , #include , .
- :
#include <string> int main(void) { std::string nodeName[100]; }
string, string.h.
string
string.h
Source: https://habr.com/ru/post/1718932/More articles:Обработка транзакций, охватывающих серверы баз данных - javaDebugging problems - debuggingPHP and MSSQL - advanced text field extraction - phpHow to add popup menu to NSToolbarItem? - objective-cHow do you press the menu button when you press the menu button? - objective-cTagging a text fragment using PHP - phpУдалить символы из строки в C - cИнтеграция Interwoven Teamsite в SharePoint для управления контентом - architecturestage.addChild and bundle - actionscript-3downcasting array in java (remove unchecked warning game) - javaAll Articles