Posts
 
Reputation
Joined
Last Seen
Ranked #360
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
86% Quality Score
Upvotes Received
20
Posts with Upvotes
18
Upvoting Members
14
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
7 Commented Posts
~20.6K People Reached
Favorite Forums
Favorite Tags
Member Avatar for plang007

[QUOTE] yea, i ignored your help, because you did not help me with my code at all, and I did not know what I needed to take out. All I read was advice, NOT HELP. SO I did believe you, you just did not help me. [/QUOTE] He is trying …

Member Avatar for toneewa
0
257
Member Avatar for srikanth2321

I'm posting from my phone and the details are a little iffy but ... If you right-click on your project folder Properties Java build-Path The 2nd tab .. There should be options to add internal and external .jar files.

Member Avatar for srikanth2321
0
244
Member Avatar for skiboy209

That is a lot of if-else statements. Think you can rewrite this with a more logical approach? Note: This is not to bash you! If you can think of creating this with another approach, it may help with other types of OOP. Consider using a class for each player as …

Member Avatar for PalashBansal96
2
251
Member Avatar for JohnQ002

> char name; > char family; > int age; Could it be that your name is only 1 character long. If you want a full name, consider the use of a string. Same goes for the family.

Member Avatar for Saith
0
185
Member Avatar for NunsBeachSurfer

