Questions tagged [inclusion]

89 questions
0
votes
1 answer

What do conditionals do to polymorphic objects in C++? (inclusion polymorphism)

I ran into an interesting error and I'm pretty sure it has to do with inclusion polymorphism in the context of conditional statements. The highlights of the example are as follows: ClassParent *parentPointer; //Declare pointer to parent …
bigcodeszzer
  • 916
  • 1
  • 8
  • 27
0
votes
1 answer

Algorithm to find if one document is included in another, when those two documents are similar

I'm looking for an algorithm that finds whether two text documents are similar, where one document is included in the other document. I thank you in advance.
hort
  • 1
0
votes
0 answers

Inclusion and Exclusion of Model Properties in Entity Framework

I have a user model and there are different properties I want to be obtainable in different circumstances, I have a WebAPI that handles the User Model, and for different actions, I need certain properties excluded. E.g. When I do /API/Users -> I…
Max Carroll
  • 4,441
  • 2
  • 31
  • 31
0
votes
3 answers

Django Inclusion Tag doesn't post to database

I'm trying to build a form to save Names and Email Adresses to my database. However, it doesn't save... I've used an Inclusion Tag because I want to use the same form in different templates. This is my models.py: class Contact(models.Model): …
bokdi
  • 3
  • 1
0
votes
1 answer

Qt Including Files in Different Directories

So I've read a few posts and articles about how to go about doing this and one option was to do: #include "../file/file.h" But when I use this method, it still cannot find the file. The other way was to add the root of the project to the include…
UioShi
  • 21
  • 1
  • 7
0
votes
1 answer

Text in html file is displayed but html tags are being ignored

I have a file test.php containing, this: The included file contains a html formated text with…
paulinus
  • 3
  • 1
0
votes
2 answers

Templates, and C++ operator for logic: B contained by set A

In C++, I'm looking to implement an operator for selecting items in a list (of type B) based upon B being contained entirely within A. In the book "the logical design of digital computers" by Montgomery Phister jr (published 1958), p54, it says: F11…
James Morris
  • 4,867
  • 3
  • 32
  • 51
0
votes
1 answer

Undefined symbols in a shared library compiled with a static library

I have a problem with linking together different libraries using it in one executable project. Let's say Project A contains a function named foo(); It is compiled as a static library. Project B contains a function named bar(), includes a header from…
0
votes
3 answers

Php Changing a consecutive array to a inclusive array

I am working on a latin website that holds some information in a string this way: nominative:0:us,a,um;genitive:0:i;dative,ablative:1:is I would like to turn this information into an array like this array( 'nominative'=>array( …
B7th
  • 644
  • 1
  • 6
  • 17
0
votes
2 answers

Changing the CSS of a file included with PHP using JavaScript

I've recently made a site where I have a navigation bar, which is included to the pages using PHP. I wanted the active page list item to have bold text, so I used JavaScript to fetch the…
IIllIIll
  • 504
  • 8
  • 25
0
votes
2 answers

Membership testing of floats in Pandas int64 dataframe produces unexpected result

I have a Pandas dataframe, named "impression_data," which includes a column called "site.id," like this: >>> impression_data['site.id'] 0 62 1 189 2 191 3 62 ... Each item in this column has the datatype numpy.int64, like…
avn2109
  • 54
  • 1
  • 7
0
votes
0 answers

Unresolved inclusion to everything

Well, this strange error occurs in all of my project code files (h and cpp files) I didn’t change anything before, and all of a sudden during debugging it started to show up: This is the error I'm talking about: Does anybody know how to solve…
wannabe programmer
  • 653
  • 1
  • 9
  • 23
0
votes
1 answer

With or without the inclusion guards in C headers, it still works. What is it for then?

I tried compiling with or without the inclusion guards in C headers and made sure that multiple c files includes the same header. It would result to redeclaration and it is allowed. What does it for then?
Xegara
  • 563
  • 2
  • 10
  • 23
0
votes
3 answers

Inclusion of only header files does not run the program

I am running my programs in Ubuntu using a library names cpt. I am including the required header files from the library but the program does not work because it is unable to access the functions in the header file. ( it shows that error ) I have to…
cleanplay
  • 271
  • 4
  • 14
0
votes
1 answer

unresolved inclusion with any include files

I'm getting an error running a Hello World Program using Eclipse. I have installed MinGW and Cygwin, I know I only need one but I have other editor that uses one but not the other. I have checked the Paths and Symbols under GCC C++ Compiler, it…