- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 20
- Posts with Upvotes
- 18
- Upvoting Members
- 14
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
Re: [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 … | |
Re: 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. | |
Re: 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 … | |
Re: > 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. | |
Re: 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 … | |
Re: > 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 … | |
Re: 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 … | |
Re: 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. … | |
Re: ** > 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)); ** | |
Re: 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 … | |
Re: 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 … | |
Re: 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; // … | |
Re: 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] | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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. … | |
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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] … | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
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' … | |
Re: [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 … | |
Re: 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 … |