Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
2 answers

Writing def vowel(w,i):

I'm trying to write a definition where w is a word (either capital or lower case) and i is the index in which a letter in the word is, and the output to be either True or False. For instance, >>>vowel(hello,1) to return True because e is a vowel…
python_newbie
  • 113
  • 1
  • 2
  • 8
0
votes
1 answer

Java modulus concept - arithmetic definition (a/b)*b+(a%b)

I have recently started learning code (Java), and have looked up the modulus operator on the Oracle website, as per the section 15.17.3. of the following link: http://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.17.3 Basically, if a…
Sean
  • 508
  • 6
  • 20
0
votes
1 answer

Function definition to use across project Visual C++

Trying to start up again with Visual C++, using 2010 Express edition. Trying to figure out something. If define a function in the Project.cpp file, why can't I use it in the Form1.h file, specifically the private: System::Void Form1_Load? I get…
Wyllow Wulf
  • 410
  • 4
  • 23
0
votes
1 answer

Swift - Defining more than one global variable in a line

Since Swift 2.0 I have the problem, that defining global variables only work fine, if only one global variable per line is defined. With local variables there is no issue like this. In Swift 1.0 this worked fine, but something has changed by…
j.s.com
  • 1,422
  • 14
  • 24
0
votes
1 answer

While using Behat Can you have Multiple PyStrings in a Step Definition?

I have a step definition in which I would like to have multiple pystrings input by the feature file. Is this possible, and if so what, syntax would you use to do that? Currently my step definition looks like: @Then /^(?:I )?get a value "([^"]+)"…
Nabsta
  • 101
  • 3
  • 12
0
votes
4 answers

c++ pair template struct declaration ambiguity!

In definition of pair class in c++ there are two typedefs. what are they for? there are no use of them in the code! template struct pair { typedef T1 first_type; typedef T2 second_type; T1 first; T2 second; pair() :…
Kamran
  • 451
  • 1
  • 5
  • 13
0
votes
4 answers

What are Delegates?

Possible Duplicates: C# - Can someone tell me why and where I should use delegates? C# Delegates Real World Usage While searching for answers here on stackoverflow, many of the code examples use Delegates. What are they? How they work? when, why…
SMUsamaShah
  • 7,677
  • 22
  • 88
  • 131
0
votes
1 answer

can't determine definition of operator ""-""

I've got this error for operator "-". Using signed type and ieee.numeric_std. I would like to ask if my usage of "for" is correct. library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_signed.ALL; use IEEE.STD_LOGIC_TEXTIO.ALL; use…
0
votes
0 answers

What is Polymorphism

Possible Duplicate: What is Polymorphism? My teacher said "Add Polymorphism to your code". What is Polymorphism?
SMUsamaShah
  • 7,677
  • 22
  • 88
  • 131
0
votes
1 answer

F# Circular Type Definition Loop

I want to have a type A which has a property which is an instance of type B. And type B has a property of an instance of type A. The problem is, F# reads the source files in order. So if I define type A first, then it won't recognize type B. And if…
user3685285
  • 6,066
  • 13
  • 54
  • 95
0
votes
0 answers

check function definition php

I want to check the function definition of in a php code. I am using notepad++ text editor. The same thing we can do in visual studio. Putting the cursor over the function name and hitting F12, and you will be navigated to function definition. I've…
Amit Kaushal
  • 429
  • 1
  • 9
  • 25
0
votes
1 answer

Typescript definition confusion

This is how my typescript file looks like. /// interface JQuery { ColorThief:any; } class Color { isItDarkColor(rgb) { var rgbColors = rgb.toString().split(","), r =…
heron
  • 3,611
  • 25
  • 80
  • 148
0
votes
3 answers

Re-ordering C++ template functions

In C++, I have a certain template function that, on a given condition, calls a template function in another class. The trouble is that the other class requires the full definition of the first class to be implemented, as it creates the second class…
Puppy
  • 144,682
  • 38
  • 256
  • 465
0
votes
1 answer

How to add multiple values in single column

I am designing a SQL table structure as: CREATE TABLE InCollection ( author NVARCHAR(200) DEFAULT NULL, title TEXT, year INT DEFAULT '0', booktitle TEXT ) Now column 'author' may have a single value or multiple tags…
maliks
  • 1,102
  • 3
  • 18
  • 42
0
votes
2 answers

bit-declaration - undefined reference to 'variable'

I have problem and hope, that you could help me. I try to make CAN-communication between two dsPIC30F4011. It also works. Now I have to make the Identifier. I have to use the SID and the EID. They are divided into 4 parts. I want to make a…