Dynamism std:string



  • I need a dynamic set of lines. I'm building it in this way:

    string *keySeq = new string[];
    int strCounter = 0;
    

    The code goes on to this line:

    keySeq[strCounter] = "";
    

    Windows DS initiated a stop point at FruitFly.exe.

    This may be caused by the damage to the pile and indicates a mistake. FruitFly.exe or one of his loaded DLL.

    What's wrong? MS Visual Studio 2010



  • std::vector<std::string> v = {"Hello", "World"};
    

    Support for initialization of non-aggregate types through syntaxis with figure boxes was added only with the output of the standard C++11 (sighs) http://gcc.gnu.org/projects/cxx0x.html and https://msdn.microsoft.com/en-us/library/hh567368.aspx#corelanguagetable )




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2