What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-31 13:06:01
c# json deserialize list of objects
//using the holy NEWTON! (you can find it as a nuget package) using Newtonsoft.Json; //get some storage for your required type List<YourType> OutputList; //usings clean up //Load some sort of stream (file or memory) using (Stream Stream = new File... Add solution -
Shell/Bash 2021-08-31 09:45:01
bash count the number of lines that meet condition
# Basic syntax: awk 'condition { count_variable++ } END { print count_variable }' input_file # Where: # - ++ increases the count by 1 when the condition is true # - END specifies what to do after the input_file has been processed # Example usage: awk '$3... Add solution -
Shell/Bash 2021-08-30 09:36:02
bash add or subtract one column from another
# Basic syntax: awk 'BEGIN {set_delimiter}; {print $column# +_or_- $column#}' input_file # Example usage: awk 'BEGIN {OFS="\t"}; {print $1 - $2}' input_file # Set the delimiter to tab-delimited, print column 1 minus column 2 awk 'BEGIN {OFS=&q... Add solution -
Shell/Bash 2021-08-30 06:52:02
bash how to print the directory structure in linux
# Process: 1. Install the tree package with your favorite linux/unix installer, e.g. sudo apt-get install tree # Using apt-get installer brew install tree # Using brew installer 2. Run tree to see directory structure, e.g.: tree /directory/to/visu... Add solution -
C++ 2021-08-30 04:05:03
const c++
// various versions of const are explained below #include <iostream> class Entity { private: int m_X, m_Y; mutable int var; // can be modified inside const menthods int* m_x, *m_y;// * use to create pointer in one line public: int GetX() const /... Add solution -
C++ 2021-08-30 00:06:02
find all occurrences of a substring in a string c++
#include <string> #include <iostream> using namespace std; int main() { string s("hello hello"); int count = 0; size_t nPos = s.find("hello", 0); // first occurrence while(nPos != string::npos) { ... Add solution -
Python 2021-08-29 23:53:01
convert c++ to python online
#include "stdafx.h" #include <iostream> #include <Windows.h> #include <time.h> using namespace std; int main() { cout << "===============================================================================" ... Add solution -
C++ 2021-08-29 20:21:02
Register code c++
#include <iostream> #include <string> #include <stdlib.h> #include <fstream> using namespace std; void mainmenu(); int choice; bool cinfail; int confirmation; string username, password, password2; void writetofile(string u... Add solution
Best helpers
Gabi Purcaru
+5
L. Samson
+5
Yoyo
+5
Skry
+5
Colocvial
+5
Sarah witte
+5
Leosar
+5
Tobiak777
+5
Tjd
+5