for loop is very likely your best option. Can you show us any code that you have written? Even if you think the code is wrong, please link it. At the very least, consider writing up a pseduocode to see if we agree with the logical approach. Writing pseduocode (writing …

Member Avatar for NunsBeachSurfer
0
194
Member Avatar for justinfritz

> I am having trouble with this part of my program assignment. It would appear you have created and tested each of the classes to make sure they work correctly. This is evident by the comment block for the testing of each ADT class that you made. I would assume …

Member Avatar for Saith
0
313
Member Avatar for c++bob1234

If you still need help with this, please actually ask a question about it. I was left with a sense of .. huh? And attempted to find a question in the lines of code. Also, repost the snippet of code that you are having the problem with and what problem …

Member Avatar for Saith
0
297
Member Avatar for FraidaL

You first want to fill your array. Then send that array to both min and max functions. The array may be filled in the main fucntion, then sent to each of the functions to find the maximum and minimum values in the array. You can fill an array like this. …

Member Avatar for Saith
0
253
Member Avatar for abhimanipal

** > myIterator = find(myVector.begin(), myVector.end(), InRange(10,20)); find(); ... shoudn't it be find_if? myIterator = **find_if**(myVector.begin(), myVector.end(), InRange(10,20)); **

Member Avatar for Saith
0
410
Member Avatar for dariaveltman

dariaveltman > please tell what am I doing wrong. First, please let us know what you are confused about. If you don't know exactly where you are confused in the code or how the code is supposed to work try telling us what you already do know and how you …

Member Avatar for Sahil89
0
180
Member Avatar for c++creator

Is there anything specific you do not understand as there is a lot of information from [CODE]the beginning[/CODE] to [CODE]the end.[/CODE] Possibly explain what you do understand and then we can help with the rest. Otherwise what we would need to do is create a response that is nothing but …

Member Avatar for frogboy77
0
562
Member Avatar for cppdeveloper

Remember, arrays are initialized with a strict size --unless they are dynamic. To access the memory for any array, you access it be 0 through one less than the total size. [CODE] int numbers[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; // numbers[0] = 1; // …

Member Avatar for raptr_dflo
0
163
Member Avatar for jt1008

Please enter code in like this so it's easier for us to read. This is wrong: [CODE] int main (); // You need brackets for the block of code containing the main function. -not a semi-colon ; //like this int main(){ return 0; } [/CODE]

Member Avatar for Fbody
0
157
Member Avatar for fsefsef23

[QUOTE=LevyDee;1608696]From the looks of it, next is a pointer to the object type of what ever p, q, r and t point to. "next" is not a very common name for this that people use(i think). I like to use link. quick look at a simple object that is being …

Member Avatar for LevyDee
0
178
Member Avatar for itgrowsind

Okay. First, please format your code correctly using the [CODE] [/CODE] blocks that are given to us. Makes things a little easier to read. I'm figuring your professor does not want want you to create 5 int variables in the main program and then add them to the list as …

Member Avatar for Saith
0
136
Member Avatar for byrosport

The reason why there isn't anything outputting to the outfile.txt is due to the fact that outChar is being manipulated in the for-loop a number of times but only until the end, past the end of the for-loop, is a call made to the outfile. If you check your normal …

Member Avatar for byrosport
0
281
Member Avatar for clickspiker23

Sure, you can add the second part after the calculations. Prior to that, you may want to slightly edit what you currently have. I'm assuming the code below is suppose to be read as this: [CODE] else if ((choice == 'b') || (choice == 'B')) { charges = packB; cout …

Member Avatar for Saith
0
180
Member Avatar for Saith

Please tell me how bad this code segment is. I figured I would share this horrible code. If it's not as horrible as I think it is, please let me know. Thanks! [CODE] /* Purpose: Create a function to check the input from user. Only valid integer should be returned. …

Member Avatar for vijayan121
0
333
Member Avatar for Saith

I somewhat understand the concept of the parentheses overload when you need to use an object as a function. The question that I have is why does the max variable in the listed code below always input 2. [CODE] /* Purpose: This is the header file of randomInteger.h The class …

Member Avatar for Saith
0
335
Member Avatar for henrimontreal

[QUOTE] You missed an important point. The rectangle "knows" its internal state. When you draw the rectangle, you do not need to send it any data. It already knows its own height, width, etc. (which ave already been set in the constructor or set function). So you just tell it …

Member Avatar for raptr_dflo
0
253
Member Avatar for Red Dragon

One suggestion with your changed if/else that you were working on. If the program fails to open the file, might as well close the program with [CODE] exit(1); [/CODE] at which point you do not need to worry about an else. If it doesn't fail, the program keeps on going …

Member Avatar for Red Dragon
0
356
Member Avatar for Gibran

Only thing I could possibly think of, which could easily be wrong, would be to close the solution, copy and paste your entire program into a new project. The program you are trying to run could possibly be running with an older solution/project, I don't know. Let us know when …

Member Avatar for sergent
0
168
Member Avatar for schrope

You need to change your expression statements in your flow of control. if (first = length * 1.85 + 2.50) // will always be true if (response='n') // will always be true You also don't assign total to anything. At no point in your program do you have written [CODE] …

Member Avatar for Saith
0
100
Member Avatar for Derek Elensar

First, I don't think Narue is a dude. Second, I had this same post about 2 days ago, you may want to check out that thread. [URL="http://www.daniweb.com/software-development/cpp/threads/363659"]here[/URL]

Member Avatar for Derek Elensar
0
202
Member Avatar for Skaii

Good to hear you don't want your homework done for you, it's definitely a plus on my end to see. There are a number of things wrong with the code, but overall, not a bad start. You may want to give us a reason why it may be buggy? Tends …

Member Avatar for Skaii
0
119
Member Avatar for missscareall

You may consider setting your program up so that it first 1. Reads in the numbers through and array. 2. Checks the array against itself 3. then outputs any repeats it may have. What you are currently doing is inputting a number into an array, then checking against array values …

Member Avatar for Saith
0
152
Member Avatar for jimmymack

[QUOTE] The Add() function is declared on line 12. It takes a constant Counter reference, which is the number to add to the current object.(which is varOne?)It returns a Counter object, which is the result to be assigned to the left side of the assignment statement, as shown on line …

Member Avatar for jimmymack
0
141
Member Avatar for Saith

First, my program works. I'm posting my code for my own personal benefit with the help of your guidance to know of any better way of handling this code. I was considering the use of [CODE] while(cin >> grabname) [/CODE] to possibly continue grabbing from the input stream until '\n' …

Member Avatar for vijayan121
0
304
Member Avatar for ztdep

[CODE] double& operator [](int i) //[] which can used as the left value { if(i==0) return x; else if(i==1) return y; else if(i==2) return z; else cerr<<"our of rand index of Point"; } [/CODE] The function has a return type of double which you have returned three times in your …

Member Avatar for ztdep
0
589
Member Avatar for Sorcher

You may want to list the compiler problems, if any, for us to view. Seeing as how there is no description, other than the code, to the problem it is difficult for us to figure out whether this is a 1. syntax problem, 2. logical problem. Lastly, what is this …

Member Avatar for WaltP
-1
139