Questions tagged [definitions]

84 questions
1
vote
1 answer

Problems with DCL Symbols

I have been using VMS/OpenVMS for over 30 years now. I found something interesting yesterday. I always have symbols PU*RGE :== PURGE/CONF, and DE*LETE :== DELETE/CONF in my setups. This is to avoid accidental deletions and purges. However, one…
1
vote
0 answers

Tic Tac Toe game function definition error

attempting a tic tac toe game for c++ practice. Keep getting the following errors Line 167 [Error] expected '}' at end of input 102 [Error] a function-definition is not allowed here before '{' token 97 [Error] 'gboard' is not a type 91 [Error]…
1
vote
1 answer

Determining what's on a Many to Many relationship

This is probably a simple answer, but I've been working on this problem, for the past couple days, and it's starting to drive me batty I have a database with a many to many relationship ------------- --------------------- …
1
vote
2 answers

Trouble understanding reference definitions

I don't quite understand why the output on this is 10 10 if ri is a reference to i... int i, &ri = i; i = 5; ri = 10; std::cout << i << " " << ri << std::endl; Could someone clear this up for me? Similarly, int i = 0, &r1 = i; double d = 1, &r2 =…
Tyler
  • 1,933
  • 5
  • 18
  • 23
1
vote
2 answers

c: cygwin- multiple definition of

I'm a little stuck. I have almost finished this code but after trying to make it compatible for windows and linux, I came across this problem I can't solve. I haven't had too much experience in this area. Here are errors- $ gcc client.c client.h…
0
votes
1 answer

MOSS Site Definitions, Features and the moving site collections

The general consensus is that devlopment of MOSS publishing sites, should be done using site definitions, Solutions, Features but due to project timescales we had to do all list/site column/content type/master page development using the SharePoint…
78lro
  • 1,790
  • 7
  • 37
  • 63
0
votes
2 answers

How to retrieve dictionary values in Python?

I have a dictionary of methods in Python that is inside of a definition. This def is called outside of the class using an object. Whenever the def is called I am returned the results of the last item in the dictionary. In this case I am returned the…
amlane86
  • 668
  • 4
  • 15
  • 24
0
votes
1 answer

Can I use a php constant within a string that is pulled from a database?

I've been trying to do this all evening and I haven't been able to get it to work. I'm pulling strings of text from my database that contain other PHP constants and trying to define the whole thing as a constant, showing the code is probably easier…
0
votes
2 answers

Search ReadAllBytes for specific values

I am writing a program that reads '.exe' files and stores their hex values in an array of bytes for comparison with an array containing a series of values. (like a very simple virus scanner) byte[] buffer =…
user1192312
0
votes
2 answers

how to limit array's type in specific order in typescript

how to limit array's type in specific order in typescript instead of defining paradigm. that means, in ts, we just declare a array definition like: const arr:Array = [] I want get a specific order in definition array,like: const arr =…
yungcho
  • 23
  • 5
0
votes
2 answers

Python 'not in' operator not working correctly?

def step(g, m, n): notstorage=[] actualvalues =[] for i in range(m, (n+1)): for primechecker in range(2,i): if i % primechecker == 0: notstorage.append(i) for value in range(m, (n+1)): …
user8620463
  • 43
  • 1
  • 2
  • 8
0
votes
1 answer

Multiple definitions of ... (linker error?)

I'm getting some kind of compiler/linker error in my code, most probably preprocessor related. the error message reads "multiple definitions of x", where x is any of the 4 functions in my lib.c file. the compiler/linker I am using is the GNU GCC…
Thefoilist
  • 137
  • 1
  • 11
0
votes
0 answers

I am coding a very short game in Python (3.5.2). I just need assistance with definitions

So I am coding a very short game for an assignment that isn't going to be that long at all. There are, however, a lot of choices in this game. With so many choices, it is quite hard to organise definitions of variables and trying to run certain…
0
votes
2 answers

How to have if and elif in functions

First off. My code: UserInput = ("null") #Changes later def ask_module(param, param2): elif UserInput == (param): print(param2) while True: UserInput = input() UserInput = UserInput.lower() print() if UserInput…
Kim André
  • 129
  • 1
  • 8
0
votes
1 answer

Chef/Ruby: Reference to Definition in Hash

The code below works as expected and produces the following: ==> default: foo_definition: a ==> default: foo_definition: foo ==> default: foo_definition: fiz ==> default: bar_definition: b ==> default: bar_definition: bar ==> default:…
Marc Swingler
  • 181
  • 10