Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
0 Endorsements
Ranked #718
~12.3K People Reached
Favorite Tags
c++ x 53
java x 17
c x 4
jsp x 1
Member Avatar for PhiberOptik

I usually use Eclipse, but switch over to Netbeans when I do any sort of GUI.

Member Avatar for mjason
0
210
Member Avatar for rahini

What protocol do you want to simulate? At what layer? You should be able to code a simulation up depending on which protocol you want to simulate. You might also want to do a search into network simulation tools. I haven't used any, but I've heard of omnet and ns-2 …

Member Avatar for mni
0
153
Member Avatar for daviddoria
Member Avatar for Freaky_Chris
0
694
Member Avatar for manzoor

Here are another 2 options: 1) Make a copy of the array, and do only a partial selection sort. Use the variation of selection sort that puts the largest element at the end. Since you only want the top n elements, only run the outer loop of selection sort n …

Member Avatar for Salem
0
197
Member Avatar for andrepezzo

If your SoapPair class has any member variables, all of them have to be of a type that is serializable.

Member Avatar for ~s.o.s~
0
160
Member Avatar for clb8372

Your instructor's feedback is extremely straight forward... Also he did miss some things: - The US dollar to English pound conversion in your code is incorrect, take a closer look at the conversion list to see why.. - Your output module only outputs the currency type... are you sure that's …

Member Avatar for VernonDozier
0
271
Member Avatar for q8y_4u

Not sure where to start on this one... You haven't really followed the instructions. The instructions state that EACH student data record should be dynamically allocated. Instead your student list creates a static sized array of 100 records. What you need to do is make a StudentRecord class which stores …

Member Avatar for AHUazhu
0
199
Member Avatar for vicky_dev

1. recv() will NOT necessarily receive all the bytes sent in one call. You will have to loop it. Since recv() returns the number of bytes received, what you can do is have the sender always put an integer at the start of each message specifying the length of the …

Member Avatar for vicky_dev
0
212
Member Avatar for PhiberOptik

The panel class needs a reference to your frame class. Assuming your frame class creates the panels, the frame should send a reference to itself ([I]this[/I]) as an argument to the panel constructor. You will need to change the panel constructor to accept this argument and store it. Now when …

Member Avatar for BestJewSinceJC
0
214
Member Avatar for eng.M4AH

I would argue that the majority of code people write is iterative rather than recursive. Because recursion has more overhead in terms of memory and speed, iterative approaches are generally preferred unless the recursive version is much simpler to understand and implement. I'd say the biggest downside to recursion is …

Member Avatar for mahlerfive
0
130
Member Avatar for chasee

Instead of: int board[4][4]; Replace with: int** board; Now we can dynamically allocate space for the 2D board array. In set_board(), we need to do the dynamic allocation like so: [code] // First allocate for the first dimension board = new int*[height]; // Now allocate for the second dimension for( …

Member Avatar for mahlerfive
0
125
Member Avatar for clueless101

The lowercase part you have actually won't work for all cases... What I would do is just have a boolean variable for each condition, and each check will set the appropriate variable to true or false. Then at the end just 'and' them all together to get whether it is …

Member Avatar for clueless101
0
127
Member Avatar for star100
Member Avatar for youngman_kurd

Not really sure what you are asking... but if you're asking what sum = sum + 5; does, then the answer is that it increases the value stored in sum by 5.

Member Avatar for Salem
0
99
Member Avatar for Holy Roller

Also try to keep your indentation a standard width - usually 3 or 4 spaces is good. As for the non-standard includes as mentioned above, I'm guessing you are using something old like borland or turbo C... I would recommend you start using either VC++ or Code::Blocks.

Member Avatar for VernonDozier
0
117
Member Avatar for soniagupta98

The other option is to just sort both arrays which will make traversing the arrays and finding non-duplicates much easier.

Member Avatar for mahlerfive
0
303
Member Avatar for Awebb999

Well if the output is always zero, then either 5/9 is 0 or F-32 is 0. Try and write a small program that just prints the result of 5/9 and one that prints the results of F-32 after the user enters F. That might help you narrow down the problem.

Member Avatar for mahlerfive
0
278
Member Avatar for mrnutty

Have you learned about classes in your course yet? If so then you should be using them. If not, you should at least break your functions up into smaller, more manageable functions. Also you should learn how and when to use header files and multiple cpp files rather than having …

Member Avatar for mrnutty
0
461
Member Avatar for gamer12223

You are getting mixed up about what should be in your main() and what should be in your class methods. As the problem specifies, input for a TMoney should be done in the inputdata() method, and output should be done in the outputdata() method. The main should only declare an …

Member Avatar for gamer12223
0
133
Member Avatar for Foe89

Hmm not exactly sure what that would be happening, but there are still a couple things you need to change. At the top you should declare gRow and gCol as const int - I'm not sure how this even compiles with no type given. Also you should make a loop …

Member Avatar for StuXYZ
0
165
Member Avatar for JLopeman

Since you are adding nodes to the head (start) of the list, the last node you add will be in position 0. The output is correct for the example you gave. I'm assuming the list isn't supposed to be sorted - if so then you need to change your add …

Member Avatar for JLopeman
0
166
Member Avatar for jbennet

The Java API is your friend: [url]http://java.sun.com/javase/6/docs/api/[/url] Look up FileWriter, look at the constructor and the write methods.

Member Avatar for ~s.o.s~
0
106
Member Avatar for krhillery

You will need nested loops. The inner loop will print one line of numbers, while the outer loop controls how the pattern changes for the inner loop. If you're still stuck, try solving the problem in steps. First create a loop that will print just one line of the pattern. …

Member Avatar for stultuske
0
122
Member Avatar for Jwhispers

To add two times as you have listed, first add the seconds together. If the seconds > 59 you will have to use modulus (%) to find the remainder of the seconds. You can then use this information to figure out what the actual seconds are and that a minute …

Member Avatar for Jwhispers
0
257
Member Avatar for kitty7

You're off to a good start, here are some little tips/observations that might help you: 1/ Your header file should contain the structure definition as well as the function prototypes for functions related to that structure. So basically you should move the function prototypes into your header. Remove the last …

Member Avatar for kitty7
0
129
Member Avatar for spi02

Just 71C15 alone is over 914 trillion combinations. A normal computer can do about 1 billion/sec. This means it will take about 10 days to compute just 71C15. You might be able to do 71C7 or 71C8 in a reasonable amount of time.

Member Avatar for shaun.husain
0
101
Member Avatar for VirusTalker

Generally when you are doing recursion on any kind of collection of items (lists, arrays, even strings) you want to solve the problem for the first element of the collection, then recurse on the remaining part of the collection. For this example you can look at the first element of …

Member Avatar for VirusTalker
0
106
Member Avatar for nikhath

I think you're going to need to give more information about what you need to do.

Member Avatar for Ezzaral
0
72
Member Avatar for quocnam00

It depends on the platform. Since a pointer is an address, it must be big enough to store the largest address. I'm fairly sure that in windows addresses are 32bits (4 bytes). In linux/unix it may be different.

Member Avatar for Narue
0
178
Member Avatar for java_girl

You are right that the array name is the address of the first element of that array. This works exactly the same for arrays of char as well. In C, there is no "string" type, so we are forced to use arrays of char. There is one special difference between …

Member Avatar for Luckychap
0
225