C++ Help Thread

October 11, 2011 @ 10:55:42 AM
Post: 90
Join Date: Mar 2010
Who can help do my C++ homework? I'll pay someone to write some programs for me.
October 11, 2011 @ 11:28:21 AM
Post: 1420
Join Date: May 2011
Location: X3$X X3$X
How Much You Willing To Pay Bruh
October 11, 2011 @ 13:15:43 PM
Post: 217
Join Date: Jul 2008
Location: Connecticut
if youre only getting c+'s in school you should just learn the material yourself
October 11, 2011 @ 13:40:10 PM
Post: 2589
Join Date: Sep 2011
I can help you to an extent, we just started C++ a few weeks ago. Just post the problem and I'll see what I can do bruh.

if youre only getting c+’s in school you should just learn the material yourself

lol
October 11, 2011 @ 14:56:19 PM
Post: 80
Join Date: Dec 2010
Location: Hong Kong
I can help you to an extent, we just started C++ a few weeks ago. Just post the problem and I’ll...


Yeah, post the problem and I might be able to help.
October 11, 2011 @ 16:07:38 PM
Post: 397
Join Date: Mar 2011
Location: 604
Are you guys good with java?
I need help, I'm failing my class.
October 12, 2011 @ 04:26:38 AM
Post: 90
Join Date: Mar 2010
Write a program that has three functions: main, add2, and mul2. Your main function will have a menu similar to the financial application you have been writing. The menu will have three items: “1) Add 2 numbers”, “2) Multiply 2 numbers”, “3) Quit”. When the user selects “Add 2 numbers”, call the add2 function. In add2, ask the user for two values, add them together and present the user with the result. Do a similar thing for the Multiply menu option, except in the mul2 function, multiply the two values you acquire from the user.

any help would greatly be appreciated

This post is hidden due to user account is no longer active or improper post content.

October 12, 2011 @ 08:37:06 AM
Post: 2564
Join Date: Apr 2010
October 12, 2011 @ 08:53:28 AM
Post: 1420
Join Date: May 2011
Location: X3$X X3$X
smokeyface
October 12, 2011 @ 12:31:51 PM
Post: 2589
Join Date: Sep 2011
This seems manageable. I'll help you when I get home from school tonight bro.
October 12, 2011 @ 19:45:54 PM
Post: 80
Join Date: Dec 2010
Location: Hong Kong
Originally posted by Inactive User
<p>Write a program that has three functions: main, add2, and mul2. Your main function will have a menu similar to the financial application you have been writing. The menu will have three items: “1) Add 2 numbers”, “2) Multiply 2 numbers”, “3) Quit”. When the user selects “Add 2 numbers”, call the add2 function. In add2, ask the user for two values, add them together and present the user with the result. Do a similar thing for the Multiply menu option, except in the mul2 function, multiply the two values you acquire from the user.</p>
<p>any help would greatly be appreciated</p>



Please see here: http://pastie.org/2684840

I have not actually tested the code so there might be bugs or syntax error, but the solution should be pretty similar to this.
October 12, 2011 @ 19:48:49 PM
Post: 1819
Join Date: Dec 2008
Location: STHLM
haha one of the reasons I was like fuck this shit and dropped out.
October 12, 2011 @ 23:15:08 PM
Post: 2589
Join Date: Sep 2011
<p>
</p><blockquote>
<div class="quote-info">
<div class="quote-from">Originally posted by
<div class="quote-name">King of the Trill</div>
</div>
</div>
<div class="quote-content"><p></p>
<p>Write a program that has three functions: main, add2, and mul2. Your main function will have a menu similar to the financial application you have been writing. The menu will have three items: “1) Add 2 numbers”, “2) Multiply 2 numbers”, “3) Quit”. When the user selects “Add 2 numbers”, call the add2 function. In add2, ask the user for two values, add them together and present the user with the result. Do a similar thing for the Multiply menu option, except in the mul2 function, multiply the two values you acquire from the user.</p>
<p></p>
<p>any help would greatly be appreciated</p>
</div>
</blockquote>
<p></p>
<p>Please see here: <a target="_blank" href="http://pastie.org/2684840" rel="nofollow">http://pastie.org/2684840</a></p>
<p>I have not actually tested the code so ......

What the hell is "iostream.h"? Secondly, you forgot the basics, like including "using namespace std;" - without that "cout" "and "cin" useless. There are so many other simple errors you would have found if you tested it, no major error tho, easy fixes. You even forgot the system("pause"); or getchar(); at the end lol. But the logic and syntax is correct. I fixed it tho, so here it is smokeyface
http://pastebin.com/tH7H6FvE
October 13, 2011 @ 02:23:31 AM
Post: 2057
Join Date: Aug 2008
I'm gonna need to learn this stuff one of these days but umm since we're on the topic of websites/design:

What's the best site for domain registration? Any suggestions other than Godaddy?

Doubleclutchhoops.com

