From: Ira W. Snyder Date: Sat, 27 Oct 2007 21:10:53 +0000 (-0700) Subject: Remove 'using namespace std;' X-Git-Tag: optimized~1 X-Git-Url: https://www.irasnyder.com/gitweb/?p=aes.git;a=commitdiff_plain;h=6ff9ea8f3eec811b821ea30283bf195f2dfc5595;hp=f06d505218bd3f8c05e9c64f0705bfa3066f665c Remove 'using namespace std;' This is a couple of little fixes so that I can remove the 'using namespace std;' from aes.hpp. Also, remove some old debugging code from aes.cpp. Signed-off-by: Ira W. Snyder --- diff --git a/aes.cpp b/aes.cpp index 883d3b3..dff959e 100644 --- a/aes.cpp +++ b/aes.cpp @@ -421,10 +421,7 @@ void AES::AddRoundKey (byteArray& state, const wordArray& w) const byteArray wBytes = word2bytes (w[i]); for (j=0; j #include #include -using namespace std; // Byte and Byte Array types typedef unsigned char byte; diff --git a/problem3.cpp b/problem3.cpp index df343bd..10651d8 100644 --- a/problem3.cpp +++ b/problem3.cpp @@ -4,7 +4,7 @@ int main (int argc, char *argv[]) { - std::ifstream fin ("Problem3.out", ios::binary); + std::ifstream fin ("Problem3.out", std::ios::binary); int i; byteArray key;