Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
3 answers

Declaring and Defining Variables and Functions in Separate Files

I'm confused about how to define and declare my variables and functions across multiple files WITHOUT resorting to global variables. Let's say I wanted to have separate header and source files declaring and defining variables and functions outside…
Willy Goat
  • 1,175
  • 2
  • 9
  • 24
0
votes
3 answers

Question about variable definitions in functions

include main() { int a; for(a=1; a<=4 && printf("%d ",a); a++) { int a; static int b=a; printf("%d ",(a++)-b); } getchar(); getchar(); } In this code, the printout is 1 0 2 1 3 2 4 3. I understand…
0
votes
1 answer

(Prolog) How do I rearrange elements in the list recursively to give multiple resulting states for an answer?

'find a list of lists where the first element after first tos() have been moved after each other tos()'. How do i turn this: [tos(a), 1, 5, 12, tos(b), tos(c), tos(d), 2, 17, tos(e)] Into lists of this using prolog?: [tos(a), 5, 12, tos(b),1,…
Jdizzle
  • 35
  • 7
0
votes
5 answers

Define instance generic type later on in code in Java

I have a class like this: public class Foo { //What ever inside } And later on I want to do something like this: public class MyClass { Foo foo; public MyClass(int x) { if(x==1) { foo = new Foo(); …
Bardya Momeni
  • 337
  • 4
  • 13
0
votes
1 answer

Finding draw_if_interactive() in pyplot.py

There are multiple draw_if_interactive() expressions in the pyplot module but I can't find this function's definition anywhere in the module. From intuition and readings, it's an easy guess that the function enables on-demand plotting but where…
user3885774
  • 75
  • 1
  • 1
  • 5
0
votes
4 answers

What is the difference between declaration and definition in the example below?

#include int main() { int a; printf("%d\n",a); } The statement in the above example: int a; — is it a declaration or definition? If it is a declaration, the printf() statement should give an error, but it prints a garbage…
0
votes
3 answers

How to define objects with a function in javascript?

I have three identical objects that I'd like to define in three slightly different ways. The only difference is that I'm accessing a different property within my source data (via Bracket Notation) for each object as shown below The object I'm using…
Chris
  • 5,444
  • 16
  • 63
  • 119
0
votes
1 answer

Definitions for Dot42 vs standard Android definitions

This may or may not be a very straightforward question. I've very recently decided to create a number of applications with the android platform in mind, and as such installed Dot42, since C# is the language I'm most proficient in. I noticed that…
Wolfish
  • 960
  • 2
  • 8
  • 34
0
votes
0 answers

Issue with simple function definition in Unity using C#

I thought what I was planning on doing was simple, but for some reason this function is not being defined correctly. It is something I have done before but this time it does not work. I have two C# scripts and I am trying to call a function from one…
user2740515
  • 89
  • 1
  • 2
  • 7
0
votes
1 answer

Where did the production environment get its name?

Many software development teams use the term production to refer to the live environment accessed by their users. Rails for example uses this nomenclature. The string production is also used by express. The dictionary definition of production…
basicer
  • 308
  • 2
  • 5
0
votes
1 answer

How do i declare and define a variable of a custom type in one line

How can i declare and set a custom type in one line. Option Explicit Type Stackoverflow stack As String overflow As String End Type Sub WorkingExample() Dim example As Stackoverflow example.stack = "stack" example.overflow =…
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
2 answers

Why code works out of but not inside of an empty function?

Im working on a project for school which is mostly data management and presentation. I have a long piece of code that i would need to copy and paste into a different part of the project so i thought i would make it a function. I can copy and paste…
erikstagg
  • 79
  • 7
0
votes
1 answer

TI AM335x memory address definition header files?

Are there any header files containing memory address definitions for the AM335x type processors? Can't find any such header files in the SDK: ti-sdk-am335x-evm-07.00.00.00 I would like to list the state and configuration for all GPIOs, but it seems…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
0
votes
1 answer

Get build from TFS 2012 build definition

I am new at TFS 2012. I create build definition for getting build but I can be success. I am getting some errors. These errors with regard to telerik component. TFS build definition can not read telerik .dll(can't read RadGrid). My TFS works on…
umut
  • 1
0
votes
1 answer

An uninitialized variable/pointer becomes a definition or a declaration?

Suppose I have the following program: int main(void) { int i; //Line 1 i=5; //Line 2 int *j; //line 3 j=&i; //line 4 } If I try to print i after line 1 in Visual Studio, it gives me a compile time error saying unitialized variable i used. Does…
user2684198
  • 812
  • 1
  • 10
  • 18