Code:
char hash2[80] = { 0x0F, 0x0E, 0x1A, 0x11, 0x17, 0x0F, 0x16,
0x1D, 0x12, 0x18, 0x0E, 0x19, 0x0F, 0x17,
0x17, 0x1F };
Printable View
Code:
char hash2[80] = { 0x0F, 0x0E, 0x1A, 0x11, 0x17, 0x0F, 0x16,
0x1D, 0x12, 0x18, 0x0E, 0x19, 0x0F, 0x17,
0x17, 0x1F };
A character array with a maximum length of 80 with 16 of those values filled in with hexadecimal ascii values, I guess.
so for e.g, take the first hex value 0x0F
whats that?
Those are some strange chars though like shift in, shift out, crap like that.
The first one is shift in, the second one is shift out. Go to www.lookuptables.com
ah ok thanks. another question while im here
in c++ a backslah is written as \\ right?
so if i wanted 10 backslahes would that be 20 \\'s
char backslahesh[20] = "\\\\\\\\\\\\\\\\\\\\";
is there any easier way?
in other langauges i can do something like str(\,20) etc?
I'm not sure, I never had to do more than one backslash at a time and I guess I'd just use 20 of them if I needed 10.
Try This
Code:#include <iostream>
using namespace std;
int main()
{
int i=0;
while(i++<20)
cout<<"\\"<<endl;
return 0;
}
If you want 10 backslashes in a string literal, there's no easier way.
If you want to fill a std::string with 10 slashes, you can do
Code:std::string str(10, '\\');