257 Posted Topics
Re: You gotta show effort in order for us to help. Show your code and post questions relating to the code. We won't just do your homework for you. | |
Re: Open up your c++ implementation program and start typing. But seriously, show some effort and we'll be glad to help. Post your code and questions about the code. | |
Re: Wow where should I start with this one? First you posted the same question twice, that's a big no-no here. You did not show any effort. You didn't ask any questions. And you didn't post any code using code tags. I dont think anyone will be helping you until you … | |
Re: Do you have a question or are you just showing off your code? ;) Why the double post? This code was probably meant for your other thread, yes? | |
Re: [QUOTE=Janiceps;1014645]OKOK,, fine, you made your point. i am going to the black market to get some help.....[/QUOTE] Don't do anything illegal. I'm sure you can find a new dog talk forum to participate in. Remember, living well is the best revenge. Join the new forum and become an outstanding member. … | |
Re: I believe the first figure is supposed to be 2 triangle, one on top of the other. The second figure is supposed to be a diamond. This is the output he wants. The format got messed up because he didn't enclose the figures in code tags. | |
Re: My life according to The Beatles Are you a male or female? Boys Describe yourself: I am the Walrus How do you feel? I Feel Fine Describe where you currently live: Penny Lane If you could go anywhere, where would you go?: Octopus's Garden What is your favorite form of … | |
Re: I hate it when they write the assignment word for word and don't even try to venture a guess. :@ | |
Re: Try changing line 8 to: [code=java] Scanner scan = new Scanner(System.in); [/code] | |
Re: Remove the "\n" from line 13. It worked for me this way. \n sends output to the next line. When you are scanning input, you don't need to go to a new line. By the way, next time you have a C question dont post it in the C++ forum. … | |
Re: Why did you post a question as a code snippet? If you want help with this problem, post your current code in a new thread on the c++ forum and ask specific questions. Make sure you post your question as a new thread. | |
Re: Array indexes start at 0. char arrURI[1]; -- creates an array of size one -- so there are two indexes 0 and 1 char data[0]; -- creates an initially empty array Hope that is what you were looking for. | |
Re: I'm pretty sure switch must be lowercase 's'. Also no semicolon after the parentheses after switch. And on first glance it doesnt look like you closed the statement in the appropriate place. You should close your switch after the text of the default case. One last thing, please use code … | |
Re: No semicolons after method names in the definition. [code=java] // ------------------------------------------------------------ // Another constructor - with two parameters - if you know the name and the age of a Person // ------------------------------------------------------------ Person(String newName, int newAge, String newNationality); { name = newName; age = newAge; nationality = newNationality; } [/code] … | |
Re: Functions generally are declared as prototypes above the main(). [code=cplusplus] double fv(double); int main() { [/code] The function definition (i.e. text of the function) must be written outside of the main(). Finally, in your case the function should be called within main(). | |
Re: You can make a menu where the user picks a an operation. Depending on the choice a function will be called to implement that specific operation. Functions can include add, subtract, multiply, divide, powers of exponents, square root, etc. You can ask the user how many numbers they want to … | |
Re: How about you ask specific questions about your assignment and please write in normal english. I can barely read your post ;) | |
Re: A for loop will allow you to have a user enter the ten numbers [code] for(variable=1 to variable is less than or equal to 10, then increment the variable) //In the body of the loop you will ask the users to enter the numbers [/code] Did you have a specific … | |
Re: Like I said in the other thread, post your code and the errors being reported by the compiler. | |
Re: I doubt having a good job related to technology is the reason for your cousin's health problems and physical appearance. niek_e's sarcastic comment is right. Life expectancy is much higher today because of advances in technology. | |
Re: Hi, I can see you are new to the community. You need to show effort by supplying the code you have already tried. Also you need to ask specific questions about the code. We can't help you with such a vague question. So post your code and questions so we … | |
Re: Maybe I am misunderstanding the point of the program, but your while is set up with NOT EQUALs. So, while the grade is not equal to A,B,C..... you will enter grades in the do part. If you enter A,B,C... then you won't be fulfilling the condition in the while and … | |
Re: In the makeChange function remove the data type 'float' from the remainingMoney variable you only need to put float in front of the variable once. | |
Re: Do you need two braces after your if statement here [code=c] if (x==1) { { [/code] (Lines 54 - 56) | |
Re: What does k refer to in your program. Where is the number held by the variable k used in the program. The formula only needs 3 variables, so I'm a bit confused where k is coming from. Can you please clarify this? By the way please use code tags when … | |
Re: Have the sender convert his/her copy of the database to be compatable with 2003. When you save an Access databse using 2007 you can choose to save it as a 2003 db. This way a db created in 2007 can be opened with 2003. | |
Hello friends. I'm trying to write a program that accepts an odd number from 1-9 and outputs the diamond of asterisks as follows [code] user enters 5 _ _ _ * _ _ _ _ _ * * * _ _ _ * * * * * _ _ _ … | |
Re: This is the c++ forum, do some work and then post your specific questions in the appropriate forum. | |
Re: You can convert access databases down. That is if you have a 2007 db you can convert it to a 2003. When you save an acess db you can choose what version you want to save it as. So if you create a database using Access 2007 and want to … | |
Hello, as the title suggests I want to remove the code I supplied in posts made in a thread I started in the C forum. The reason I want to do this is because the program I wrote is for an assignment due next week. I know other students in … | |
Re: LOL. This code is half C and half C++. Maybe call it "C squared ++" ;) | |
Re: The code given to you by firstPerson makes the user input a new number while the current value (input of the variable) is less than zero. This repeats until the user enters a valid number. | |
Re: No one will give you help if you show no effort. Try it and tell us of your specific problems. | |
Re: You have a few problems with your code. First off, the Multiply and Divide blocks must be contained in main(). Secondly you cant redeclare x and y in Divide when theyy are already being used by Multiply. Lastly, I think the colon should come after the word (ie Multiply or … | |
Re: If you intend to check if each r value is less than or equal to 1 then you must say [code=cplusplus] if(r3 <= 1 && r2 <= 1 && r1 <= 1 && r0 <= 1 )... [/code] Do this for each of your statements that are not working correctly. … | |
Re: Have you tried to solve the problem yourself? Post your code and we will offer some suggestions. Obviously you will need interactive input so use [code=cplusplus] //to prompt the user for input use cout<< ... //to obtain input from the keyboard use cin>>... [/code] | |
Re: Use cout and cin to obtain user input. Use if statements to test if the input is valid. | |
Re: Why don't you use a vector of integers instead of booleans? Add the integer values to the vector, and then print them out. If I am misunderstanding the question please let me know. | |
Re: [QUOTE=jobseeker97;1006217]Please tell me the major difference between the capital character with single inverted comma and double inverted comma in a C Program.[/QUOTE] They are called single quotes and double quotes. ;) LOL. Inverted comma... | |
Re: Function prototypes must be declared before the main(). [code=cplusplus] void smallAverage(int *myArray, float *average, int *numSmallerThanAverage); int main() { //text of main return 0; } //now begin function [/code] Functions should appear after the main() function. | |
Re: You want to run the game while the number of incorrect guesses is less than 7, and you want to increment the number if incorrect guesses each time the user makes a wrong guess. So, each time the user makes a wrong guess you should do: [code=cplusplus] ++inCorrectGuess; [/code] As … | |
Re: If think you are leaving out the return value. Put [code=cplusplus] return 0; [/code] before the final brace terminating the main() function. Unless you didn't post your entire code... | |
Re: [QUOTE=scantraXx-;1004522] 2. Write a function that reverses a string by making use of a stack. Your function could push elements on the stack one by one, and then build up the result by popping them off the stack. [/QUOTE] Use the push function to add each element of the string … | |
Re: When I use classes in other files I use: [code=cplusplus] #include "filename.cpp" [/code] I put this line in the file containing my main() function. This lets you use the class in your main() function. | |
Re: Following up on the previous post, put your scanners after each related print statement. For example: [code=java] System.out.println( "Enter forename" ); forename = scanner.nextLine(); [/code] Repeat for the others. | |
Re: I'm not sure I know exactly what you are asking. If all you need is to round to 2 decimal places, here is an example to help you: [code=java] double d = 1.234567; DecimalFormat df = new DecimalFormat("#.##"); System.out.print(df.format(d)); [/code] | |
Re: You've posted the same question 3 times and haven't showed an ounce of work. Give it a shot and let us know what you think you should do. No one in this community is just going to give you a full program. If you work hard and believe in yourself, … | |
Re: I was able to run your code successfully by using: [code=cplusplus] bool err = false; //User enters NA State Abbreviation cout << "Enter one of the following State Abbreviations for full name:" << endl; cout << "NC, SC, GA, FL, or AL. "; cin >> sa; if (sa == "NC") … |
The End.