What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-08 02:08:11
how to generate a random hexadecimal value in c
#include <time.h> #include <stdio.h> #include <stdlib.h> int main(void) { int length; char str[] = "0123456789ABCDEF"; /* Seed number for rand() */ srand((unsigned int) time(0) + getpid()); length = rand()... Add solution -
C 2021-11-04 14:27:24
vector aleatorio sin repetir
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <stdbool.h> #define TAM 10 /* Realizar un programa que rellene de forma aleatoria un vector de 10 elementos con valores aleatorios entre 0 y 9 de forma que no se... Add solution -
C++ 2021-11-02 14:16:14
dice game c++ with standard deviation
#include<iostream> #include<cstdlib> #include<ctime> #include<iomanip> #include<vector> #include<cmath> #include<algorithm> int main( ) { std::cout << "enter seeding number: " ; int num... 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 -
Java 2021-10-29 04:48:15
jackson object to json
ObjectMapper objectMapper = new ObjectMapper(); String carJson = "{ \"brand\" : \"Mercedes\", \"doors\" : 5 }"; try { Car car = objectMapper.readValue(carJson, Car.class); System.out.println("car... Add solution -