What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-05 12:07:05
write and read string binary file c++
#include <cstring> #include <iostream> #include <fstream> #include <string> struct player_data { std::string name; int score; }; int main() { std::ofstream savefile("score.dat", std::ios_base::binary); if(savef... Add solution -
Java 2021-09-28 21:48:01
Java program to convert integer value into binary
import java.util.*; import java.util.Scanner; public class IntegerToBinary { public static void main(String[] args) { int num; String str = ""; Scanner sc = new Scanner(System.in); System.out.println("Please en... Add solution -
Python 2021-09-21 11:54:02
image processing for OCR using python
1| # importing modules 2| import cv2 3| import pytesseract 5| # reading image using opencv 6| image = cv2.imread(sample_image.png’) 7| #converting image into gray scale image 8| gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) 9| # converting it... Add solution -
VBA 2021-09-11 07:16:03
excel vba convert number to binary string
'VBA function to convert number to binary string: Function DecToBin$(ByVal n&) Do DecToBin = n Mod 2 & DecToBin n = n \ 2 Loop While n End Function '------------------------------------------------------------------- 'N... Add solution -
C 2021-09-05 04:50:05
online python to c converter
from collections import deque def BFS(a, b, target): # Map is used to store the states, every # state is hashed to binary value to # indicate either that state is visited # before or not m = {} isSolvable = False path = [] # Queue to maintain... Add solution -
Java 2021-08-27 12:56:02
Java program to convert decimal number to binary & count number of 1s
// decimal to binary conversion in java import java.util.Scanner; public class DecimalBinaryDemo { public static void main(String[] args) { int number, count = 0, temp; String strConvert = ""; Scanner sc = new Scanner(Sys... Add solution