Answers for "what does ":" means in if statement c++"

C++
6

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
-2

if c++

#include<iostream>
using namespace std;
int main(){
	int eta; 
	cout<<"Ciao Utente inserisci la tua eta'! "<<"n";
	cin>>eta;
	if(eta >= 18){
		cout<<"Benvenuto al cinema!";
	}
}
Posted by: Guest on April-21-2021

Code answers related to "what does ":" means in if statement c++"

Browse Popular Code Answers by Language