October 13, 2011 @ 02:38:13 AM
Post: 2589
Join Date: Sep 2011
<p>I’m gonna need to learn this stuff one of these days but umm since we’re on the topic of websites/design:</p>
<p> What’s the best site for domain registration? Any suggestions other than Godaddy?</p>


This is programming son, not websites/design
October 13, 2011 @ 10:33:26 AM
Post: 1
Join Date: Apr 2011
omg! i cant beleive kayue made a mistake!
hb should hire a new programmer! lol
October 23, 2011 @ 12:37:53 PM
Post: 3866
Join Date: Mar 2009
http://pastie.org/2744957

• Our Maturity/Payment program should be able to run indefinitely allowing the user to run many loan
or maturity calculations.
• This looping continues until the user decides that he/she has calculated enough and presses a certain
key (let’s say ‘x’) to quit the program.
• Write the program once using the while loop with the if-else construct. (assign6a)
• Write the program a second time using the for loop with the switch construct. (assign6b)

can anyone help me with this?

This post is hidden due to user account is no longer active or improper post content.

October 24, 2011 @ 02:11:41 AM
Post: 2589
Join Date: Sep 2011
^If I had more time I'd help you out. Just google C++ loop. Use an if statement to execute the exit sequence for the key to quit the program.
October 25, 2011 @ 00:21:27 AM
Post: 3866
Join Date: Mar 2009
can anyone get this? i dont really understand looping :/
October 25, 2011 @ 01:02:43 AM
Post: 2589
Join Date: Sep 2011
You need a 'while' statement.
Example:

while (userChoice !=x)
.........{
.......................lines of code
.......................lines of code
.........}

^That code will repeat whatever you place in the part that says "lines of code" until the condition is met, the condition being X.
You're basically saying, you will repeat everything over and over until the user inputs the letter x, which will terminate the loop. If you wait until Friday, I could write the entire thing in detail. (I think)
October 25, 2011 @ 02:08:38 AM
Post: 3866
Join Date: Mar 2009
well i figured out how to do the "while loop" and "if else construct". how do i go about doing the "for loop" and "switch construct"?

http://pastebin.com/MiNKH4Lt
that is what i used for the while and if else
October 25, 2011 @ 02:48:51 AM
Post: 80
Join Date: Dec 2010
Location: Hong Kong
<p>well i figured out how to do the “while loop” and “if else construct”. how do i go about doing the “for loop” and “switch construct”?</p>
<p><a href="http://pastebin.com/MiNKH4Lt" rel="nofollow" target="_blank">http://pastebin.com/MiNKH4Lt</a><br>
that is what i used for the while and if else</p>


I don't think you should use for loop in this case. For loop should be used when you know how many times it is going to run. In this case, you don't, so while loop is better solution in this case.

You can replace your if-else to the following switch-case:
http://pastie.org/2754028

(I haven't tested the code, but the logic is correct.)

For more information please read: http://www.cplusplus.com/doc/tutorial/control/
November 14, 2011 @ 16:41:32 PM
Post: 3866
Join Date: Mar 2009
Is this valid or not? Explain. If correct what will be values of variables involved:

Code
int x = 15;
int *xp = x;
int *yp = *x;
int *zp = &amp;x;
int *wp = new int;
wp = 5;
*wp = 5;
&amp;wp = 5;
xp = wp;
*zp = 17;
float *fp = new float;
fp = wp;
*fp = (int) *wp;
zp = &amp;x;
float *fq = 5;
November 14, 2011 @ 20:00:52 PM
Post: 3505
Join Date: Apr 2008
anyone good with unix/linux that wants to help me get caught up in my class?

I know its not programming but its still under the type of degree

Lil JoJo : i really want rizal! 13:10

November 22, 2011 @ 01:57:28 AM
Post: 3866
Join Date: Mar 2009
.
December 11, 2011 @ 21:46:10 PM
Post: 3866
Join Date: Mar 2009
Details:
Start out with a new project (you can add code to it from your previous projects)
Create a class called [Calcs]. This class has two functions: [Add2] and [Multiply2]. Each function takes two parameters and returns the value of the calculation (either adds the two parameter values, or multiplies them).

Create an input file that contains data such as the following
A 2 3
M 5 7
A 6 11
A 2 22
M 79 62

Create a main function that opens the input file, reads each line, and based on the first character in the input line, calls the [A]dd function or the [M]ultiply function.
Once you have calculated the result (one line at a time), write the result to an output file.

Who can do this for me? Will send a little tip for you if you can do this blushing
December 11, 2011 @ 23:25:13 PM
Post: 2589
Join Date: Sep 2011
I've never used multi-dimensional arrays before, but I guess I could give it a try tomorrow.
December 12, 2011 @ 00:01:44 AM
Post: 497
Join Date: Jan 2008
Are you guys good with java?
I need help, I'm failing my class.


I just learned some java haha what you need help w/?
Please login first to reply.
x