What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-16 10:40:07
how to make a calculator in java
// this was all coded by me, to use it get Eclipse, or IntelliJ and make a new // Java Project package javaCode; import java.util.Scanner; public class testCode { public static void main(String[] args) { Scanner scan = new Scanner(System.in); ... Add solution -
VBA 2022-03-15 12:30:47
excelvba large hexadecimal string to decimal
'VBA function to convert a hexadecimal string into a decimal. Uses 'the Decimal Variant subtype to allow for much larger values than the 'worksheet function HEX2DEC() or CLng("&h" & HexVal) can achieve. It 'returns an UNSIGNED Decimal i... Add solution -
Python 2022-03-15 04:30:01
python dictionary dynamic key
# Dynamically naming Dictionary key, value item dictionaryName['static_string_' + stringVariable] = otherVariable # Example dictOne = {} strAnimal = 'dogOne' intAge = 7 dictOne['age_of_' + strAnimal] = intAge # Result {'age_of_dogOne': 7} Add solution -
C++ 2022-03-14 13:05:03
assert c++
assert(std::is_same_v<int, int>); // error: assert does not take two arguments assert((std::is_same_v<int, int>)); // OK: one argument static_assert(std::is_same_v<int, int>); // OK: not a macro std::complex<double> c; assert(c == ... Add solution