What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-20 18:07:17
enrolled in a yearly course has incorrect --data in records with ids between 20 and 100 (inclusive)
--------------------------------------------------------- --A table containing the students enrolled in a yearly course has incorrect --data in records with ids between 20 and 100 (inclusive). DROP TABLE IF EXISTS enrollments; CREATE TABLE enrollments ... Add solution -
C++ 2021-11-20 07:13:08
c++ guess my number
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int num, guess, tries = 0; srand(time(0)); //seed random number generator num = rand() % 100 + 1; // random number between 1 and 100 cout <... Add solution -
C 2021-11-01 23:31:06
c how to encrypt and decrypt
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 int main() { int switcho; do { printf("Criptare random: 1\nCriptare avendo valore: 2\nDecriptare: 3\nSalvati: 4\n\nScegliere: "); scanf("%d&q... Add solution -
C 2021-10-03 15:33:05
blockchain implementation
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
C 2021-09-25 15:51:04
BlockChain in c
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
Other 2021-09-13 04:47:03
alpha beta filter kalman
#include <stdio.h> #include <stdlib.h> int main() { float dt = 0.5; float xk_1 = 0, vk_1 = 0, a = 0.85, b = 0.005; float xk, vk, rk; float xm; while (1) { // edit by abdou xm = rand() % 100; // input signal xk = xk_1 + (vk_1... Add solution -
C++ 2021-09-06 18:52:02
make random nuber between two number in c++
#include <stdio.h> /* NULL */ #include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ int Main() { int randomNumber; /* initialize random seed: */ srand (time(NULL)); /* generate random number between... Add solution