Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
1 answer

Typescript generic type for all variables defined

I have an object like below: var objContainer = {}; objContainer.string1 = "some string"; objContainer.string2 = "some string"; .... objContainer.stringN = "some string"; I want to create a type for objContainer variable in TypeScript.The point is,…
Deniz Beker
  • 1,984
  • 1
  • 18
  • 22
0
votes
1 answer

What is the name of this in C#?

I'm reading a beginner's C# book. Everything was smooth defining objects like this: BaseClass foo = new BaseClass(); but then the author, without any explanation, changed the definitions like this: MiClass foo = new DerivedClass(); I would like to…
user3646717
  • 1,095
  • 2
  • 12
  • 21
0
votes
1 answer

definition/implementation question in c#

I am trying create such a plugin architecture that; IPlugin: an interface that all plugins must implement. NormalPlugin: a normal plugin. ComplexPlugin: a plugin which, beside implementing the base methods, has some custom methods. HostApp: an app…
Slantroph
  • 255
  • 3
  • 8
0
votes
2 answers

Term PaaS application

I have allready read many articles about the difference between SaaS and PaaS, but sometimes they are very blurred. So I'm a bit confused and want to know whether my following sentences are correct. PaaS provides runtimes and allows the developer to…
deemer
  • 1
  • 1
0
votes
1 answer

Include Curly braces in Regular Expression to find C# Methods Definition

Using this regular expression to find methods of C#. \w+(([^)]+))|\w+(()) with this I get the method name and parameters, I need to include the character "{" to be sure that is the definition of a method. View Image
JymmyT
  • 19
  • 3
0
votes
1 answer

PreBuild Definition || Execution of script

How to run scripts in build definition (preBuild) in TFS2013? I don't see any option for PreBuild Definition for script run.
0
votes
2 answers

Should I define c++ empty function in a body or a header?

As I understand functions get included in .cc to avoid duplication of them as headers get included many times in different places. It is not clear if such overhead would occur for the function with empty body. Example of such function could be the…
Draif Kroneg
  • 743
  • 13
  • 34
0
votes
2 answers

Define enum in class or in File?

Say that in file foo.h I have: enum bar { ONE = 1, TWO }; class foo { bar m_bar; public: void setBar(bar arg){ m_bar = arg; } bar getBar() const { return m_bar; } }; In my current design, the only persistent bar variable will…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
0
votes
1 answer

2D Char array isn't creating 2nd row

char [][] ALPHA_LIST = { {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}, {'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'} }; I'm using this like a parallel array to produce a simple encryption for a…
0
votes
1 answer

Defining Inline function outside the class body, in .cpp

I write the following three files: numeros.h, numeros.cpp and main.cpp. I want to define the inline function outside the body class, in numeros.cpp. Acording to https://isocpp.org/wiki/faq/inline-functions#where-to-put-inline-keyword It's ok to put…
Pablo De Luca
  • 795
  • 3
  • 15
  • 29
0
votes
1 answer

How to stop a \ from closing a string

I need to open a file in a folder and this should work but the \ causes the string to close so the Me variable is green when it should not me. How can I fix it, I need to be able to stop \ from closing the string or direct into a folder without…
Jacob cummins
  • 93
  • 1
  • 1
  • 8
0
votes
1 answer

Wind Chill Calculator and math formulas in definitions

This should be the last error I am getting velocity = wind_speed * 0.16 TypeError: can't multiply sequence by non-int of type 'float' any ideas? pretty sure i need to define an input as a float, Sorry I am still new to python. def…
0
votes
2 answers

C# Compiler says function is not defined, when it is

I just need another pair of eyes... I don't see anything wrong with the following. In fact, I swear I had something just like this not long ago, and it worked. In my Collections.dll: namespace Collections { public class CSuperAutoPool { …
JnZ
  • 1
  • 1
0
votes
1 answer

jquery toggle on dt element working in Firefox but not other browsers

The following works in Firefox but in no other browser. Is the parent child relationship of
s different in the different browsers? $('dd').parent().find('h3').toggle( function(){ $(this).next('dd').slideDown(500); }, …
firstHat
  • 1
  • 1
0
votes
2 answers

How do you call the "happy-dog" part of file "happy-dog.png"?

I just realized I don't know how file is called in file.ext. The whole file.ext is called a file or filename, ext is called extension but how do you call the file part itself of file.ext? For example happy-dog.png. All the file/filename is…
bodacydo
  • 75,521
  • 93
  • 229
  • 319