emscripten-core / emscripten-core/emscripten

how about a console session

Open
#18,091 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

is it possible to realise a terminal session like such ->

`
int main(int argc,char **argv) {
stringstream ss;

while(true) {
string line;
cin >> line;
ss << line << endl;

string result = md5(ss.str());

unsigned long ab = 0;
for(int i = 0;i < result.size();++i) {
for(int j = 0;j < (sizeof(ab) / sizeof(result[0])) && i < result.size();++i,++j) {
ab ^= result[i] << sizeof(result[0]) * j;
}
}

srand(ab);

string s = sentence();

cout << (char)(s[0] - 'a' + 'A') << s.substr(1) << "." << endl;

}

return 0;
}`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.