What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-21 17:45:23
worker class c++
#ifndef EMPLOYEE_H #define EMPLOYEE_H #include <string> using namespace std; class Employee { private: string name; // Employee name string number; ... Add solution -
C++ 2022-02-23 04:00:07
pure virtual function in c++
#include <iostream> #include <string> //Pure virtual function or inteface allows us to define a function in a base class that doesn't have an implementation or definition in the base class and force sub classes to implement that function //P... Add solution -
C# 2022-02-20 02:20:05
c# wpf kill processes by username
using System.Security.Principal; using System.Runtime.InteropServices; public class ProcessManager { public static void KillProcessByNameAndUserName(string processName, string userName) { var processes = from p in Process.GetProcessesByName... Add solution -
C# 2022-02-16 17:50:01
Request.ServerVariables["HTTP_X_FORWARDED_FOR"] get only one ipaddress
private string GetUserIP() { string ipList = Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (!string.IsNullOrEmpty(ipList)) { return ipList.Split(',')[0]; } return Request.ServerVariables["REMOTE_ADDR"]; } Add solution -
Java 2022-02-15 11:35:22
how to disable screenshot in react native
// go to android/app/src/main/java/com/yourPackageName/MainActivity.java package com.yourPackageName; import android.os.Bundle; import com.facebook.react.ReactActivity; // Add This Line import android.view.WindowManager; public class MainActivity ext... Add solution -
Java 2022-02-13 20:20:02
@pathvariable spring boot
package com.zetcode.controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class MyCon... Add solution -
Java 2022-02-13 15:45:32
random string generator java
public static String getRandomString(int size) { // The string that we will return String rand = ""; // The chars that are used to generate the random string String chars = "1234567890-=!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asd... Add solution
Best helpers
+10
+5
+5
+5
+5
+5
+5
+5
+5
+5