Hi.
I'm trying to use the using directive like a typedef in C++. Can I re-write the following to be legal in C# in any way ?
.....
using UidListType = System.Collections.Generic.List<UidType>;
using BodyTableType = System.Collections.Generic.Dictionary<string, UidListType>;
using...
Thanks for the discussion. I think everyone missed my original question about the set though.
Do you remember #include <set> ?
I just wanted something to insert values into and to have them automatically rejected, if they were not unique. Is this available in C# ?
Is there any eqivalent of S.T.L. sets in C# ?
Also, I read you can't have a static variable that is shared between all instances of a class. Is there a simple way to do it ?
Thanks anyway guys. It was actually an error I got when trying to put the <string, string> into the multimap. On the Sun CC compiler, it turns out you can only have <const string, string>. So that's why no one else was able to see those errors. CC is quite weird !
I'm having a problem with my multimap. I've looked on the internet, and I can't see anything different to what other people have done. I get one of those long and unhelpful errors. I know it's against the policy to post uni questions on here, but our C++ lecturer has gone to Italy and China for...
I'm new to SQL and have tried a number of ways to fix my "missing right parenthesis" error. It puts an asterisk under the keywork ORDER.
CREATE VIEW DRINKER_LIKES_PUB_LOC_VIEW (NAME, DRINK, PUB, STREET, ADDNO) AS
(
SELECT DRINKER_LIKES_PUB_VIEW.Name, DRINKER_LIKES_PUB_VIEW.Drink...
Thanks, I missed the CHECK.
However, it doesn't get rid of the error ? Any other ideas ?
Maybe it's becaue I'm trying to add 'GARDENING' to the already existing condition ? Do I have to delete the condition and re-write it ?
Hi,
I'm just starting out in the world of SQL and I wrote some code and got an error like this :
SQL>
SQL> ALTER TABLE Book
2 MODIFY CONSTRAINT Book_CHK1
3 (topic IN ('ART', 'ARCHITECTURE', 'BIOGRAPHY', 'CHILDREN', 'COMPUTER',
4 'COOKING', 'FOOD AND WINE', 'GARDENING', 'HEALTH', 'HISTORY'...
Hi,
I'm just starting out in the world of SQL and I wrote some code and got an error like this :
SQL>
SQL> ALTER TABLE Book
2 MODIFY CONSTRAINT Book_CHK1
3 (topic IN ('ART', 'ARCHITECTURE', 'BIOGRAPHY', 'CHILDREN', 'COMPUTER',
4 'COOKING', 'FOOD AND WINE', 'GARDENING', 'HEALTH'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.