Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
3 answers

Difference between property defining (with and without {get; set;})

I have this public int CityId { get; set; } and public int CityId; If I use first - it works in EF code first while the second - doesn't. But if I definte {get; set;} and do nothing else, what is the exact difference between a simple definition? I…
Andrius Naruševičius
  • 8,348
  • 7
  • 49
  • 78
0
votes
1 answer

What is wrong with extern short i; i=2; ? gcc complains type conflict

The following code is similar to that of question Is there a difference between initializing a variable and assigning it a value immediately after declaration? downvoted twice, so I am at risk ;-) short i; i = 2; It does not compile with MinGW and…
Rainald62
  • 706
  • 12
  • 19
0
votes
3 answers

Problem with method defined in VC++ header file

I have a class in a DLL that's used in many other DLLs and EXEs. It has a couple of methods defined in the include file (i.e. the method body is in the .h file) that's included in the other binaries. One of them is giving me fits: int…
user191582
  • 23
  • 1
  • 6
0
votes
5 answers

Defining variable in function through if else

Please see the small code below: void TestPluginAPI::MouseMove(int nX, int nY) { INPUT input; DOUBLE fScreenWidth = GetSystemMetrics( SM_CXSCREEN )-1; DOUBLE fScreenHeight = GetSystemMetrics( SM_CYSCREEN )-1; int plusY; if…
Max Yari
  • 3,617
  • 5
  • 32
  • 56
0
votes
1 answer

Unit tests and Integration tests definitions & Maven

How do you define border between Unit testing and Integration testing? Where is it exactly? In what part is layers testing ? Related Terminology for integration tests which test each layer and the layers below it (Jenga tests) What is the difference…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
0
votes
2 answers

Function declaration and definition C - arguments defined as in pascal: what should it be?

I've read an interesting code recently, but I can not identify the meaning of it: void foo(arg1, arg2) int arg1; unsigned char arg2[16]; { //some code } I have never seen something like that in C language before as function argument declaration…
user2218825
0
votes
1 answer

Discrete math recursive definition

So we were working this problem in class and for f(2) I got the same answer but for f(3) I got something different from the professor. Basis: f(0) = -1 and f(1) = 2 Recursion: f(n) = f(n-2) - f(n-1) For f(3) I am getting 1 f(3-2) - f(3-1) =f(1) -…
MeesterMarcus
  • 700
  • 1
  • 9
  • 25
0
votes
2 answers

Which of these C "MAX" macros would be best?

I see two possible implementations for a MAX macro in C. Which of these would be best? define MAX(X,Y) ((X) < (Y) ? : (Y) : (X)) define MAX(X,Y) 0.5*(X+Y+ABS(X-Y))
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
2 answers

Are SQL SELECT statements by definition stable?

Here is my problem, I was asked to ensure that statements within a big project which are all wrapped like: Select * from (Select ... order by column) keep their ordering. This begs the question, is there some official source that defines that SQL…
Sebastian van Wickern
  • 1,699
  • 3
  • 15
  • 31
0
votes
1 answer

VS 2008 : Code Definition Window wrong symbol file

I have installed both Microsoft Platform SDKs v6.0A and v7.0. Inside Visual Studio 2008 I include that is defined to get this file from v7.0. Beside that, when I use CDW (code definition window) to overview symbols, for example GUIDs by opening the…
Maverick
  • 1,105
  • 12
  • 41
0
votes
1 answer

Redefinition Issue using Makefile

main.c: #include #include "proto.h" int main(void) { return(0); } // end main support.c: #include "proto.h" \\ only function defintions proto.h: #ifndef proto #define proto double PI = 3.14159; int LOOP_LIMIT =…
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
0
votes
1 answer

XText datatype definition and usage

I want to build an Editor for a language with different groups of variable types, but have problems with the generated content assistant. Type: 'TYPE' ':' name=ID '(' type=[ANY] ')' ';' ; ANY: ANY_NUM | Type ; ANY_NUM: ANY_REAL | ANY_INT…
abs
  • 71
  • 6
0
votes
1 answer

Difference Between Plugin, Addon, and Helper Application

I am trying to understand classification/naming of scripts, I havent found any software vocabulary online that I can read, I have many scripts which my own, and from open sources. I want to put my script to correct folders. Whats difference…
Digerkam
  • 1,826
  • 4
  • 24
  • 39
0
votes
2 answers

The value range (minimum & maximum)

What exactly the maximum and the minimum value of any definition type? Is this possible? unsigned int maximum_uint = (maximum_value)(unsigned int); short minimum_short = (minimum_value)(short); float maximum_float = (maximum_value)(float);
user2015064
0
votes
1 answer

Aptana studio 3 or any IDE or Text Based Editor with ruby on rails assist-code definition

I am used to using an IDE like Eclipse or Netbeans when coding in Java and having a small code assist appear to give me a small description on each of the methods available. Now code assist does work in Aptana Studio 3 for Ruby on rails, but it does…
Jason
  • 1