79 Posted Topics
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 … | |
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 … | |
Re: 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. | |
Re: 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 … | |
Re: [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 | |
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
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 … | |
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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: [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 … | |
Re: [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. | |
Re: 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 … | |
Re: Posting more than once is counterproductive. Explicitly declare your doubly-linked list to store references to Shapes. | |
Re: 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 … | |
Re: [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" + " … | |
Re: 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, … | |
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 … | |
Re: 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 … | |
[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) … |
The End.