Questions tagged as 'operadores'

1
answer

How to mount the operator == of a struct?

I have the following structs: struct Arco { int i, j; Arco () {}; Arco (const Arco& obj): i(obj.i), j(obj.j) {}; Arco(int _i, int _j) : i(_i), j(_j) {} }; struct ARCO_TEMPO { Arco a; int slotTimeU; int slotTimeV; A...
asked by 07.04.2018 / 23:12
2
answers

What does the ^ = operator mean in C #?

I have a function in C #, where I decrypt a string and need to convert to a function in SQL Server for technicians to be able to work with the decrypted value. There is a foreach , which I do not understand how it works: var calculoChave...
asked by 27.01.2015 / 13:32
1
answer

Function NS_LOG - NS3 (Network Simulator): What does the "operator" mean in practice? [duplicate]

I'm working with the ns3 program, and trying to understand the code I have at hand, I came across this line, and would like to know what this sequence of "< means (I am not referring to the variables, but to the command "< <") I re...
asked by 12.12.2017 / 20:39
2
answers

What is the difference between assigning and comparing string variables with function or with assignment and comparison operator?

I came across the following questions: What is the difference between the expressions strcpy (s, t) e s = t ? What is the difference between the expressions if (strcmp (s, t) < 0) e if (s < t)  ? I tried to compile...
asked by 11.08.2015 / 00:44
2
answers

C ++ Visual Studio

Hello, I am a beginner in Visual Studio. I have recently installed and I am trying out C ++ programs starting with simple programs, but the same program that ran perfectly in Geany appears with several errors in VS2015. Example (I got some co...
asked by 18.05.2017 / 03:59
1
answer

Error PictureBox.Image My.Resources.user_add

Hello, I'm developing my CBT and have an error that I can not solve ... Below is the code: If (imgAluno.Image <> My.Resources.user_add) Then That is, I want the program to enter "If" only if the image that is in the PictureBox named i...
asked by 25.01.2017 / 04:42
2
answers

What is the difference between assigning and comparing string variables with function or with assignment and comparison operator?

I came across the following questions: What is the difference between the expressions strcpy (s, t) e s = t ? What is the difference between the expressions if (strcmp (s, t) < 0) e if (s < t)  ? I tried to compile...
asked by 11.08.2015 / 00:44
1
answer

What is the name of this "technique"? [duplicate]

int valorNo = (p->left == NULL && p->right == NULL) ? p->key : 0; I saw this in an answer here in the stack and I have no idea how this works, much less how to "read" it.     
asked by 04.12.2017 / 19:34
1
answer

How to use the ternary here?

$rs = $pbc->selectPublication(filter_input(INPUT_GET, 'id', FILTER_DEFAULT)); I have this code that is passed as method argument to select the posts in the system, but how can I use it with ternary, if it returns true and is filtered withou...
asked by 29.09.2017 / 21:43
0
answers

How to overload the + = operator so that an array of vectors can add another element to this vector?

I decided to redo some of a few workout codes I had done a long time ago, but I used the overload of operators, and I got into that problem: how could I overload the + = operator so that it executes analogously to the join method in the code bel...
asked by 21.12.2018 / 01:58