Questions tagged [user-defined]

253 questions
0
votes
1 answer

What kind of operator are "not", "and" and "or" in C++

'Cause whenever I try one of these lines: #define and && #define or || #define not ! I get the error: 1:9: error: "not"/"and"/"or" cannot be used as a macro name as it is an operator in C++
user6245072
  • 2,051
  • 21
  • 34
0
votes
1 answer

Laravel: User-defined method valiate in Request?

I use Laravel and have validate code in Request: class InformationsRequest extends Request { // validate rule public function rules() { return [ 'title' => 'required|max:2000', 'description' =>…
Tiến Marion
  • 109
  • 1
  • 5
0
votes
1 answer

Sorting elements with user defined dynamic containers

I have some problems sorting elements on C++. Unluckily, I cannot use C++ containers (professor's request) so I created a new container called 'vettore' whose structure is conceptually similar to a list. So I was trying to sort the ints contained in…
0
votes
1 answer

Practical user defined objects in JavaScript

Can anyone give me an example or two of practical user defined objects in JavaScript, i.e. when you need to create an object as opposed to accessing existing predefined objects such as the document object or element objects. The examples laid out in…
groober
  • 113
  • 10
0
votes
0 answers

How to use user defined variable with default

I have created default CREATE DEFAULT dbo.enviroment AS 'UAT' I have created user defined type CREATE TYPE [dbo].[Environment] FROM [varchar](50) NOT NULL Then I have used it to define user defined type dbo.environment (using Studio not SP so I…
Luckymag
  • 1
  • 1
0
votes
1 answer

javascript sum user defined numbers

This is a beginner question…
mrmills129
  • 51
  • 1
  • 10
0
votes
2 answers

object doesn't contain any of suffixes defined in user-defined table SQL

guys! I don't know how to select objects that do not contain suffixes. I declare input table of suffixes @suffixes dbo.tvp_stringArray READONLY And then I'm selecting my objects SELECT [Object] FROM [myUsers] WHERE [Object] IS NOT LIKE (SELECT…
Matt
  • 109
  • 12
0
votes
2 answers

User defined table in stored procedure

I am trying to pass a datatable to my procedure. I have created a SQL Server user-defined table type as below: CREATE TYPE dbo.DT_SimQuestionWebTemp AS TABLE ( [id] [bigint] IDENTITY(1,1) NOT NULL, [SimId] [bigint] NOT NULL, …
nayef harb
  • 753
  • 1
  • 10
  • 19
0
votes
1 answer

what is the correct way to write a specific interface in fortran?

I tried the following code to get the code to work correctly. It seems I need to write an interface to avoid mistaken results. I wrote the following, but it does not pass the compiling stage. The errors are the following: (use gfortran…
bsmile
  • 59
  • 8
0
votes
1 answer

Postgresql user-defined aggregate function count

I am defining time-varying integers, i.e., arrays of time-varying integer segments, the latter are integer values associated with a timestamp range. CREATE TYPE integerTS AS (val integer, p tsrange); CREATE TYPE integerTT AS (traj…
0
votes
2 answers

How can I sort the linked list of user-defined objects?

I wanted to know how I can order the linkedlist addressBook in order of the integer/age from youngest to oldest. I am aware that Collections.sort(addressBook); would organize the list alphabetically, but I do not intend to actually need it in my end…
Aman
  • 41
  • 7
0
votes
1 answer

MYSQL User Defined @VARIABLE

I am coding a php-angularjs webapp and I am now creating a revision system with procedure and triggers on insert/update. after the login I need to do: $sql = 'SET @id_user := ' . (int)$_SESSION['user']['id_user'].';'; it works well if I select it…
LucJOB
  • 5
  • 2
0
votes
1 answer

fortran dynamic variables names

I am writing a code where I need to arrays defined as u1,u2,u3. I require that number of variables defined are dictated by the user. for example if the user enters an integer value of "7". Then the variables defined are u1,u2,u3,u4,u5,u6,u7. So the…
Syed Moez
  • 129
  • 15
0
votes
0 answers

Java using generic types with interfaces

I'm building a Java library, and I want the user to be able to define his own versions of some built-in classes, implementing interfaces. Now I got the following classes, where Evaluator is the built-in main routine that does some processing on…
DenBrahe
  • 151
  • 1
  • 9
0
votes
1 answer

Access matrix columns by column name in a user-defined module

In an IML procedure I have a matrix with named columns. proc iml; myMatrix = {1 2 3, 1 4 9}; mattrib myMatrix colname={"a", "b", "c"}; print myMatrix; print (myMatrix[,"a"]); /* load module = myModule;*/ /* run…