[Solved] Why my strings are not going to be XOR?

Just another try on the code base of the question , #include<iostream> #include<string.h> using namespace std; int main() { string pass; string enc=”akdhigfohre”; string x = “”; string y = “”; cout<<“Enter new password: “; cin>>pass; cout<<“\n\nYour New Password is:” << pass<<endl; for(size_t i = 0; i < pass.size(); ++i){ x += pass.at(i)^enc.at(i%enc.size()); } cout<<“\n\nEncrypted … Read more

[Solved] Linux C++ new operator incredibly slow [closed]

Given that 98% of the time is spent in that function, I rewrote your “get a number” function: int Ten_To_One_Million_Ten(void) { unsigned Number = (((unsigned)rand() << 5) + (unsigned)rand()%32) % 1000000 + 10; assert(Number >= 10 && Number <= 1000010); return Number; } Now, on my machine, using clang++ (Version 3.7 from about 4 weeks … Read more