527 Posted Topics
Re: Even if someone did do the project, they would never post the solution and keep it to themselves. That's how we roll =P | |
A religion typically consists of a being (or a collection of beings) that exists. Google isn't exactly a being, but it does exist. Some people even consider it a godlike entity. For a typical god, you provide a ritual or some kind of prayer. This prayer typically takes a long … | |
Re: You were nearly right! Here's a correction-- [code=c++] #include <iostream> #include <fstream> using namespace std; const int MAX = 30; struct node { char base; node* next; }; node* head; void initialise(); void insertion(char); void printlist(node& root); int main() { ifstream ins; char filename[MAX]; int count = 0; // initialize … | |
Re: Try creating a Red-Black Tree. See attached. | |
Re: What version of the JRE are you using on the MAC? | |
Re: Classes can be used for many things... The Programming perspective: -Restricting access to encapsulated data/ standing in for the same type (Proxy) -Abstractions for future data (Strategy, Bridge) -Adding functionality to existing objects with the same interface (Decorator) -Adapting an object to the interface of another (Adapter) -Providing a commonality … | |
Re: I hope I'm not out of place by asking this, but does it have something to do with calling conventions? [URL="http://msdn.microsoft.com/en-us/library/zxk0tw93(VS.71).aspx"]>_>[/URL] | |
Re: From what I understand, all objects are saved as .dat files for Java to reinterpret back into an object during deserialization. To save files with an extension, I'd assume you'd use FileOutputStream and specify the kind of File you'd like to save. If you mean to save an Object into … | |
Re: I've tried the above using tests with unsigned __int8, __int16, __int32 and __int64 (for the class and cast) and received either contiguous or non-contiguous results. More likely than not, we missed something (like padding factor for certain values), though I can't confirm this... *Heads for the C++ Object Model* >_> | |
Re: Are you required to use C headers/functions or are you allowed to use C++? | |
Re: I've just begun reading the AoA book, and the author points out that one of the benefits of Assembly is that it is faster than any HLL and can provide algorithms that HLL's cannot. I hope that's helpful >_> | |
Re: You may find these links helpful-- [URL="http://java.sun.com/javase/6/docs/api/javax/swing/package-summary.html"]javax.swing[/URL] which is adjacent to the .NET Frameworks. [URL="http://java.sun.com/javase/6/docs/api/java/util/concurrent/package-summary.html"]Threads/Concurrency[/URL] in the event that you need your application to do multiple operations for the end-user, though the EDT in javax.swing Components should be sufficient. If this is to be deployed on a Web Page for … | |
Re: Very interesting! Though, I'm not very familiar with digital circuits. Are you trying to union two components together so they act as one? | |
Re: Note: Before reading below, please note that I'm no longer a Console Gamer. These are opinions based on my previous experiences with games on different platforms. Keep that in mind before an attempt to flame. Now then... --------------------------- I'd play Goldeneye 007 or Perfect Dark on Nintendo 64 over Halo3 … | |
Re: It sounds like you need a map, or an algorithm to determine a match for a set amount of values. Personally, to get things working, I'd take the easy way out until I found a more efficient solution. What immediately comes to mind is something like this-- [code=c++] #include <iostream> … | |
I'm making a Servlet application using the a MVC-like implementation, however I'm slightly confused on how I should delegate concurrent modification of the state of the Model object? I intend to use a database to hold information from a given session for a particular individual (the data will be retrieved … | |
Re: You can try getting in touch with the recruiters to see what kind of skills they're seeking. You may also find yourself required to read or take a course on a different subject (such as Database Access/Administration via SQL/Oracle, XML, HTML (XHTML), C#, Java, .NET, etc), and possess other skills … | |
Re: [QUOTE=niek_e;685012]Perhaps: [code=cplusplus] char * str = "something"; std::cout << &str; [/code][/QUOTE] That would work, but here's a question for ya... What about individual characters? Is it possible to get the address of those, or are char values stored in a special way? | |
Re: [QUOTE=monkey_king;686372]For the sake of documentation, can you tell me where got this info. (for my boss) thanks[/QUOTE] If he is citing 8.5.3 that should be the chapter/item in the C++ standard documentation... | |
Re: Here's a way to filter out what you need without worrying about hideous "blocks" from the Scanner class-- [code=java] import java.util.Scanner; import java.io.*; import java.util.ArrayList; public class arrayManipulator{ public static void main(String... args) throws IOException{ ArrayList<Integer> myArray = new ArrayList<Integer>(0); BufferedReader s = null; try{ s = new BufferedReader(new FileReader("C:/Documents … | |
Re: [QUOTE=Priya_Aggarwal;685891]why do we need interfaces in java?,if the functions are to be defined in implementing class only then why declare these in an interface first?????????[/QUOTE] There needs to be some kind of simple commonality between classes. An interface allows for many benefits via the implementation of the Object Model and … | |
Re: [code=java] //assuming img is the reference-variable for an actual image final short AMOUNT = <insert amount of images you want>; Image images[] = new Image[AMOUNT]; // can now hold AMOUNT number of images images[0] = img; // assigns the address of img to the first indice of array images // … | |
Re: [QUOTE=darkagn;685745]Are you talking about the IDE or the java.beans package? If you mean the IDE then this link will help [url]http://www.netbeans.org/kb/[/url][/QUOTE] I think he means an extension of a HttpServlet or possibly a Bean implementation via a NetBeans JSP session where the tools are provided for manipulating the View and … | |
Re: Strongly recommended books-- -Java, How To Program 7th edition (Deitel & Deitel) -Head First Design Patterns I suggest reading both in parallel. You will find both to be an easy read (in my opinion at least) until you get to harder concepts in the 16+ chapters of Deitel&Deitel book or … | |
I was tinkering around with code in C++ last night trying to make a template algorithm that would be evaluated at compile time and also print information. Unfortunately, because std::cout and std::cin are references to objects and they aren't considered built in types (directly at least), I suppose the compiler … | |
Re: Like previously stated, the static modifier allows Objects that consist of that static data type to share data from the same address. One word of warning though - static variables are initialized once and only once! Not only that, but the scope of static is contained within the JVM it … | |
Re: ...If you haven't already, I strongly suggest that you read Inside The C++ Object Model (by Stanley B. Lippman). | |
Re: [QUOTE=Ancient Dragon;682681]>>are STL containers faster then c-style arrays? No. you can't get any faster access than c style arrays. But that isn't the point -- c++ [B]STL eliminate many of the problems with c style arrays, such as dynamic array allocations. vector and other containers expand/contract by themselves, and they … | |
Re: The problem is that your Charact method is stuck in the while loop. You obtain the length of the file and state the conditon numChar != -1. Keep in mind what data types are for. They store a copy of the data they accept. Here you're calling f.length() and placing … | |
Re: [QUOTE=jwenting;682658]no.[/QUOTE] When will you ever say yes, or turn off your email blocking??? When will the madness stop??? =P | |
Are there any highly recommended books for file systems? If so, I would appreciate a few titles to look into! =) The purpose of doing this research is to further my understanding with programming. If I can better understand the File Allocation Table as well as other popular File-Systems today … | |
Re: I can see a few ways of this being done... First of all, why use an array? You can easily use a LinkedList (and even a nested LinkedList) to get the job done. Chances are you'll only need a 1 LinkedList anyways. For example, you can track time using a … | |
Re: [QUOTE=williamhemsworth;673264]I started learning C++ (which is supposedly harder to learn than Java) at the age of 13, and im completely self taught. All it takes is a bit of time and effort, and it seems you just haven't put in the effort. :-O Theres also plenty of resources over the … | |
Re: JSP/JSF is the way to go for this project! The reason? It sounds to me like you're forming a front-end for Database management. From what I understand, JSP has support for Database management, allowing one to make a visual representation of a database, though it isn't incredibly easy to implement. … | |
Re: [QUOTE=ithelp;682126]Open a socket , read at server end , write at client end , you will not get a simple homework than this .[/QUOTE] Pretty much, especially since the Client connects to the server at a different port (called the HandShake point) so that the Server can accept connections from … | |
Re: I'm not exactly sure how your professor wants this done, but... Personally what I'd do is make a topic for each game of Boggle and implement a dictionary of words then map out specific words to a specific topic (using a map most likely). A random topic is chosen (or … | |
Re: [code=c++] #include <iostream> using namespace std; int main () { int twenties, tens, fives, singles, quarters, dimes, nickles, pennies; double purchase, pay, rempay=0; cout<< "please enter the purchase amount "; cin>> purchase; cout<< " please enter the payment amount "; cin>> pay; rempay = pay - purchase; twenties = int(rempay/20); … | |
Re: [QUOTE=entei;681371]You need to think about what you want to use C++ for. I personally am interested in teh game development aspect of C++, but there are many other route C++ can tke you. so once you've made up you mind you should re ask your question with that in mind. … | |
Re: Is this the timer in swing or util? If swing then you just need to place an if-else in the actionPerformed method that the timer is firing. I'd use a circular (or random) iterator for the actions that you need to take place during calls to the actionPerformed method. | |
Re: Errors 1, 2 (and most likely 3) are generated because third.getPages is being parsed as a variable that exists within the Class associated by the object third. [code=java] total=first.getPages()+ second.getPages()+ third.getPages; // missing parenthesis after getPages [/code] Edit: 1-upping me, eh javaAddict? =P | |
Re: Have you even started? A few ideas for your class that may help you get started-- *Implement a class that contains a pointer to the template-argument type *Overload the ->, *, =, and [] operators *The constructor should take a pointer to the template argument *overload the << operator for … | |
Re: Not working can mean a lot of things, especially with relational databases. Not working as in, you are running a version of Java that may or may not initially support jdbc (versions before 6 I believe) ? Not working as in, the program wont compile? Not working as in, the … | |
I've always wondered how GObjects had such significantly improved pixel-rendering over objects sketched out by the Graphics object in paint and paintComponent methods. What approach should I take to receive the same effect for big images that are say 1024x960, when using simple Graphics? Is there some way to traverse … | |
Re: An interface is a static context template that classes can implement. The methods within the interface have no body and must be of public access. In addition, interfaces can also contain "constants" in which data is declared and defined. An example-- [code=java] public interface MyInterface{ public final int VALUE = … | |
Re: For simplicity, I helped a bit with subString, though I haven't tested it thoroughly enough to track if it will always be true. I did however provide an explanation on what was done to come up with a method solution-- [code=java] /** Hi there. i am trying to create an … | |
Re: Do you want to draw an image from a file, or do you want to be able to "rotate" a set of pixels such that they emulate a rotating String? This can be either really simple or hard depending on where you want to rotate. If you have variable rotation … | |
Re: Challenge: Implement a Dictionary/Thesaurus API, word-checking and a word-suggestion (after 3 characters) sub-menu below the current location of the user's cursor. | |
Re: [QUOTE=dianac10;678501]Do you know if there is anything with eclipse and the classpath ?[/QUOTE] [Quote=Ezzaral] Well, it was just a guess since you failed to actually post any code which would have made a better answer possible... [/Quote] To say the least, please post your code so we can be of … | |
Re: Why not g.fillOval()? Also, will repainting be an issue? How much detail will be displayed on your screen? Are you at all using images? A lot of questions come to mind since this seems like an interesting project. | |
Re: Does n have to be a factor of 3, or is n just some arbitrary number? |
The End.