Need some help with programming
Post Reply
Quote
Re: Need some help with programming
Posted by Wild Card on Mon Dec 20th at 4:57am 2004


ait well I think I've failed. The only way I can think of doing it is with the damn arrays. I've tryed thinking of how to do it with a loop but I cant see how I would do to capture the characters in the text without using 2 arrays. Or a heck of a lot of variables. [addsig]



Quote
Re: Need some help with programming
Posted by Foxpup on Mon Dec 20th at 4:58am 2004


That's what an array is: a heck of a lot of varaiables. [addsig]



Quote
Re: Need some help with programming
Posted by Crono on Mon Dec 20th at 5:04am 2004


Case should really never matter almost every language has some library with a pre-written function to change case. C++ has tolower and toupper. Easy.

I'd honestly suggest using Java though, basically what I wrote could be slapped into Java or C++ (they have the same syntax).

Ew, Fortran. Can you hear it? All the programmers going insane when they get a compile error AFTER EIGHT HOURS OF COMPILING! ... on the older versions that is.

WC, I'd just suggest looking at some other data structures then JUST an array. I mean, a hash table would work pretty well I'd imagine, but again, I doubt Delphi has the ability.

Also, for Java editing, if you HAVE to use a suite (which I actually suggest) use Eclipse or something as such. It's pretty damn nice. They're releasing some C and C++ plug-ins too.

I just don't think you know enough to really solve this problem, and your choice for language is terrible. It's just going to make things harder. You're SUPPOSE to choose a suitable language for your problem and what you'd like to achieve (speed = C, Super Speed = Asm, polymorphism = C++, pseudo-OOP = Java, etc.)


[EDIT]

WC, I didn't say "use a loop instead of an array". Use them both.
(An array is much more then just a bunch of variables of the same type)


Maybe you should read up on Delphi arrays and then come back to this thread.

[addsig]




Quote
Re: Need some help with programming
Posted by Wild Card on Mon Dec 20th at 5:15am 2004


I've never heard of a hash table before.

I would try some basic programming in Java had I had an editor. But even on p2p networks I cant find it.

As for the advantages of languages, I didnt know that. And yes, I'll admit my knowledge in programming is very limited.

Im just scratching my butt on this one because it seems right (to me) but I just get some really weird outputs.

[addsig]



Quote
Re: Need some help with programming
Posted by Crono on Mon Dec 20th at 5:22am 2004


? quote:
I've never heard of a hash table before.

I would try some basic programming in Java had I had an editor. But even on p2p networks I cant find it.

As for the advantages of languages, I didnt know that. And yes, I'll admit my knowledge in programming is very limited.

Im just scratching my butt on this one because it seems right (to me) but I just get some really weird outputs.



Here:

http://eclipse.org/downloads/index.php

and Java:

https://jsecom16.sun.com/ECom/EComActionServlet;jsessionid=F6C4998344116D993C2C42351CAD9405
This is the 1.4 SDK, I'm not sure if you need the full SDK or just the JRE or whatever it is.

A hash table is a semi-complex data structure which combines an array and linear linked lists (you can also use doubly linked lists and circular linked lists and circular doubly linked lists). Thus my saying use Java (A PROGRAMMING LANGUAGE) over Delphi (A SCRIPTING LANGUAGE).

There's much more to what you're trying to do, that's why you're not getting it to work properly.

Oh well, have a look at some of Sun's Documentation on Java, I'm sure it'll help
[addsig]




Quote
Re: Need some help with programming
Posted by Wild Card on Mon Dec 20th at 5:29am 2004


downloading now, will read some, then head for bed, and read some more tomorow.

[addsig]





Post Reply