527 Posted Topics

Member Avatar for guitarcrazy44

Even if someone did do the project, they would never post the solution and keep it to themselves. That's how we roll =P

Member Avatar for Sky Diploma
0
149
Member Avatar for Alex Edwards

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 …

Member Avatar for sneekula
0
185
Member Avatar for alexvena

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 …

Member Avatar for mshahid
0
84
Member Avatar for reshma.mane
Member Avatar for dsnj202
Member Avatar for mostermand

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 …

Member Avatar for mostermand
0
319
Member Avatar for Ancient Dragon

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]

Member Avatar for mitrmkar
0
167
Member Avatar for emilio

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 …

Member Avatar for emilio
0
178
Member Avatar for smileeok

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* >_>

Member Avatar for ithelp
0
139
Member Avatar for bricjames
Member Avatar for MelechM
0
123
Member Avatar for faisaly

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 >_>

Member Avatar for Olof Forshell
0
655
Member Avatar for Chaster

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 …

Member Avatar for Alex Edwards
0
124
Member Avatar for sciwizeh

Very interesting! Though, I'm not very familiar with digital circuits. Are you trying to union two components together so they act as one?

Member Avatar for sciwizeh
1
146
Member Avatar for Tony0930

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 …

Member Avatar for sciwizeh
0
163
Member Avatar for ryukifaiz

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> …

Member Avatar for Alex Edwards
0
89
Member Avatar for Alex Edwards

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 …

Member Avatar for Alex Edwards
0
140
Member Avatar for vibgyor

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 …

Member Avatar for Narue
0
117
Member Avatar for amt_muk

[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?

Member Avatar for amt_muk
0
6K
Member Avatar for monkey_king

[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...

Member Avatar for ArkM
0
224
Member Avatar for SyLk

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 …

Member Avatar for SyLk
0
124
Member Avatar for Priya_Aggarwal

[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 …

Member Avatar for Alex Edwards
0
114
Member Avatar for imran786

[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 // …

Member Avatar for Alex Edwards
0
77
Member Avatar for muthu592

[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 …

Member Avatar for Alex Edwards
0
115
Member Avatar for pardeep3dec

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 …

Member Avatar for peter_budo
0
110
Member Avatar for Alex Edwards

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 …

Member Avatar for Narue
0
3K
Member Avatar for balakrishnan.kb

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 …

Member Avatar for balakrishnan.kb
0
267
Member Avatar for Frederick2

...If you haven't already, I strongly suggest that you read Inside The C++ Object Model (by Stanley B. Lippman).

Member Avatar for Frederick2
0
870
Member Avatar for monkey_king

[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 …

Member Avatar for Narue
0
151
Member Avatar for newtechie

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 …

Member Avatar for newtechie
0
454
Member Avatar for geex

[QUOTE=jwenting;682658]no.[/QUOTE] When will you ever say yes, or turn off your email blocking??? When will the madness stop??? =P

Member Avatar for javaAddict
0
122
Member Avatar for Alex Edwards

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 …

Member Avatar for Salem
0
91
Member Avatar for JoseCarlos

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 …

Member Avatar for JoseCarlos
0
102
Member Avatar for Zelores

[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 …

Member Avatar for Zelores
0
165
Member Avatar for clickranju

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. …

Member Avatar for clickranju
0
146
Member Avatar for youngisthan

[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 …

Member Avatar for Alex Edwards
-1
65
Member Avatar for jianxu

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 …

Member Avatar for VernonDozier
0
499
Member Avatar for jks1234

[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); …

Member Avatar for entei
0
191
Member Avatar for shipeshipaca

[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. …

Member Avatar for Alex Edwards
0
283
Member Avatar for rapperhuj

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.

Member Avatar for Alex Edwards
0
113
Member Avatar for joshmo

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

Member Avatar for joshmo
0
219
Member Avatar for c++_student

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 …

Member Avatar for Alex Edwards
0
126
Member Avatar for kevinpeterson22

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 …

Member Avatar for stephen84s
0
283
Member Avatar for Alex Edwards

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 …

Member Avatar for Ezzaral
0
136
Member Avatar for ravikiran032

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 = …

Member Avatar for jack239
0
228
Member Avatar for Nate11

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 …

Member Avatar for Nate11
0
132
Member Avatar for VernonDozier

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 …

Member Avatar for VernonDozier
0
1K
Member Avatar for HLA91

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.

Member Avatar for Alex Edwards
0
177
Member Avatar for dianac10

[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 …

Member Avatar for Alex Edwards
0
77
Member Avatar for cambridgegal300

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.

Member Avatar for Ezzaral
0
665
Member Avatar for gregorynoob
Member Avatar for gregorynoob
0
172

The End.