Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
2 answers

Python printing none

So I have assignment that I completed but there's one last step where the print just says none. Here's my code #Copy the definition of function print_chars below def print_chars(multiples, char): print_chars= multiples* char print…
Davis Thuy
  • 5
  • 2
  • 5
0
votes
1 answer

structures, inheritance and definition

i need to help with structures, inheritance and definition. //define struct struct tStruct1{ int a; }; //definition tStruct1 struct1{1}; and inheritance struct tStruct2:tStruct1{ int b; }; How can I define it in declaration line? tStruct2…
Meloun
  • 13,601
  • 17
  • 64
  • 93
0
votes
1 answer

How can I apply basic html formatting to a sublime text syntax definition only within

Ok so by the following yaml definition, shouldn't only what's in between {blah} and {!blah} get text.html.basic syntax highlighting? And the {blah} tags themselves take the highlighting of a comment? Unfortunately it's not happening that way. HTML…
citizen conn
  • 15,300
  • 3
  • 58
  • 80
0
votes
0 answers

Regarding header files in C++

I keep getting this error: QuadraticProbing.h:54:22: error: ‘Human’ has not been declared int hash(Human &human, int tableSize ); However, in QuadraticProbing.h, I #include at the top familytree.h, in which the class Human is declared.…
Kevin Cheng
  • 115
  • 1
  • 4
0
votes
1 answer

Apache Tiles2. Call external

I have the following Tiles2 template:
perkas
  • 48
  • 6
0
votes
1 answer

xml standard symbol notation, "-" meaning

I try understand XML definition, but stuck on 'CharData' token. It's taken from http://www.w3.org/TR/xml/#NT-Char. From regural expression I know that "-" is used for range, but don't get it in this case. Can somebody please explain me what is…
Mara
  • 3
  • 1
0
votes
2 answers

.cpp vs .h and where should I put function definitions

I've been writing in C++ lately and I'm getting confused with .cpp vs .h — when to use them and what should go in them. I've been reading that you should put function definitions in a separate .cpp file, and headers should be used for declarations,…
0
votes
1 answer

I can only call my definition once: Python 3

I borrowed some code from another thread I found on this website, but when I tried to form a program around it, I found that one of my functions can only be called once. import tkinter as tk def total(): #borrowed code vvv def…
Toby Smith
  • 1,505
  • 2
  • 15
  • 24
0
votes
1 answer

I need my WPF grid control to be dynamically sizable (more or less rows and columns)

i want to have the grid layout dynamic. pretty much the only modification needed is that i need sometimes more and less rows and columns. So the thing is, how do i access the row- & columndefinition in my c# class?
Daybreak
  • 3
  • 2
0
votes
1 answer

Using event in definition's argument

I am trying to make a definition, what includes event (you know, to see the place of the click), and other four args. I want to call it, but I don't know how. I tried to give it a default value, but no success, I don't know what to write in the…
0
votes
1 answer

Error in Python when using JSON.Load : name 'isinstance' is not defined

Python noob here. I'm trying to execute a Python script but on json.load it fails with the error message name 'isinstance' is not defined. Since json is a library that comes with the Python installation (3.4.2) I find this very strange. Has anyone…
Z317
  • 1
0
votes
1 answer

Curry-Howard isomorphism definitions in Coq using fun

I'm having some issues with defining in Coq, more specifically when defining using the CHI. I have managed to gain the understanding of basic principals but when I try to define this" ((A -> (A -> C)) * ((A -> C) -> A)) -> C := I get nowhere due to…
0
votes
1 answer

Cscope output all parameters

There is a limitation of 1 line per cscope entry, e.g. type func(type param1, type param2, type param3, type param4) will give type func(type param1, type param2, cscope entry. I need cscope to output all parameters in function…
user4247422
0
votes
2 answers

definition of the term "syntactic form"

In the book "Types and Programming Languages" Benjamin C. Pierce uses the concept/term syntactic form (see image) , however he does not give an explicit definition for it. I was trying to look for the definition of this term on the Internet but I…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
0
votes
2 answers

Is there any difference between the definitions int arr; and int arr[1];

I just wanted to know that, Is there any difference between the definitions int arr; and int arr[1]; (except the accessing, i know we need to access as arr and arr[0]). According to my knowledge both are allocating same size of memory (sizeof(int)).…
Chinna
  • 3,930
  • 4
  • 25
  • 55