Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
1 answer

Specifing type in function definition in PHP

I wanna define a function in PHP with a header like this: public function functionname(Classname $node) { ... } but $node can also be NULL when I pass NULL i get: Catchable fatal error: Argument 1 passed to functionname() must be an instance of…
Noooooob
  • 91
  • 5
0
votes
2 answers

C++ Declare instance variable in header and call constructor in source file

I learn C++ at the moment and as far as I know instance variables should be declared in a Header file. An example header (.hpp) looks like: class myClass { private: int i; std::ifstream file; anotherClass aClassObj; public: …
PSaR
  • 23
  • 1
  • 4
0
votes
0 answers

Can not add WSDL

I have a problem when I try to add a WDSL to my repository. In order to explain my problem, those are steps I followed : I created a service "test" in version 1.0.0 (service namespace = "common") I added this service to my repository I added a…
Heremion
  • 1
  • 2
0
votes
0 answers

C function definition and declaration matching in different files

I'm learning C after a little coding in Java and C++, I've just asked this question about ANSI and old-style C function definitions/declarations here . I understand that if I don't declare a function,it is deduced from context,when I call it,to be…
Luca
  • 1,658
  • 4
  • 20
  • 41
0
votes
2 answers

C function definition and declaration

I'm a Java programmer,I learnt a little C++ and now I'm studying a little C for my job. I can't understand C behaviour about function declaration/definition and related function calls. From K&R I know that in C (very different from C++) I can call a…
Luca
  • 1,658
  • 4
  • 20
  • 41
0
votes
1 answer

Cannot find definition of 'ib_lock_t' in mysql server source code

I read source code here: link of mysql source code But after I searched the whole repository, I cannot find the defination of ib_lock_t. search link: https://github.com/mysql/mysql-server/search?utf8=%E2%9C%93&q=ib_lock_t search result: Where is it…
Al2O3
  • 3,103
  • 4
  • 26
  • 52
0
votes
1 answer

keyword /definition / return value - "STATUS" in C?

trying to produce a class that holds minimal code for my debug helpers in c/c++ in my search for sources in c for getting OS Version, i have discoverd a link where code calls/defines an unknown return value ! STATUS GVver( flags, vout ) i4…
Raj Felix
  • 685
  • 5
  • 16
0
votes
2 answers

Function Definition: How to make a string say whether or not integer is true or false?

Implement the function test_number that takes as input a number and a string: (one of 'even', 'odd', 'positive', or 'negative') The function returns True if the number has the property indicated by the string, and False if it doesn't. It works for…
Deer530
  • 73
  • 1
  • 1
  • 10
0
votes
1 answer

What is the correct terminology of XML's elements?

I am working on a SOAP app, and since it basically uses XML as it's data container, I became curious on what the correct terms for the XML elements are. For example we have header, body, envelope, but what are is the soap actions called? I am…
vaid
  • 1,390
  • 12
  • 33
0
votes
1 answer

Writing a sequence of statements to print a certain category in a namedtuple

Write a sequence of statements that prints the title of each book in BSI, one per line. from collections import namedtuple Book = namedtuple('Book', 'author title genre year price instock') BSI = [ Book('Tyler Hawkin','ABC','education', 2009,…
Deer530
  • 73
  • 1
  • 1
  • 10
0
votes
3 answers

Function Definition: Printing a list of even integers

I'm trying to define a function that returns a list of even integers from a list of overall integers def print_even_numbers(n: list): '''Return a list of even numbers given a list of integers''' for x in list: if x % 2 == 0: …
Deer530
  • 73
  • 1
  • 1
  • 10
0
votes
1 answer

Pointer to array of double or array of pointers?

I'm maintaining a part of code written by my friend, here's a definition of a variable called d: double (*d)[3]; I tried to initialize the variable using the code below but in each part there is an error (runtime or compilation). I have gotten…
0
votes
1 answer

What is a native bridge

In various development environments, a layer around native functionality is referred to as a "native bridge" (For example: RoboVM). Why is this called a bridge? and does it have any relation to the Bridge design pattern ?
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
0
votes
1 answer

Declaring, defining, assigning, initialising variables

This is in reference to C++. This question I have goes back about 6 months, when I used to think that a declaration was: int a; And a definition was: a = 5; Also, that: int a = 5; was both a declaration and definition. I've now come to understand…
Zebrafish
  • 11,682
  • 3
  • 43
  • 119
0
votes
1 answer

TFS Build Script Definition - Not Getting Latest Code

For one of our build scripts (TFS 2013), when we run it manually or during Check-In (Continuous Integration trigger), the build script is not picking up the latest code changes. We looked in the logs and it does have the correct changeset number for…