What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-01-27 18:55:18
Creating segment for sqrt decomposition
int segment[10000]; int preprocess(int input[], int n) { int current_segment = -1; int segment_size = sqrt(n); for (int i=0; i<n; i++) { &... Add solution -
C# 2022-01-26 21:35:37
c# udpclient receive buffer size
public static void Main(string[] args) { IPEndPoint remoteEp = null; UdpClient client = new UdpClient(4242); client.Client.ReceiveBufferSize = 4096; Console.Write("Start sending data..."); client.Receive(ref remoteEp); Console.Write... Add solution -
Other 2022-01-25 20:05:51
how to count the most common letter in a string c
#include <stdio.h> #include <stdlib.h> #include <string.h> #define ENG_LETTERS 26 #define STR_LEN 100 int main() { int countArray[ENG_LETTERS] = {0}; char str[STR_LEN] = { 0 }; char engChar = 'a' - 1; int length = 0; ... Add solution -
SQL 2022-01-25 04:06:52
sqlite in flutter
// Get a location using getDatabasesPath var databasesPath = await getDatabasesPath(); String path = join(databasesPath, 'demo.db'); // Delete the database await deleteDatabase(path); // open the database Database database = await openDatabase(path, ver... Add solution -
C++ 2022-01-24 17:26:44
static variable in c++
/* this example show where and how static variables are used */ #include <iostream> #include <string> //doing "using namespace std" is generally a bad practice, this is an exception using namespace std; class Player { int health... Add solution -
C# 2022-01-24 11:30:45
The foreach Loop c#
var fibNumbers = new List<int> { 0, 1, 1, 2, 3, 5, 8, 13 }; int count = 0; foreach (int element in fibNumbers) { count++; Console.WriteLine($"Element #{count}: {element}"); } Console.WriteLine($"Number of elements: {count}&quo... Add solution -
Other 2022-01-24 05:20:37
PntIDNumbers
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <sstream> #define MAX 200 using namespace std; // Function receive address of the first element of an array // Reads file contents and store... Add solution -
Other 2022-01-24 00:10:16
dining philosophers problem solution using semaphores in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas ) Use of Binary Semaphores has been made along with inversion of last philosopher's order of picking chopsticks, in order to avoid circular wait condition. Thus preven... Add solution
Best helpers
Wayno
+5
TeacherSue
+5
IQAndreas
+5
AlecPerkey
+5
Sikku
+5
Winny
+5
Seria Yin
+5
T-rex
+5
Wilber82
+5
Sharma Pocso
+5
TJG
+5
JSanchez
+5
Kyle Smith
+5