What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-03 05:50:38
how to compress a file in c
#include <stdio.h> #include <string.h> //comp() void Compress(unsigned char *szOut, const char *szMessage) { unsigned long long nBuffer = 0; //This is enough to store 8 uncompressed characters or 9 compressed. We will only use 8 tho. char n... Add solution -
-
C++ 2022-01-22 17:11:01
how to check char array equality in c++
// syntax #include <cstring> // this needs to be at the top of the script/code std::strcmp(<1st-char>,<2nd-char>) // example (assuming: char_1 = 'Compare me'; char_2 = 'Compare_me') #include <cstring> if (std::strcmp(char_1,cha... Add solution -
PHP 2021-10-31 04:14:09
string compare in php
<?php $var1 = "Hello"; $var2 = "hello"; if (strcmp($var1, $var2) !== 0) { echo '$var1 is not equal to $var2 in a case&... Add solution