### DaRealDevelopMaster's blog

By DaRealDevelopMaster, history, 2 months ago,

I made a very hard problem my hard problem try it

• -28

By DaRealDevelopMaster, history, 2 months ago,

hi I made a contest with two problems one very easy and one medium try solving them https://codeforces.com/group/5bPydDlB8D/contests

• -13

By DaRealDevelopMaster, history, 3 months ago,

## There is a math and a logic around it.

• -28

By DaRealDevelopMaster, history, 3 months ago,

### Note : code in C++

/**
Made by : DaRealDevelopMaster
*/
#include <bits/stdc++.h>
#include <Windows.h>
#include <cstdlib>
using namespace std;
int main()
{
cout << "Command Prompt\n";
cout << "This is the secound time making this from start\n";
cout << "Version 1.1.0\n";
cout << "Choose a prefix ex(/,#,;,\) : ";
char prefix;
cin >> prefix;
cout << "\n";
while(true){
string s;
cin >> s;
if(s.substr(1,10) == "palindrome"){
string palindrome1;
cin >> palindrome1;
string palindrome2 = palindrome1;
reverse(palindrome2.begin(),palindrome2.end());
if(s[0] != prefix){
cout << "Error code#1 (UNKNOWN PREFIX)\n";
continue;
}
if(palindrome1 == palindrome2){
cout << "Yes\n";
}
else{
cout << "No\n";
}
}
else if(s.substr(1,5) == "sound"){
if(s[0] != prefix){
cout << "Error code#1 (UNKNOWN PREFIX)\n";
continue;
}
cout << "\a";
}
else if(s.substr(1,6) == "prefix"){
char prefix2;
cin >> prefix2;
if(s[0] != prefix){
cout << "Error code#1 (UNKNOWN PREFIX)\n";
continue;
}
if(prefix2 == prefix){
cout << "You choose the same prefix\n";
}
else{
cout << "Your new prefix is : " << prefix2 << "\n";
}
prefix = prefix2;
}
else if(s.substr(1,5) == "count"){
int x;
cin >> x;
if(s[0] != prefix){
cout << "Error code#1 (UNKNOWN PREFIX)\n";
continue;
}
for(int i = 0;i <= x;i++){
cout << i << "\n";
Sleep(1000);
}
cout << "\a";
}
else if(s.substr(1,5) == "timer"){
int x;
cin >> x;
if(s[0] != prefix){
cout << "Error code#1 (UNKNOWN PREFIX)\n";
continue;
}
x++;
while(x--){
cout << x << "\n";
Sleep(1000);
}
cout << "\a";
}
else if(s.substr(1,5) == "alarm"){
int x;
cin >> x;
if(s[0] != prefix){
cout << "Error code#1 (UNKNOWN PREFIX)\n";
continue;
}
x++;
while(x--){
Sleep(1000);
}
cout << "\a\a\aAlarm is up\a\a\a\n";
}
else if(s.substr(1,5) == "close"){
cout << "Thanks for using my Command Prompt\n\n";
return 0;
}
else if(s.substr(1,6) == "hacker"){
system("color 02");
cout << "YOU ARE NOW A HACKER\n";
}
else{
cout << "Error code#2(UNKNOWN COMMAND)\n";
}
}
}



### 1./palindrome 123

If the number/string you put was a palindrome the program will print yes else will preint no.

### 2./sound

Will make a sound beep.

### 3./prefix !

Will change the prefix from / to ! or any thing you want.

### 4./count 5

Will count from 0 to 5 and a second delay between every two number.

### 5./timer 5

Timer is the opposite of count it will set a timer for 5 to 0 with a second between every two number.

### 6./alarm 5

Will wait 5 second then print Alarm is up.

### 7./close

Will close the program.

### Thanks for reading.

• -34

By DaRealDevelopMaster, history, 3 months ago,

# Every programer first code

C++ cout << "Hello World";

Java System.out.println("Hello World");

Python print("Hello World")