Answers for "c++ if and operator"

C++
5

c++ if in equivalent

#include <algorithm>
#include <vector>

if ( std::find(vec.begin(), vec.end(), item) != vec.end() )
   do_this();
else
   do_that();
Posted by: Guest on July-09-2020
-1

or operator c++

section .text
   global main
extern printf

main:
   mov ebx,10 ; moving the intial time to ebx
loop:   push ebx ; value of first parameter
   push message ; value of second parameter
   call printf ; to outpur the result
   dec ebx ; decrementing the value stored in ebx by 1
   jnz loop ; if not equal to zero then a go to loop would be triggered
   add esp,80   ;clearing the stack
   ret

message   db   "Value = %d",10,0   

Here's the solution to your question, please provide it a 100% rating. Thanks for asking and happy learning!!
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language