What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-12 02:36:04
cpp stack
#include <iostream> using namespace std; int stack[100], n=100, top=-1; void push(int val) { if(top>=n-1) cout<<"Stack Overflow"<<endl; else { top++; ... Add solution -
Javascript 2021-09-10 12:40:03
javascript function description standards
/** * @name hash * @description Random hashing algorithm I found on Stack Overflow. * @param {string} str * @param {boolean} asString * @param {*} seed * * @returns {string} hash */ function hash(str, asString, seed) { Add solution -
C++ 2021-09-09 04:44:02
write a program to implement stack using array
#include <iostream> using namespace std; int stack[100], n=100, top=-1; void push(int val) { if(top>=n-1) cout<<"Stack Overflow"<<endl; else { top++; ... Add solution -
Python 2021-09-05 09:51:01
how to convert pdf to word using python
# credit to Stack Overflow user in the source link # requires LibreOffice installed import os import subprocess for top, dirs, files in os.walk('/my/pdf/folder'): for filename in files: if filename.endswith('.pdf'): abspath = os.... Add solution -
Python 2021-09-05 05:04:03
python read xls
# credit to Stack Overflow user in the source link import pandas as pd # use r before absolute file path xls = pd.ExcelFile(r"yourfilename.xls") # 2 is the sheet number+1 thus # if the file has only 1 sheet write 0 in paranthesis sheetX = ... Add solution -
C++ 2021-09-01 02:28:02
char * to string c++
// "std::string" has a method called "c_str()" that returns a "const char*" // pointer to its inner memory. You can copy that "const char*" to a variable // using "strcpy()". std::string str = "Hello... Add solution