Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Operatore ternario c++

#include<iostream>
using namespace std;
int main(){
	int a;
	cin>>a; 
	int b; 
	if(a == 5){
		b = 10;
	}else{
		b = 20;
	}
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: remove digit from number c++ 
Cpp :: find with hash set 
Cpp :: how to fix in c++ "cannot open imgui.h" 
Cpp :: PUBG_APIKEY=<your-api-key npm t 
Cpp :: c++ to c code converter 
Cpp :: c++ put a function in a other thread 
Cpp :: sfml time set 
Cpp :: variadic template constructor matches better than copy constructor 
Cpp :: how to i convert C++ into C 
Cpp :: omp multiple reductions 
Cpp :: fishes code in assignment expert 
Cpp :: c++ bind what are placeholders 
Cpp :: c++ freecodecamp course 10 hours youtube 
Cpp :: c++ poitner 
Cpp :: the statement vector vector int matrix(100 vector int (50 100) ) declares 
Cpp :: shrek c++ 
Cpp :: how to calculate marks in C++ 
Cpp :: how to writte comment in c++ 
Cpp :: find maximum contiguous Sub arrays 
Cpp :: how to add 2 objects using operator overloading in c++ 
Cpp :: 1047. Remove All Adjacent Duplicates In String solution leetcode in c++ 
Cpp :: How to clear keyboard buffer c++ 
Cpp :: number triangle c++ 
Cpp :: Jython Java Python 
Cpp :: how to list directory in c++ 
Cpp :: temporary variable ex c++ 
Cpp :: CREDSCORE codechef solution 
Cpp :: _ZNSolsEi 
Cpp :: c++ sleep function 
Cpp :: online c++ compiler 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =