257 Posted Topics

Member Avatar for dangutdavid
Re: need

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.

Member Avatar for Grn Xtrm
-1
92
Member Avatar for frn

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.

Member Avatar for Phil++
0
79
Member Avatar for arasucute

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 …

Member Avatar for Grn Xtrm
-1
182
Member Avatar for nicolek808

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?

Member Avatar for Grn Xtrm
0
145
Member Avatar for Janiceps

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

Member Avatar for happygeek
-3
437
Member Avatar for NinjaLink

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.

Member Avatar for VernonDozier
0
96
Member Avatar for JasonHippy

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 …

Member Avatar for Grn Xtrm
0
170
Member Avatar for mohamed07

I hate it when they write the assignment word for word and don't even try to venture a guess. :@

Member Avatar for Grn Xtrm
-2
149
Member Avatar for EGutierrez91
Member Avatar for Grn Xtrm
0
136
Member Avatar for Nitricity

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

Member Avatar for Nitricity
2
151
Member Avatar for sam d

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.

Member Avatar for Grn Xtrm
-2
36
Member Avatar for ashok.g15

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.

Member Avatar for Tom Gunn
1
951
Member Avatar for salamjamal10

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 …

Member Avatar for Qzmo
0
229
Member Avatar for JRabbit2307

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

Member Avatar for Grn Xtrm
0
627
Member Avatar for merse

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().

Member Avatar for Grn Xtrm
0
170
Member Avatar for estefania
Member Avatar for Grn Xtrm
0
113
Member Avatar for saurabh gulati

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 …

Member Avatar for Grn Xtrm
0
67
Member Avatar for nikhil91

How about you ask specific questions about your assignment and please write in normal english. I can barely read your post ;)

Member Avatar for matome
-4
74
Member Avatar for Kellbell147

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 …

Member Avatar for Drlionheart
0
323
Member Avatar for salamjamal10

Like I said in the other thread, post your code and the errors being reported by the compiler.

Member Avatar for Jocamps
0
401
Member Avatar for Vineeth K

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.

Member Avatar for ayoungpretender
-3
228
Member Avatar for Ilija

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 …

Member Avatar for mrnutty
0
65
Member Avatar for DARK_BYTE

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 …

Member Avatar for Jocamps
0
101
Member Avatar for itzaaron

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.

Member Avatar for jbennet
0
167
Member Avatar for jjepoy

Do you need two braces after your if statement here [code=c] if (x==1) { { [/code] (Lines 54 - 56)

Member Avatar for jjepoy
0
103
Member Avatar for new@java

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 …

Member Avatar for Jocamps
-1
146
Member Avatar for sahar54

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.

Member Avatar for boblarson
0
66
Member Avatar for Grn Xtrm

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

Member Avatar for Dave Sinkula
0
4K
Member Avatar for rsampath

This is the c++ forum, do some work and then post your specific questions in the appropriate forum.

Member Avatar for Grn Xtrm
-1
94
Member Avatar for mel01

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 …

Member Avatar for jbennet
0
125
Member Avatar for Grn Xtrm

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 …

Member Avatar for Grn Xtrm
-2
201
Member Avatar for sebassn

LOL. This code is half C and half C++. Maybe call it "C squared ++" ;)

Member Avatar for VernonDozier
-4
106
Member Avatar for sebassn
Member Avatar for C++ Beginner

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.

Member Avatar for K0ns3rv
-1
3K
Member Avatar for raneen

No one will give you help if you show no effort. Try it and tell us of your specific problems.

Member Avatar for ejosiah
-3
262
Member Avatar for 0805638

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 …

Member Avatar for Grn Xtrm
-1
83
Member Avatar for Tjvelcro

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

Member Avatar for Grn Xtrm
2
85
Member Avatar for ineedhelp3

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]

Member Avatar for Grn Xtrm
0
91
Member Avatar for charmedangerous

Use cout and cin to obtain user input. Use if statements to test if the input is valid.

Member Avatar for Grn Xtrm
0
94
Member Avatar for kayot1k

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.

Member Avatar for kayot1k
0
85
Member Avatar for jobseeker97

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

Member Avatar for Arcaiz
0
145
Member Avatar for nanoooosha

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.

Member Avatar for Dave Sinkula
0
136
Member Avatar for ramsdellcp

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 …

Member Avatar for csurfer
-1
151
Member Avatar for infern0

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

Member Avatar for Grn Xtrm
-2
110
Member Avatar for scantraXx-

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

Member Avatar for chunalt787
0
143
Member Avatar for brando|away

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.

Member Avatar for Dave Sinkula
0
142
Member Avatar for carl9999

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.

Member Avatar for carl9999
0
100
Member Avatar for guilh_22

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]

Member Avatar for javaAddict
0
135
Member Avatar for sweetsympathy17

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

Member Avatar for Ancient Dragon
-4
132
Member Avatar for C++ Beginner

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

Member Avatar for Grn Xtrm
-1
153

The End.