Search
 
SCRIPT & CODE EXAMPLE
 

CPP

dart and or

dart language use of or , and operators

pretty simple, let me;

you have 3 numbers, you want 1th number to be equal 2th number or 2th number to be equal 3th number

  if(number1 == number2 or number2 == number3) {
    return 1;
  }
  
we wanted the 1st number and the 2nd number to be equal,
or the 2nd number and the 3rd number to be equal.
either we can expect the 1st number and the 2nd number to be equal
and the 2nd number to the 3rd number to be equal,
so the 3 numbers must be in a similar state at the same time
  if(number1 == number2 and number2 == number3) {
   return 1;
  }
 
actually all we 'do' is write and instead of or
if I talk about the syntax in a simple way; 
   if(1th condition and, or 2th condition) {
    return 1;
   }
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to convert string to wchar_t in c++ 
Cpp :: fast io 
Cpp :: whole size of the internet 
Cpp :: ‘setprecision’ was not declared in this scope 
Cpp :: conda list envs 
Cpp :: qt debug 
Cpp :: c++ vector decimal to binary 
Cpp :: cpp get data type 
Cpp :: make cin cout faster 
Cpp :: how to complie with c++ 17 
Cpp :: how to iterate through a map in c++ 
Cpp :: torch cuda is available 
Cpp :: c++ example 
Cpp :: colourful text in c++ 
Cpp :: c++ fill array with 0 
Cpp :: merge images opencv c++ 
Cpp :: arduino get size of array 
Cpp :: exp() c++ 
Cpp :: c++ index of nth occurence 
Cpp :: declare dictionary cpp 
Cpp :: invalid next size (normal) c++ 
Cpp :: return the index where maximum element in a vector 
Cpp :: C compile SDL program using mingw 
Cpp :: Array implementation of Queue using class in c++ 
Cpp :: cout char32_t c++ 
Cpp :: how to free the vector c++ 
Cpp :: how to check sqrt of number is integer c++ 
Cpp :: 2d array using vector 
Cpp :: convert int to string c++ 
Cpp :: queue implementation using linked list in cpp 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =