Questions tagged as 'template'

1
answer

How does a template work in C ++?

I am in a computer engineering and this semester we have a subject called data structure (we give it in C ++). A few weeks ago they presented us the first practice on TADs and everything quite simple until in practice you are asked to impleme...
asked by 09.03.2017 / 07:14
2
answers

Error compiling a template

I was asked to put together a project to make a list of nodes with double links, these nodes must be able to accept any type of format ( char , int , float ) for this I use the templates. However, there is an error that I do...
asked by 14.08.2018 / 06:31
2
answers

Show only the first element of a list in templates

I have a table in which I show an object of sight, these are vaccines, what I want is that, for example, if they already put that vaccine, I will not get the name of the vaccine, only the dates in those who got the vaccines. template.html &...
asked by 09.11.2016 / 20:01
2
answers

Error; The left operand must be L-value

I have to build a doubly linked list, but I was presented with an error that I can not solve: Node class It is important to note that this class makes use of template to accept any format. #ifndef nodo_h #define nodo_h #include &l...
asked by 15.08.2018 / 04:30
1
answer

template twig header and footer always visible without using {% block [...]%}

I'm doing a website for me and I have a question about how to use the templates. That is, right now I use {% block [...] %} to add my header and footer to the pages. But I would like to make both header and footer always present on the pa...
asked by 01.07.2018 / 19:01
1
answer

Error 'can not bind' std :: ostream 'when deploying a template in C ++

WHEN modifying a TAD with templates to make it generic (add templates): For data entry / exit I have this code: std::ostream& operator<<(std::ostream& os, Matriz & m) { os << m.filas() << " " &l...
asked by 25.06.2017 / 00:32
1
answer

Concatenate integer and string in a Djangoplate theme

Good morning, The problem I have is that I want to concatenate an int with a string in a Django template, but when I try it, I return an empty value. This is my code: {% with "object_"|add:obj.id as check_id %} El objeto es {{check_id}} {%...
asked by 06.03.2017 / 23:21
1
answer

Sub-fix by template

The title is somewhat complicated to understand, so I'll summarize by code. Suppose we have a template that wraps an array: template <typename T, std::size_t TAMANYO> struct arreglo { using value_type = T; using arreglo_type = ar...
asked by 30.11.2016 / 17:05
2
answers

How to include an HTML template to send by PHP mail?

I need to pass the variable with a template to send and organize the code. define(FULLNAME, $fullname); define(EMAIL, $email); $body = include('../templete/welcome.php?name='.FULLNAME); $header = "From: Team app <[email protected]&...
asked by 22.10.2016 / 04:23
1
answer

About std :: tuple, and how to use it as a member of a class

I have an implementation that works for me in the following way: // clase de enteros modulo el parametro N template<unsigned N> int_mod_N { unsigned m_i; // unico datro miembro /* ... implementacion ...*/ }; // clase que es una...
asked by 31.07.2018 / 21:02