What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-18 08:26:16
arduino flame sensor project
// lowest and highest sensor readings: const int sensorMin = 0; // sensor minimum const int sensorMax = 1024; // sensor maximum void setup() { // initialize serial communication @ 9600 baud: Serial.begin(9600); } void loop() { // read the se... Add solution -
VBA 2021-11-16 02:18:18
vba check if specific bits set in int32 excel
'Fast VBA function to test if specific bits are set 'within a 32-bit Long integer. If ALL specified bits are set then 'this function returns True. If ANY of the specified bits are 'not set then this function returns False. 'Bits are numbered from 0 to ... Add solution -
VBA 2021-11-14 15:13:14
vba low word from Long Integer
'If n is a 4-byte Long Integer, the Low (Left) Word is: If n And &H8000& Then LoWord = n Or &HFFFF0000 Else LoWord = n And &HFFFF& End If 'If n is a 4-byte Long Integer, the High (Right) Word is: HiWord = (n And &HFFFF0000)... Add solution -
VBA 2021-11-12 14:28:12
excel vba check if specific bits are set in longlong
'Fast VBA function to test if specific bits are set 'within a 64-bit LongLong integer. If ALL specified bits are set then 'this function returns True. If ANY of the specified bits are 'not set then this function returns False. 'Bits are numbered from 0... Add solution -
C++ 2021-11-10 08:03:20
kiem tra so hoan hao nhanh nhat
bool KTSHT(long long int n) { long long int sum = 1; if(n == 1 || n == 0 || n == 2 || n == 3 || n == 4 || n == 5) return false; for(long long int i = 2; i * i <= n; i++) { if(n % i == 0) { if(i*i != n) sum += i + n/i; else sum +... Add solution