Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
4 answers

Do variable names in the definition of a method have to be identical to declaration names in C++?

Now, I'm not saying that I think that this would be anywhere near proper coding practice (assuming it's even possible); this question arises from a 2am mistake: Assume class definition resembling the following: class myClass { public: void…
ronman38
  • 11
  • 4
0
votes
4 answers

Calling function with no declaration in header

Say I have two header and implementation files, A and B. B: #include "B.h" void funcFromB(); //prototype ... void funcFromB() { ... } A: #include "B.h" void funcFromB(); //prototype ... funcFromB(); //will this work correctly? Will calling…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
0
votes
1 answer

Why use a C++ header file?

I understand the header file contains all the prototypes of every function contained in the implementation file; but what is the real purpose? Is it because when another program calls on the class, it only receives the information in the header…
Colin
  • 1,758
  • 1
  • 19
  • 24
0
votes
1 answer

xcode weird method syntax definition

I inherited another developer code, but didn't understood the following code (Notice the ';' in the of first line): -(id) initWithTarget:(id)target AndAction:(void(*)(id target,id sender ,NSString* xml))action; { self = [super init]; if…
yonivav
  • 994
  • 11
  • 18
0
votes
2 answers

How do I properly create an array of 2d int arrays in C?

I will have multiple 2d int arrays.. int[5][5] A; int[5][5] B; int[5][5] C; but how many I need is dependent on a parameter decided on runtime. How would I create a dynamic amount of 2D arrays and manage them?
0
votes
0 answers

Declare Function in DLL and Define in Application

so here's my issue. I have a DLL that is referenced by an application (both of which I'm writing). The DLL should declare a method, called AppMain, and the application should define this method. Before I started using DLLs I was using a LIB file and…
Will Custode
  • 4,576
  • 3
  • 26
  • 51
0
votes
1 answer

C++ typedef function definition as a class member to use later for function pointer?

I need to have a class that stores a function definition/prototype as a class member in order to use it later to get function pointers based on that definition. #include #include #include template
SLC
  • 2,167
  • 2
  • 28
  • 46
0
votes
1 answer

ANTLR Paraphrase, what does it do?

Just starting to write my first lexer and i've come across this: RPAREN options { paraphrase = ")"; } : ")"; I'd like to know what paraphrase actually does, does it mean that in this case RPAREN can also be used as simply ) in the parser?…
user2058186
  • 287
  • 2
  • 13
0
votes
2 answers

Easiest way to describe instance

I am teaching someone the basics of Java. I am trying to give him a good definition of static without using 'instance'. My definition so far has been: static: A keyword that declares that there is only one instance of it. Any better way to define…
Colin Koenig
  • 65
  • 1
  • 3
  • 15
0
votes
2 answers

I have heard Foo a lot, what does it mean?

Call me a noob, 'cause I really am, but what does 'foo' mean? I have seen it a lot. but I don't know what it means. Could someone clarify? All help is appreciated.
Flarp
  • 139
  • 1
  • 10
0
votes
2 answers

What is exactly "SOME / ANY" and "IN"

When someone is calling a function by "SOME" or "ANY" makes me unsure about this. Can I think about "SOME" as "OneOf" or "OneFrom"? Like an array (table) searching function? If yes, then what's the difference between SOME and IN? I am total newbie…
Bartłomiej Sobieszek
  • 2,692
  • 2
  • 25
  • 40
0
votes
1 answer

what is "upstream" program?

I've read "upstream" program from here ... http://xunitpatterns.com/Back%20Door%20Manipulation.html If the data store is external to the SUT, such as in a relational database, the Data Loader can be "just another application" that writes to that…
P-P
  • 1,670
  • 5
  • 18
  • 35
0
votes
3 answers

How do I define an associative array?

I want to define what I understand is an associative array (or maybe an object) such that I have entries like the following: "Bath" = [1,2,5,5,13,21] "London" = [4,7,13,25] I've tried the following: var xref = new Object; xref = []; obj3 =…
Leamphil
  • 77
  • 1
  • 1
  • 4
0
votes
2 answers

What parameters would go in the brackets just after the name of a class?

This is how I am defining a class: class Foo(): def __init__(self, a, b): self.a = a self.b = b So, when defining a class, the parameters to be passed for initialization are in the brackets immediately after the __init__…
0
votes
1 answer

Definition of the modf() function?

This is a pretty general question but I have searched around and don't know of any good repositories to find the answer from, hopefully this thread will help others in the future as well. As I'm learning C I just went over the modf() function and am…
ElRojito
  • 157
  • 6