https://github.com/naemazam/word-to-binary-convert
Convert Your Love letter to Binary, Even Your GF can't Understand
https://github.com/naemazam/word-to-binary-convert
cpp naemazam word-to-binary
Last synced: 4 months ago
JSON representation
Convert Your Love letter to Binary, Even Your GF can't Understand
- Host: GitHub
- URL: https://github.com/naemazam/word-to-binary-convert
- Owner: naemazam
- Created: 2021-11-20T17:41:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-20T17:46:40.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T13:57:07.242Z (9 months ago)
- Topics: cpp, naemazam, word-to-binary
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Word to Binary Convert
Convert Your Loveletter to Binary
## Simple Knowledge
A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit, or binary digit.
## CPP Code
Copy code and test on Any Editor
```cpp
#include
using namespace std;
int main()
{
string a;
cin>>a;
for(int i=0;i c;
//convert from dec to bin
while(b!=0)
{
c.push_back(b%2);
b/=2;
}
//Input characters
cout<=0;j--)
cout<