corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Does anyone know Java????


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Does anyone know Java????
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 10:24   View User's Profile U2U Member Reply With Quote

please help, cos im fookin stuck.

What are the data structures, cos i have to write things about them and i have NO CLUE.

before anyone says, i have already tried Google and a few others.


HELP

Steve.
Hillzlo
Member

Registered: 9th Nov 02
Location: Noitacol
User status: Offline
9th Jun 03 at 10:25   View User's Profile U2U Member Reply With Quote

www.whatis.com ?
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 10:28   View User's Profile U2U Member Reply With Quote

sorry dude, that didn't really help all that much.

Anyone else????

Steve
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 10:32   View User's Profile U2U Member Reply With Quote

depends wot kinda data structure ur after.

i found this
http://www.nist.gov/dads/HTML/datastructur.html

i've jus finished java for the yr its a bastard
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 10:35   View User's Profile U2U Member Reply With Quote

many thanx john.

Will ripp some of this off as my own

Steve.
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 10:36   View User's Profile U2U Member Reply With Quote

thats all we do
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 10:44   View User's Profile U2U Member Reply With Quote

Tis a wicked site mate, thanx again.

I owe you
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 10:47   View User's Profile U2U Member Reply With Quote

no probs i wanna here ur install

i just found it on google that site, my notes from uni were too long
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 10:57   View User's Profile U2U Member Reply With Quote

you going up PV2003 or Maxlive??

Cos im up at both of them, as well as Hemel @ the end of this month.

Steve.

Oh also, while your still online. i have another question. WTF is.

Commented listing of your java source code, implementing your chosen scenario.

Eh??

Steve.
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 11:01   View User's Profile U2U Member Reply With Quote

isn't that like eg: // declaring int a

comments as in the end of lines of code so u know wots goin on

jus a guess like c++

nah not sure on pv2003, would b fun. otherwise donny south or yeah mayb hemmel that sounds fun

[Edited on 09-06-2003 by John_C]
Mikorsa16v
Member

Registered: 2nd Sep 02
Location: Burgess Hill, West Sussex
User status: Offline
9th Jun 03 at 11:02   View User's Profile U2U Member Reply With Quote

just means commenting out your code, to show other programmers what bits do
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 11:08   View User's Profile U2U Member Reply With Quote

OK wicked, how about this then........

Description of your implemented classes, together with a diagram clearly showing the class hierarchy and interaction, and specifications of each class.

Again WTF????

Steve
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 11:23   View User's Profile U2U Member Reply With Quote

have u done n e java or c++ this yr
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 11:26   View User's Profile U2U Member Reply With Quote

Yeah, got a merit in C and C++, just dont understand Java for some reason.
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 11:29   View User's Profile U2U Member Reply With Quote

u use classes in c++, a class is a step on from a struct except unless specified its private. members which r private can only b accessed by member functions

thats the gist n e way

i'm glad u've done sum cause i haven't well a bit. c++ sucks

[Edited on 09-06-2003 by John_C]
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 11:31   View User's Profile U2U Member Reply With Quote

could you go a bit more in depth.??

Pretty please I will let you have a ride in my car.

Steve
Mikorsa16v
Member

Registered: 2nd Sep 02
Location: Burgess Hill, West Sussex
User status: Offline
9th Jun 03 at 11:33   View User's Profile U2U Member Reply With Quote

linked lists suck in C++, still cant fully understand em! last assignment blagged a bit i think
Mikorsa16v
Member

Registered: 2nd Sep 02
Location: Burgess Hill, West Sussex
User status: Offline
9th Jun 03 at 11:35   View User's Profile U2U Member Reply With Quote

a class is a bit like a function but is declared at the start of the program a class has private (maybe) or protected variables and the function code is written in the public section, i shall have a look for some C++ example i wrote, may be some help to ya
John_C
Member

Registered: 5th Mar 03
Location: South east, Bromley
User status: Offline
9th Jun 03 at 11:35   View User's Profile U2U Member Reply With Quote

i'm looking at my notes there in pdf i can't copy and paste, its longgggg

classes r used mainly today instead of structs

cheers other ppl, snowy man get reading sum notes

[Edited on 09-06-2003 by John_C]
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 11:36   View User's Profile U2U Member Reply With Quote

PLease help more.

its the last thing and then i have finidhed for the year.

PPPLLLEEEAAASSSEEE
Mikorsa16v
Member

