Code Example C++

Sunday, December 27, 2015

Comparing strings in C++



#include <iostream>
#include <vector>
using namespace std;
int main ()
{
  std::string password = "hash";
  std::string pass = "hash";

  if ( password==pass){ std::cout << "password found "<< password << endl;
  return 0;
  }else{
cout << "password and pass are not equal" << endl;
}return 0;
}
Posted by Unknown at 12:11 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Noteworthy Links

  • decred

About Me

Unknown
View my complete profile

Blog Archive

  • ►  2016 (15)
    • ►  December (2)
    • ►  November (1)
    • ►  October (2)
    • ►  August (4)
    • ►  January (6)
  • ▼  2015 (19)
    • ▼  December (19)
      • BASH script for creating lookup cards
      • BASH read from a file and do something with it.
      • BASH merging wordlists
      • Dictionary expander written in C (not mine)
      • Comparing strings in C++
      • Unfinished brute force example
      • Open a port on Windows firewall C
      • Photo gallery generator
      • yet another page generator
      • options for hash types
      • turn your wordlist into a webpage.
      • Palindrome wordlist generators C++ ultra simple
      • SHA512 plaintext pairs
      • Automation with system()
      • Creating web directory with ls and some C++
      • Looping through ascii characters in C++
      • Simple hash plaintext pair generator
      • Crude way to use command line arguments
      • Simple example of C++ and OpenSSL brute force crac...
Travel theme. Powered by Blogger.