Oh yeah, (1) its a direct snippet from my code so, there are actually a bunch of other else ifs later on.
(2) I keep forgetting that :P
Type: Posts; User: AsleeKaizoku
Oh yeah, (1) its a direct snippet from my code so, there are actually a bunch of other else ifs later on.
(2) I keep forgetting that :P
Ahhh! Bloddy hell, why didn't I think of that? That makes it so much easier :)
Regex regexPassword = new Regex(@".*[^a-zA-Z0-9].*");
if (!regexPassword.IsMatch(txtPass.Text.ToString().Trim()))...
Im trying to make a regular expresion which...
1) Consist of at least one non alphanumeric character (not including white spaces)
2) At least 7 characters long
So it would match something...
I keep compiling my stuff and I get this in the end...
ld: 0711-224 WARNING: Duplicate symbol: .strcmpFPCcPCc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
...
Oh, nevermind, its sorted by Ascii.
Thanks for the suggestion of strcmp
I got it to sort by ASCII order... But How do I sort by Alphabetical Ascii?
Such as...
instead of: A, B, C, D, a, b, c, d
it will be: A, a, B, b, C, c, D, d
I was just wondering how do I sort a 2 dimensional array?
char testArray[5][11];
strcpy( testArray[0], "hello");
strcpy( testArray[1], "Hello");
strcpy( testArray[2], "1hello");
strcpy(...
Anyways, I got it working!
Thanks a bunch guys!
Hahahaha, Yeah I noticed that. I placed STRCPY instead.
But wouldn't it make a difference in this case?
Its empty to begin with so I guess strcat is passable right?
OH! Oh my! Thats so embarassing!
My bad =)
Im trying to do this...
int main()
{
char str1[5][11];
char str2[6] = "Mou";
char * cmpValue;
int x = 0;
How would I compare that?
ptr = strstr(str1,str2);
if (ptr != '0')
......
Will this work?
Just a question.
What is a null pointer?
Ok maybe my topic is extremely vague.
For example if I had an 2-d character array called:
char testArray[5][11];
which contains:
1) Hello
2) Pirate
3) Beef
4) Youtube
So for example:
int hello1 = 0;
char hello2[5];
hello2 = hello1;
will this work?
How can i put a INT value to a character array?
So what I want is:
char ASCII_CODE[] <--- 65
For example.
If I had an int of 65, how do I change it so that it turns into a A.
Or an int of 118 to v?
Anyone knows how to do this?
Thanks in advance