Registered: 2nd Sep 02
Location: Burgess Hill, West Sussex
User status: Offline
9th Jun 03 at 11:37   View User's Profile U2U Member Reply With Quote

/*
Program Saved As: cardObj.cpp
Written By: Mike
Date: 27/02/2003
Program Purpose: cards as objects
*/

#include <iostream>

using namespace std;

const int JACK = 11;
const int QUEEN = 12;
const int KING = 13;
const int ACE = 14;
enum Suit { clubs, diamonds, hearts, spades };

class Card{
private:
int number; //cards have two attributes their suit and value
Suit suit;
public:
Card()
{ } //empty constuctor which does nothing

Card(int n, Suit s):number(n), suit(s)
{ }

void display();
bool isEqual (Card);
};

void Card::display()
{
if((number>=2) && (number<=10))
cout << number << " Of ";
else
switch(number)
{
case JACK: cout << "Jack Of ";
break;
case QUEEN: cout << "Queen Of ";
break;
case KING: cout << "King Of ";
break;
case ACE: cout << "Ace Of ";
break;
}

switch(suit)
{
case clubs: cout << "Clubs \5";
break;
case diamonds: cout << "Diamonds \4";
break;
case hearts: cout << "Hearts \3";
break;
case spades: cout << "Spades \6";
break;
}
}
bool Card::isEqual(Card c2)
{
return ((number==c2.number)&&(suit==c2.suit));
}


int main()
{
Card temp, chosen, prize;
int position;

Card card1(7, clubs);
cout << "\nCard 1 Is The ";
card1.display();

Card card2(JACK, hearts);
cout << "\nCard 2 Is The ";
card2.display();

Card card3(ACE, spades);
cout << "\nCard 3 Is The ";
card3.display();

prize=card3;

cout << "\nI'm Swapping Card 1 and 3";
temp=card3;
card3=card1;
card1=temp;

cout << "\nI'm Swapping Card 2 and 3";
temp=card3;
card3=card2;
card2=temp;

cout << "\nI'm Swapping Card 1 and 2";
temp=card2;
card2=card1;
card1=temp;

cout << "\nNow, Where (1,2 or 3) Is The ";
prize.display();
cout << "? ";
cin >> position;

switch (position)
{
case 1: chosen=card1;
break;
case 2: chosen=card2;
break;
case 3: chosen=card3;
break;
}

if(chosen.isEqual(prize))
cout << "**** You Win! ****";
else
cout << "Sorry, You Lose!";
cout << "You Chose The: ";
chosen.display();
cout << endl;

return 0;
}

may be of some help, is quite simple you can see the class and how it works, hopefully
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 11:41   View User's Profile U2U Member Reply With Quote

Why thankyou Mike.

you think if i sent you my Java program, which isn't working.

You could sort it out. there are 15 errors. And i dont know what they are.

Steve
Mikorsa16v
Member

Registered: 2nd Sep 02
Location: Burgess Hill, West Sussex
User status: Offline
9th Jun 03 at 11:46   View User's Profile U2U Member Reply With Quote

i dont have a Java compiler mate! downloading one from sun isnt an option as im on dialup! LOL sorry mate, i have C++ compiler
SteveW
Member

Registered: 15th Jul 02
Location: Up in the clouds
User status: Offline
9th Jun 03 at 11:47   View User's Profile U2U Member Reply With Quote

Oh well it was worth a try

Really stuck, have no idea what im doing now
Mikorsa16v
Member

Registered: 2nd Sep 02
Location: Burgess Hill, West Sussex
User status: Offline
9th Jun 03 at 11:50   View User's Profile U2U Member Reply With Quote

can any one else help steve?
what about a book from amazon? jus a thought

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
What Java Compiler Is Standard? Mikorsa16v Geek Day 2 1303
13th Mar 03 at 16:02
by Mikorsa16v
 
help computer boffs groom Geek Day 33 2942
13th Nov 03 at 21:00
by Tim
 
How do you use the java multi upload thing jr General Chat 23 1342
25th Jun 06 at 14:35
by Gaz
 
Java help gavin18787 Geek Day 7 999
28th Feb 07 at 19:42
by _Allan_
 
Trouble with Azureus andy1868 Geek Day 8 926
30th Aug 07 at 17:29
by Richie
 

Corsa Sport » Message Board » Off Day » Geek Day » Does anyone know Java???? 29 database queries in 0.0215120 seconds