79 Posted Topics

Member Avatar for Intrade

How would one do this? I've tried extended searches for this and apparently any time I mention WoW and a socket (in reference to WoW the game and socket as in the socket API for Lua), I get a bunch of crap about socketing items in WoW and not any …

0
69
Member Avatar for Intrade

I'm sure this has already been done, but to practice understanding Data Structures better I decided to try making one of my own, given only an idea of what type of functionality I want, a pencil and some paper (as well as .txt file, modified into a .java file =p …

Member Avatar for Intrade
0
129
Member Avatar for msteele

You're looking at the right language, you're just not looking hard enough! =) I don't want to say anything more than that. I'd rather leave the explanations to the experts, since I myself am tackling C++, running into more abstract problems than real-world ones.

Member Avatar for siddhant3s
0
95
Member Avatar for usman.mani

I can't tell if this is a joke or not. It sounds like a homework question. How about doing a little bit of research on Data Structures and on information represented through an array? As for hacking tips on cracking your friends password, I don't know. I don't like cracking …

Member Avatar for Intrade
-1
106
Member Avatar for mimio134

[QUOTE=siddhant3s;885195]This is for you: Click [URL="http://www.youfail.org/"]Here[/URL][/QUOTE] Why even bother clicking it? You can see what it says just by hovering over it XD

Member Avatar for Sky Diploma
0
2K
Member Avatar for gretty

Ok I think I'm misunderstanding something here. When you mean a string of 5 arrays you really mean an array of depth 5 that can store strings? Also, are we at all backtracking? And what is really the first character? If we try using an implementation that parses your line …

Member Avatar for siddhant3s
0
265
Member Avatar for trickx0729

Hmm, to do something like this in Java I'd assume that you would have to create code to handle these kind of problems-- Potential Pseudocode [icode] -At startup, run program and have a thread that constantly checks if you have a web browser running such as FireFox or Internet Explorer, …

Member Avatar for PhiberOptik
0
667
Member Avatar for fwso

If you're good with algorithms you'll probably be ok. If not then good luck? I guess that's not the only issue though. There are also other things to consider such as space an application can (or will) take up, how long something will take to run and knowledge about particular …

Member Avatar for peter_budo
0
323
Member Avatar for Intrade

Without using some new language like Perl, how would one be able to access a web-page, given specific session information? And also, which C/C++ libraries are good for doing this kind of job? If this is at all a weird question, I'll explain. I'd like to be able to write …

Member Avatar for kvprajapati
0
145
Member Avatar for Intrade

I'm trying to figure out how to merge to full, complete binary heaps if their heights differ by more than 1. For example, a heap with 7 elements merged with a heap with 31 elements, etc. Here's my Java Code for the problem. I can't quite figure out what I'm …

0
79
Member Avatar for Intrade

I don't get it... Why is it that whenever I view posts of homework assignments and projects that a fair amount of the time (in Computer Science or C++), it seems as if-- Oh hang on. I already know what'll happen from here. If I don't write a topic that …

Member Avatar for MidiMagic
0
220
Member Avatar for richhoggan

Hex number: AD which is 16^1 * 10 + 16 ^ 0 * 13 which is 160 + 13 = 173, Hex number: 53 which is 16^1 * 5 + 16^0 * 3 = 83 So the sum of 173 and 83 is 256, so your hex result should be …

Member Avatar for Intrade
0
442
Member Avatar for seriousgeek

Mind if I ask why you want to create your own Web Browser? If I ever thought about taking on a project like this, I'd at least look up the definition of what it is I'm trying to make (or remake) if one exists. [url]http://en.wikipedia.org/wiki/Web_Browser[/url] From that definition alone, you're …

Member Avatar for Upsilon
0
89
Member Avatar for CPPRULZ

[QUOTE=CPPRULZ;835262]It is my understanding that in C++ objects of derived classes invoke the derived class' constructor but before the body is executed the base class' constructor is invoked and takes effect and then the derived class' constructor's body is executed. If this knowledge is correct, then what happens if the …

Member Avatar for ArkM
0
98
Member Avatar for psankisa

Honestly, you're not giving us enough information. This is what I managed to come up with, based on many assumptions-- [code=c++] #include <iostream> using std::cout; using std::cin; using std::endl; using std::size_t; // determines the difference between two sets // this function assumes that one set is the subset of the …

