|
From: chea s. o. <y2k...@ya...> - 2003-10-22 15:47:21
|
\\\\\\\\\\\\\\\\\BEGIN\\\\\\\\\\\\\\\\\\\\\\\\\\\
inline bool lt_nocase(char c1, char c2) { return
tolower(c1) < tolower(c2); }
int main()
{
char A3[] = {'a'};
char A4[] = {'a','b'};
const int N3 = sizeof(A3);
const int N4 = sizeof(A4);
cout<< "Union of A3 and A4: ";
cout<<"{" ;
set_union(A3, A3 + N3, A4, A4 + N4,
ostream_iterator<char>(cout,", "),lt_nocase);
cout<<"}"<<endl;
cout << endl;
system("pause");
}
//////////////////////////END////////////////////////
do anyone of u have use the algo function b4?
i need to do union and intercept at the same time
just like """Au(BnC)"""
may i know how can i combile both oeprator 2gether?
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
|