What do you want to save?
Add Code snippet
New code examples
-
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 -
Other 2021-09-12 12:50:02
uva 10570
#include <iostream> #include <cmath> #include <cstdlib> #include <set> #include <cstdio># Include <cstring>using namespace std;typedef long long ll;const int INF = 0x3f3f3f3f;const int MAXN = + 5;int a[ MAXN], b[maxn... Add solution -
C 2021-09-12 02:09:03
how to make calculator in c language
#include <stdio.h> int main() { char operator; double first, second; printf("Enter an operator (+, -, *,): "); scanf("%c", &operator); printf("Enter two operands: "); scanf("%lf %lf"... Add solution -
Other 2021-09-11 21:06:01
c share variable between forks
#include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> static int *glob_var; int main(void) { glob_var = mmap(NULL, sizeof *glob_var, PROT_REA... Add solution -
C 2021-09-11 08:23:04
reverse a singly linked list in c
/** * C program to reverse a Singly Linked List */ #include <stdio.h> #include <stdlib.h> /* Structure of a node */ struct node { int data; //Data part struct node *next; //Address part }*head; /* Functions used in the program *... Add solution -
C 2021-09-11 06:00:02
The number of repeated letters in two words
#include <stdio.h> #include<string.h> int main(void) { int n,m,i,j,d; char tab1[100],tab2[100]; printf("enter the first word :"); gets(tab1); printf("enter the second word :"); gets(tab2); n=strlen(tab1); m=... Add solution