How to make a vector that will contain pointers? I tried this, but could not.
vector<*struct_gene> vector_child_genes;
full code if anyone is interested http://codepad.org/50qrNZvd
vector<struct_gene *> vector_child_genes;
Try something like this:
vector<struct_gene*> vector_child_genes;
You specify the type in the angle brackets of the vector, and pointer types are indicated by the postfix asterisk, not the asterisk.
. . * ( , ), .
Source: https://habr.com/ru/post/1754623/More articles:Is it possible to insert a large amount of data using linq-to-sql? - c #Error loading SSIS package - sql-serverjQuery siblings and $ (this) blur and focus - jqueryКак я могу обрезать текст и добавлять многоточие, когда он длиннее желаемого? - javascriptSearch Options - language-agnosticWhat is the “best” way to display drives in Powershell? - powershellMathematica inner loop computation optimization - optimizationVisual Studio 2010 is my DLL! - Links to third-party DLLs missing after assembly - .netHow to associate an inherited nested property value with my virtual machine? - wpfGetting an inexhaustible string literal. I can do it, but I can’t understand why - jsonAll Articles