Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Suggestion Please Pin
Mike Hankey16-Mar-08 6:34
mveMike Hankey16-Mar-08 6:34 
GeneralRe: Suggestion Please Pin
Christian Graus16-Mar-08 11:06
protectorChristian Graus16-Mar-08 11:06 
GeneralA System for versioning .doc files over .... Pin
Pooya Musavi15-Mar-08 20:31
Pooya Musavi15-Mar-08 20:31 
QuestionRe: A System for versioning .doc files over .... Pin
pmarfleet16-Mar-08 0:12
pmarfleet16-Mar-08 0:12 
General2D Platformer (XNA) Pin
MasterSharp15-Mar-08 17:39
MasterSharp15-Mar-08 17:39 
GeneralRe: 2D Platformer (XNA) Pin
Christian Graus16-Mar-08 11:12
protectorChristian Graus16-Mar-08 11:12 
GeneralRe: 2D Platformer (XNA) [modified] Pin
MasterSharp16-Mar-08 17:12
MasterSharp16-Mar-08 17:12 
QuestionNeed Help with C#coding Pin
ADTC#15-Mar-08 13:47
ADTC#15-Mar-08 13:47 
I am trying to implement an ADT specification for a SET and i have got the specification now implementing the interface with C# is the problem. Can someone help me with coding it in C#


<br />
// File: SetInterface.cs<br />
// Set ADT Specification<br />
using System;<br />
namespace SetInterface<br />
{<br />
	// invariant: Cardinality >= 0<br />
	public interface ISet<br />
	{<br />
		// Pre: true<br />
		// Post: return the cardinality of the set<br />
		int Cardinality {get;}<br />
<br />
		// Pre: true<br />
		// Post: Object element is contained in the set and the <br />
//	   cardinality increases by 1<br />
		void Add(Object element);<br />
<br />
		// Pre: Object element is contained in the set<br />
		// Post: Object element is not contained in the set and the <br />
//	   cardinality decreases by 1<br />
		void Remove(Object element);<br />
<br />
		// Pre: true<br />
		// Post: return true if Object element is contained in the set; <br />
//	   otherwise, return false.<br />
		bool IsMember(Object element);<br />
<br />
		// Pre: true<br />
		// Post: return true if Cardinality = 0; otherwise, return false.<br />
		bool IsEmpty();<br />
 <br />
		// Pre: true<br />
		// Post: return true if all elements in the set are contained in <br />
//	   set anotherSet; otherwise return false.<br />
		bool IsSubsetOf(ISet anotherSet);<br />
<br />
		// Pre: true<br />
		// Post: return true if all elements in this set are contained in <br />
//	   set anotherSet and all elements in set anotherSet are <br />
//	   also contained in this set; otherwise, return false.<br />
		bool IsEqual(ISet anotherSet);<br />
<br />
		// Pre: true<br />
		// Post: return a set that contains all elements in set <br />
//	   anotherSet and all elements in this set<br />
		ISet Union(ISet anotherSet);<br />
<br />
		// Pre: true<br />
		// Post: return a set that contains elements in both set <br />
// 	   anotherSet and this set<br />
		ISet Intersection(ISet anotherSet);<br />
<br />
		// Pre: true<br />
		// Post: return a set that contains elements that are contained <br />
//	   in this set, but are not contained in set anotherSet<br />
		ISet Difference(ISet anotherSet);<br />
	}<br />
}

GeneralRe: Need Help with C#coding Pin
Colin Angus Mackay15-Mar-08 14:15
Colin Angus Mackay15-Mar-08 14:15 
GeneralRe: Need Help with C#coding Pin
Paul Conrad15-Mar-08 14:48
professionalPaul Conrad15-Mar-08 14:48 
GeneralRe: Need Help with C#coding Pin
darkelv15-Mar-08 18:22
darkelv15-Mar-08 18:22 
GeneralRe: Need Help with C#coding Pin
Christian Graus16-Mar-08 11:11
protectorChristian Graus16-Mar-08 11:11 
GeneralOffscreen Screencapture Pin
User 226147415-Mar-08 12:20
User 226147415-Mar-08 12:20 
Generalkeyboard input Pin
sakirah15-Mar-08 9:54
sakirah15-Mar-08 9:54 
GeneralRe: keyboard input Pin
User 665815-Mar-08 10:07
User 665815-Mar-08 10:07 
GeneralRe: keyboard input Pin
MarkB77715-Mar-08 14:14
MarkB77715-Mar-08 14:14 
GeneralRe: keyboard input Pin
sakirah15-Mar-08 14:38
sakirah15-Mar-08 14:38 
QuestionInstalling a Software Developed using Dot net bar Pin
Krazy Programmer15-Mar-08 7:18
Krazy Programmer15-Mar-08 7:18 
GeneralRe: Installing a Software Developed using Dot net bar Pin
parth.p15-Mar-08 7:26
parth.p15-Mar-08 7:26 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Krazy Programmer15-Mar-08 7:31
Krazy Programmer15-Mar-08 7:31 
GeneralRe: Installing a Software Developed using Dot net bar Pin
parth.p15-Mar-08 7:38
parth.p15-Mar-08 7:38 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Not Active15-Mar-08 12:46
mentorNot Active15-Mar-08 12:46 
GeneralRe: Installing a Software Developed using Dot net bar Pin
parth.p15-Mar-08 15:24
parth.p15-Mar-08 15:24 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Not Active15-Mar-08 16:08
mentorNot Active15-Mar-08 16:08 
GeneralRe: Installing a Software Developed using Dot net bar Pin
Krazy Programmer15-Mar-08 20:19
Krazy Programmer15-Mar-08 20:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.