What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-01-31 01:12:47
count number of lines files .cpp .h
# Show count sum find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec cat {} + | wc -l # Show count sum and stats for each file find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec wc -l {} + Add solution -
C++ 2022-01-27 23:35:53
extern c++
// extern basically defines a global variable. //fileA.cpp int i = 42; // declaration and definition //fileB.cpp extern int i; // declaration only. same as i in FileA //fileC.cpp extern int i; // declaration only. same as i in FileA //fileD.cpp int ... Add solution -
C++ 2022-01-26 05:51:41
what is a .cpp file
A .CPP file is a file that contains C++ code. Add solution -
-
Python 2022-01-22 01:40:37
return a tuple c++ python 3
# C++ CODE void divide_modulo(int a, int b, int *div, int *rest) { *div = a / b; *rest = a % b; } # COMPILE WITH gcc -o libexample.so -shared example.c # OR C++ g++ -o libfoo.so -shared example.cpp # PYTHON 3.7 CODE import ctypes lib = ctypes.c... Add solution