Forum: Legacy and Other Languages 13 Days Ago |
| Replies: 2 Views: 319 Hi,
I am familiar with the rules of this site and wasn't looking for a solution but rather something that can help me start of my solution with. However, here is a solution that I've come up with... |
Forum: Legacy and Other Languages 14 Days Ago |
| Replies: 0 Views: 266 I just want to confirm my answers for prolog problems.
i)Every animal is mortal
∀X. (Animal(X)→ Mortal(X))
ii)If nobody is both a child and a dog then if Fido is a dog then Fido cannot be a... |
Forum: Legacy and Other Languages 14 Days Ago |
| Replies: 2 Views: 319 Hi,
I need to write a prolog predicate for diff/3 without using the built-in predicate subtract/3. The diff/3 predicate for example gives as follows:
?-diff([1,3,3,4],[4,5,8],X)
X=[1,3]
The... |
Forum: Website Reviews Sep 5th, 2009 |
| Replies: 3 Views: 1,061 Hello everyone,
I'm a CE major and come to this website for programming help but I'm hoping I can get help with this.
My uncle has a website called mogulgallery.com and we're all have trouble... |
Forum: C++ Jan 31st, 2009 |
| Replies: 1 Views: 616 hi,
Here is my code on the three sorts. I've place in the counter called icompare&imove for insertion sort; bcompare&bmove for bubble sort and scomare and smove for selection sort. I've also used... |
Forum: C++ Jan 31st, 2009 |
| Replies: 2 Views: 2,284 hi,
can someone please tell me what is the no. estimated for compares and data moves required by these three algorithms to sort N strings. And what is the order for calculating the time measurement... |
Forum: C++ Jan 29th, 2009 |
| Replies: 2 Views: 235 hi,
comparecount is an integer counter that I want to put inside the program so whenever the program compares two values of the list I increment the counter.
In the same manner i'm also trying to... |
Forum: C++ Jan 29th, 2009 |
| Replies: 2 Views: 235 hi,
i've an insertion sort algorithm and a selection sort algorithm.
i'm not sure how to measure the performace(best case and worst case in terms of N= size of the list, deque, vector etc.)
i'm... |
Forum: C++ Oct 11th, 2008 |
| Replies: 11 Views: 1,530 ok. i got the program to run finally.
now i've this extention to the program to make an algorithm(written)..
so this is the question:
Create an Object Oriented design for a two player card game.... |
Forum: C++ Oct 10th, 2008 |
| Replies: 11 Views: 1,530 ok now the program is running but the 3 numbers printed out per hand, some numbers still come above 52 which shouldnt' be the case. Also I'm trying to print the enum values with the numbers.
... |
Forum: C++ Oct 10th, 2008 |
| Replies: 11 Views: 1,530 This is my code
[#include<iostream>
#include<cstdlib>
using namespace std;
class Card
{
public: enum Suite
{ |
Forum: C++ Oct 10th, 2008 |
| Replies: 11 Views: 1,530 ok i removed that "stdafx.h"
and fixed some other tiny declaration errors but and it complies now but i've a run time error saying that stack around hand1 was corrupted...and it shows me 3 values... |
Forum: C++ Oct 9th, 2008 |
| Replies: 11 Views: 1,530 hi thanks for the help. I made all these changes and I think its fine but somehow it still isn't running. it gives me an error saying Error 1 fatal error C1083: Cannot open include file: 'stdafx.h':... |
Forum: C++ Oct 9th, 2008 |
| Replies: 11 Views: 1,530 firstly hi all,
i''d like to intrroduce myself. Im a new C++ programmer..hardly..but trying..so yes its frustrating with the error and syntax mainly. Anywayz, this is a card game with 2 classes and... |