What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-16 06:15:25
divide two polynomials c++
#include <iostream>#include <iterator>#include <vector> using namespace std;typedef vector<double> Poly; // does: prints all members of vector// input: c - ASCII char with the name of the vector// A - refere... Add solution -
-
CSS 2022-02-14 04:40:12
eric meyer reset css
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, ... Add solution -
Other 2022-02-13 11:45:07
prime of sieve
//sieve of eratosthenes or prime of sieve #include<iostream> #include<math.h> using namespace std; void primeofsieve(long long int n) { long long int arr[n]={}; for(int i=2;i<=sqrt(n);i++) { for(long long int j=i*i;j<=n;j+=i) arr... Add solution -
C++ 2022-02-12 03:45:02
how to search integer in c++
//******************************************************** // search algorithm for arrays //******************************************************** #include <iostream> using namespace std; void initializeArray(int list[], int listSize); int ... Add solution -
Python 2022-02-12 00:20:20
pygame boilerplate
#!/usr/bin/env python2 import pygame import random WIDTH = 360 HEIGHT = 480 FPS = 30 # Define Colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) ## initialize pygame and create window pygame.ini... Add solution -
C++ 2022-02-11 10:00:09
c++ program for numerical solution of ordinary differential equations using euler method
#include<iostream> /* defining ordinary differential equation to be solved */ /* In this example we are solving dy/dx = x + y */ #define f(x,y) x+y using namespace std; int main() { float x0, y0, xn, h, yn, slope; int i, n; cout<<"... Add solution