This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int rows; char fill; char stroke; | |
cout << "Select the number of rows: "; | |
cin >>rows; | |
cout << "Select the material to fill: "; | |
cin >>fill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
float firstNum, secondNum; | |
char action, returnToAction = 'y'; | |
void addition(float firstNum, float secondNum) | |
{ | |
cout << " Addition: " << firstNum << "+" << secondNum << "="; | |
cout << firstNum + secondNum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
float fr, sc, result; | |
char action1; | |
cout << " Enter the first number: "; | |
cin >> fr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
using namespace std; | |
class calculator | |
{ | |
private: | |
float answer; | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Running the script only by root | |
[ "$EUID" != 0 ] && echo "You have to run this script with superuser" && exit 1 | |
MEMINFO="cat /proc/meminfo" | |
# # Get memory information | |
MEM_FREE="$( $MEMINFO | grep MemFree | tr -cd [:digit:] )" | |
MEM_FREE_MIB="$(expr $MEM_FREE / 1024)" |