Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
2 answers

Multiple definitions of `GamepadControll::GamepadControll()'

I got this error message: multiple definition of `GamepadControll::GamepadControll()' After being frustrated for hours I reduced the code to: GamepadControll.h: #ifndef GAMEPADCONTROLL_H_ #define GAMEPADCONTROLL_H_ #include class…
user163408
0
votes
1 answer

C2084 Compile-Error (C++)

I receive the following error: 1> resistor.cpp(7): error C2084: function 'Resistor::Resistor(int,std::string,double,int [])' already has a body 1> resistor.h(25) : see previous definition of '{ctor}' With every single one of my class…
0
votes
2 answers

Python Errors: Correct is not defined. Trivia Game

I'm asked to produce a trivia game that has 10 questions. Each question should be picked at random. Every four questions Python should ask if the user wants to play again. If the user says "yes" then it continues again, if they say "no" it ends. …
0
votes
0 answers

C structure definition and usage scope

I have a legacy C function which uses a struct definition as follows struct{ float _schedulerRate; }sched_; #define sched_1 sched_; // bla bla bla myFunc(bla bla bla) { // Lots of bla bla bla someVar =…
ha9u63a7
  • 6,233
  • 16
  • 73
  • 108
0
votes
3 answers

How to define a function to take file input assigned to string, index 0 position, and sum different values

I am trying to define a function that will open a text file of numbers and read it all the way through. As the function reads each line, it should read the line as a string and then through conditionals add +1 to each counter for the different…
0
votes
1 answer

new import with imports pre-def

how to import foo module like this example. main.py : import time from foo import main return main() foo.py : def main() print 'hello', time.time() I tried to explain, there are two or more files, I wanted to upload a import already defined by…
0
votes
1 answer

Declare default parameter circular reference without pointers?

Is there any way to declare these classes in a header file without indirection? // Forwards declaration of B class B; class A { public: // Default parameter referring to B. May return its parameter const B& func(const B& b =…
AshleysBrain
  • 22,335
  • 15
  • 88
  • 124
0
votes
2 answers

In LaTeX, how does one get a colon instead of a full stop after a theorem?

I want to know if there is some way to change that full stop after Definition. to a colon, i.e. to get Definition: (and for the other environments in the "definition" theoremstyle).
user229822
0
votes
1 answer

Where is the function parameter set?

Where is the variable r defined? I get that it is a callback function, but I don't see where r is ever given a set value. var drawElevation = function(r) { var max = writeStats(r); drawGraph(r, max); }; var writeStats = function(r) { var…
SMPLGRP
  • 251
  • 3
  • 8
  • 22
0
votes
4 answers

Multiplying Functions in Python

I'm writing a short program for my class and I'm stuck on the last portion. When I run the program, everything functions appropriately up until I get to the end of the code where I try to multiply the cost of two separate functions in order to…
RobertJRodriguez
  • 27
  • 1
  • 3
  • 10
0
votes
4 answers

Python Dictionaries - Calling the definition

So the goal here for me is to take three dictionaries, and print it off in this format: Name: "Name" Homework: "Average of list" Quizzes: "Average of list" Tests: "Average of list" I have the 3 dictionaries included in a list and I'm having…
Nicholas Hazel
  • 3,758
  • 1
  • 22
  • 34
0
votes
1 answer

Shortest possible definition for someone who doesn't know programming

Can anyone think of the shortest possible definition for API, especially for someone who doesn't know programming? I'm using it in an essay and would like to footnote the definition for readers that might not understand the meaning or context of an…
Monte Carlo
  • 447
  • 2
  • 6
  • 14
0
votes
1 answer

Does not contain definition for object

It randomly encounters these errors, even when I don't mess with anything at all. It says "Error 4 'application.Form1' does not contain a definition for 'comboBox4_SelectedIndexChanged' and no extension method…
b13rg
  • 480
  • 6
  • 15
0
votes
1 answer

java best practice initialization arraylist map definition

Please note that: I have read some where that when we define the class level variables: List or Map. They should be always initialize with new operator: example -- private List students = new ArrayList(); But the architect is against it and telling…
0
votes
1 answer

How to only declare an object withouth defining in a header

When I declare an object I have to do this. Class object; However this actually calls the constructor of the object, and results in an error if the constructor needs to take parameters. What is the correct way of declaring an object without defining…
w4etwetewtwet
  • 1,330
  • 2
  • 10
  • 20