What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-25 00:20:01
python list as stack and queue
def isEmpty(stk): # checks whether the stack is empty or not if stk==[]: return True else: return False def Push(stk,item): # Allow additions to the stack stk.append(item) &... Add solution -
C++ 2021-10-14 08:17:21
c++ what is #define
// #define is a macro that lets you use an alias name to // make code more readable. During C++'s preproccessing stage, your macro // will be replaced with the suitable code needed for proper compiling. #include <iostream> // used to define consta... Add solution -
PHP 2021-09-20 21:29:01
php execute command and display output
They have slightly different purposes :- 1. exec() is for calling a system command, and perhaps dealing with the output yourself. 2. system() is for executing a system command and immediately displaying the output - presumably text. 3. passthru() is ... Add solution