Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ throe

try {
  int age = 15;
  if (age >= 18) {
    cout << "Access granted - you are old enough.";
  } else {
    throw (age);
  }
}
catch (int myNum) {
  cout << "Access denied - You must be at least 18 years old.
";
  cout << "Age is: " << myNum;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: Mirror Inverse Program in c++ 
Cpp :: c++ take n number from the user and store them in array and get the max, min number of them and also find the average/summation of these numbers 
Cpp :: c program runner 
Cpp :: initalising array c++ 
Cpp :: forkortelse for intet 
Cpp :: c++ to mips converter online 
Cpp :: sfml thread multi argument function 
Cpp :: find min and max in array c++ 
Cpp :: how to find common divisors of two numbers in cpp 
Cpp :: c++ dynamic array 
Cpp :: c++ argument list for class template is missing 
Cpp :: C++ Multilevel Inheritance 
Cpp :: qpushbutton clicked connect c++ 
Cpp :: CPPDEVELOPER 
Cpp :: c++ map values range 
Cpp :: stack algorithm in c++ 
Cpp :: C++ Converting Celsius to Kelvin 
Cpp :: #pragma GCC target ("avx2") #pragma GCC optimization ("O3") #pragma GCC optimization ("unroll-loops") 
Cpp :: atomic int c++ add 1 
Cpp :: gcc compile multi thread 
Cpp :: GCD(x, yz) 
Cpp :: escribir texto c++ 
Cpp :: Targon lol 
Cpp :: stp 
Cpp :: c+ - Dormir en millisecondes 
Cpp :: assignment of single field in struct in solidity 
Cpp :: sort n characters in descending order c++ 
Cpp :: c++ static array in Klasse 
Cpp :: this is my p phone number in punjabi 
Cpp :: constant qualifier c++ "error display" 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =