What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-14 05:24:07
how to get the prime number in c++ where time complexity is 0(log n)
// C++ program to print all primes smaller than or equal to // n using Sieve of Eratosthenes #include <bits/stdc++.h> using namespace std; void SieveOfEratosthenes(int n) { // Create a boolean array "prime[0..n]" and initialize /... Add solution -
Other 2021-10-13 13:48:05
how to create to register with email in c language
//************************************** // Name: Login Using a Text File in C // Description:While I'm writing my book on C programming I came across with the idea to include in my book topic on File Handling in C. The idea is to write a program usi... Add solution -
C++ 2021-10-13 06:58:07
random number of 0 or 1 c++
#include <time.h> // So we can use time() function #include <iostream> // To output results to console int main() // Main function required in all C++ programs and first function to be called { srand( time(NULL) ); //Randomize seed initializ... Add solution -
Other 2021-10-12 09:45:06
how to install c
For Turbo C++ (among other C compilers): 1. Download Turbo C++ 2. Create turboc directory inside C drive and extract the tc3.zip inside C:\turboc 3. Double click on install.exe file 4. Click on the tc application file located inside C:\TC\BIN to write... Add solution -
Other 2021-10-12 06:41:09
how to read an entire text file from c program
.wp-block-code { border: 0; padding: 0; } .wp-block-code > div { overflow: auto; } .shcb-language { border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden... Add solution