Thursday, 15 September 2011

List of tuples c++ -


I am a newbie in C ++ and I would like to know whether it is possible to write this C # declaration in C ++ in Tupla, please

.

Public List & lt; Tupal & lt; Int, double> & Gt; [] Tab;

I do not know in my .h file and my. What is the announcement in CPP

Thanks for your help

  # Include & lt; List & gt; # Include & lt; Tupal & gt; Std :: List & lt; Std :: tuple & lt; Int, double> & Gt; Tab;  

& lt; Tupal & gt; A C ++ 11 is additional. I believe if you need two types in your tubal, you can type std :: pair in & lt; Utility & gt; .

.

No comments:

Post a Comment