Member Avatar for Intrade
0
125
Member Avatar for CPPRULZ

Is there a specific reason why you are intermingling C++ and C-like data storage? If you want to store characters like immutable strings, you should be using const char arrays as opposed to char arrays. But that's besides the point. What you're doing is assigning a const char array of …

Member Avatar for Ancient Dragon
0
128
Member Avatar for novice007

For one, which operations are allowed? You said "any" operation, but are we talking strictly binary, or any kind of operation between a, b and c? Also notice the immediate difficulty of using XOR alone - if a, b and c are all the same number, how can you possible …

Member Avatar for Intrade
0
601
Member Avatar for Intrade

Why is it that when I attempt to repaint the entire Applet, the screen flashes (as if the repaint requests are slowed down due to many details being painted all at once), whereas a repaint to a JPanel added to the ContentPane of the JRootPane doesn't flash at all? Then …

Member Avatar for Ezzaral
0
126
Member Avatar for viper34j

[QUOTE=thoughtcoder;834724]C++ doesn't have automatic memory management, which is a very big deal. This means it takes a lot of knowledge to use the language efficiently. The language might be tolerable to people who have this knowledge, but not to those who lack it.[/QUOTE] The C++ language by itself doesn't have …

Member Avatar for Intrade
0
215
Member Avatar for JIMBO37167

[QUOTE=Ezzaral;833196]>If my assignment is right let me know but I need someone to explain to me why it is right. Why? Are you completing them through [URL="http://en.wikipedia.org/wiki/Automatic_writing"]automatic writing[/URL] or [URL="http://en.wikipedia.org/wiki/Mediumship"]channeling[/URL] or something?[/QUOTE] Although this was harsh, it was hilarious. Win.

Member Avatar for thoughtcoder
0
113
Member Avatar for tomtetlaw

Your list is incorrect, because you assume that t is a pointer of some type, when it might not be. Consider your own example when you declare a list with the double type, then this happens-- [code=c++] class list<double> { int sz; double elem; public: // default constructor attempts to …

Member Avatar for Intrade
0
108
Member Avatar for Carrots

Posting more than once is counterproductive. Explicitly declare your doubly-linked list to store references to Shapes.

Member Avatar for Intrade
0
126
Member Avatar for lllllIllIlllI

I think you need to add a CODE BASE parameter with a value that specifies where your .class file is located. Without it, I don't think the AppletViewer can locate your .class file. I don't know enough about the JDK to verify this, but I do recall having a similar …

Member Avatar for lllllIllIlllI
0
365
Member Avatar for denniskhor

[QUOTE=denniskhor;832225][CODE] private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ]"); jTextArea2.append("Part of Speech Result:\n"); for(int i = 0; i < POS.length; i++) { if (POS[i].equals("makan")||POS[i].equals("kerja")) { jTextArea2.append((POS[i] + "/KK" + " | ")); } else if (POS[i].equals("sakit")||POS[i].equals("cantik")) { jTextArea2.append((POS[i] + "/KS" + " …

Member Avatar for denniskhor
0
99
Member Avatar for denniskhor

You can make a class that handles sentences by accepting String input in the Constructor, storing the original String in a reference variable, then stores the Tokenized-version of the String in another appropriate reference variable then make another String array of equal length of the tokenized on and iterate through, …

Member Avatar for sillyboy
0
160
Member Avatar for Intrade

Every time I attempt to write a program of my choice, I immediately get a mind block and I'm stuck on the project for awhile not because I don't understand the project, but because I've written so many programs that it has gotten to the point where I don't want …

Member Avatar for Ezzaral
0
81
Member Avatar for msalman

Keep in mind that your vector stores parent objects, and when you push_back (or add) a child object to the vector, you're assigning the members that a parent object would know about to some copy that is stored in the vector. To get the polymorphic behavior that you want, consider …

Member Avatar for msalman
0
166
Member Avatar for winrawr
Member Avatar for Intrade

[url]http://en.wikipedia.org/wiki/Memory_hierarchy[/url] Is this accurate? For example, whenever I am playing WoW directly from my iPod I realize that the application load time and (sometimes) run-time is much slower than if I were playing directly from my HDD. Maybe I'm misunderstanding something? Then again since its an application it is (mainly) …

Member Avatar for stephen84s
0
70

The End.