operator tag

28 questions


1 answers
92 views
0
c++) Problems that are automatically deleted and not returned when returning an object in the operator function

I'm writing a linked list. I wrote +=, = operator and checked that it works properly.After that, write the + operator. unvlist unvlist::operator+(const unvlist &ul){ unvlist *list = new unvlist();...

2 years ago

1 answers
59 views
0
Where is the logical operator xor?

Where is the logical operator xor?// Return 1 when either A or B is 5return (A==5) ^^ (B==5);I want to write it like this, but there is no ^^ operator, but there is only a bit operator ^.There are &am...


1 answers
118 views
0
What is map(&:name) like?

I saw this code in RailsCast and I don't know what map(&:name) is like (&:name).def tag_names @tag_names || tags.map(&:name).join(' ')end


1 answers
67 views
0
Can you tell me what calculations you do in C?

...!ErrorHasOccured() ??!??! HandleError();`...I've never seen an operator like this in C code.All I've seen so far is ? is to go inside a trinomial operator? Can we use it together?I can't find anyth...

2 years ago

1 answers
76 views
0
What is the value of x if "x = x++"?

int x = 7;x = x++;What happens when there's a code like this?Does the variable increase after calculation and assign a value to itself? When I compiled it, x still has a value of 7. In my book, it say...


1 answers
107 views
0
I'm asking you a question

Hello, I'm asking you a question because I don't understand while studying data analysis with PandaSas.def make_generation(age): if age == -1: return 'Not entered' elif age // 10 >= 4: Late 30s e...


1 answers
101 views
0
Differences between equals?, eql?, ===, and ==

Find out the differences between equals?, eql?, ===, and ==.What we've found so far isI haven't figured out what eql? is doing with default yet, and I'm not sure I just looked through it.Ruby has many...

2 years ago

1 answers
64 views
0
What is the objective-c's ?, :?

What does this code do?I don't know why I'm using ?and :plabel.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect;


1 answers
58 views
0
(Python Foundation) % Remaining Operator Error Problem

%d %d in the last line gives an error because of the % in the middle. It's one of the arithmetic operators, and it seems to have an error because you couldn't read it as an arithmetic operator and the...

2 years ago

1 answers
79 views
0
Does "new int[0]" allocate memory?

On my computer,cout << new int[0] << endl;When I ran , I printed 0x876c0b8.I think I'm allocating memoryAssigning [0] means assigning empty. Personally, I thought there would be an error, ...

« - 2 - »

© 2024 OneMinuteCode. All rights reserved.