PDA

View Full Version : help with C++ program


stealth75711
October 20th, 2006, 09:37 PM
hi can anyone help me right a C++ program

po0f
October 20th, 2006, 09:42 PM
stealth75711,

No, we will not do your homework for you.

stealth75711
October 20th, 2006, 09:42 PM
ok thanks anyway

tzulberti
October 21st, 2006, 12:10 AM
IF you code it, I will be willing to help, but i do need to know what is the problem you are having

po0f
October 21st, 2006, 02:30 AM
stealth75711 posted a problem that looked suspiciously like a homework problem. He pretty much posted verbatim what his instructor gave him for an assignment and asked for help, showing no code whatsoever. I called him out on this, and he has since edited his original post, as well as his reply to my response.


stealth75711,

Until I see actual effort into getting your problem solved, I will not help you.

Dimitar
October 21st, 2006, 07:22 AM
good call po0f. try some psuedo or something first stealth just to get your ideas out/

stealth75711
October 28th, 2006, 11:40 PM
stealth75711,

No, we will not do your homework for you.


true ill keep learning and growing

rekahsoft
October 29th, 2006, 12:15 AM
i wouldnt want any help from you anyway
you self righteous geek

wow...u need to learn about a little something about RESPECT!

APNelson.L
October 29th, 2006, 12:50 AM
If the actual problem was posted along with some cod then we all may be able to help :D

stealth75711
October 29th, 2006, 12:53 AM
wow...u need to learn about a little something about RESPECT!

i respect everyones point of view
thanks i was just havin a hard time
in programming class its all good now
Peace out

stealth75711
October 29th, 2006, 12:57 AM
Dont worry ill fake it till i make it
ill turn in crappy C++ programs and hope i
get a D instead of a F
Its only a college degree iam going for
so no big deal.

badactress
October 29th, 2006, 07:29 AM
Hi Stealth,

Instead of faking it & turning in crappy work, why not study hard and turn in great work! The guys here ARE helping you by not helping you (if you get what I mean). If we just supply you with pre-written answers you won't learn half as much as if you figure out at least some basics yourself.

It's an unwritten rule in almost all programming groups that if you tell us the problem & show how you've tried to solve it, we'll bend over backwards to explain where you're going wrong and show you how you could have done it better. But if you make no effort and ask the group to do your work for you, you're going to be very disappointed with the replies you get to your post.

I guarantee if you post back showing how you've tried to solve the problem you'll get a ton of help.

Best Regards,
Norman

po0f
October 29th, 2006, 10:00 AM
stealth75711,

Post some code, show some effort. I wasn't trying to be mean, but I wasn't trying to do your homework for you either.

Attempt your problem before asking for help. Saying "gimme, gimme" and expecting someone to give you something for free will not teach you anything. You will only end up learning how to ask for code.

Instead, post a little code and ask questions about it. "How can I make this better?" or "Is this the best way of doing this?" or even "I can't get this to compile!"

rplantz
October 29th, 2006, 12:06 PM
Dont worry ill fake it till i make it
ill turn in crappy C++ programs and hope i
get a D instead of a F
Its only a college degree iam going for
so no big deal.

I was a CS professor at a university for 21 years. I encountered this attitude often. Since I had been a programmer in industry for 10 years before going into teaching, I know where it leads.

My advice to you is that if you do not like programming now, change majors in college ASAP. You will certainly not like trying to make a living at it. A lot of young people major in CS thinking they can easily get a high-paying job. It may work for a while, but when the layoffs come, guess who goes first? I have stayed in touch with some of my previous students through the layoffs during the past few years. The ones who kept their jobs were not necessarily my "A" students, but they worked hard and enjoyed it.

As several people have said here, if you make an effort, lots of us really would enjoy helping you. But if you don't care, why should we?

rekahsoft
October 29th, 2006, 01:27 PM
i dont respect pompous know-it-alls who
keep all the info in there computerized
brains and are unwilling to help those
trying to learn about it, Just because
they think its cute if they have the answers
and no one else does. Its a form of
manipulation.

you got to think a little more...u are asking for help for what? you posted no info on what has to be done and have shown no effort at all. Before you get any help you will need to show some effort ;)

rekahsoft
October 29th, 2006, 01:30 PM
stealth75711,

Post some code, show some effort. I wasn't trying to be mean, but I wasn't trying to do your homework for you either.

Attempt your problem before asking for help. Saying "gimme, gimme" and expecting someone to give you something for free will not teach you anything. You will only end up learning how to ask for code.

Instead, post a little code and ask questions about it. "How can I make this better?" or "Is this the best way of doing this?" or even "I can't get this to compile!"

i second this

stealth75711
October 29th, 2006, 06:44 PM
cout << "I agree with the posts ill stick with it."/n;
cout << "And eventually ill learn if i dont give up.";

rekahsoft
October 29th, 2006, 07:08 PM
cout << "I agree with the posts ill stick with it."/n;
cout << "And eventually ill learn if i dont give up.";

#include <string>
#include <iostream>

using std::cin;
using std::cout;
using std::endl;
using std::string;

struct what_i_think {
static void say(string str) {
cout << str << endl;
}
};

int main() {
what_i_think::say("Good :)");
return 0;
}

APNelson.L
October 29th, 2006, 07:35 PM
#include <iostream>

using namespace std;

int main()
{
cout<<"We really are happy to help you";
if(you ask for help)
{
cout<<"We will help you";
}
cin.get()
}

theDahv
October 31st, 2006, 09:24 PM
I'm laughing it this on so many levels.

First, yea it sucks when too many users become elitist and arrogant pricks. You really start to diminish the usefulness of boards like this one when you create an environment that scares people out of asking questions. While there are some useless questions out there, what right do you have to tell someone they are dumb and pointless?

On the other hand, on a big board like this, it is important to think your statements out and actually say something coherent. More importantly, don't **** on the thread.

Coming to a board for programming help can be useful, but you're probably better off picking through a Google search or even through some C++ API's (I realize there isn't a good, official one like in Java, but some people have put good work into documentation).

If this is really for a class, you're going to want to avoid plagiarism. More importantly, the only way you're going to learn code is by doing it yourself. The actual concepts behind the code is where you will want to pay attention--anybody can look up code.

So, I don't know if that's all a useless soapbox, I apologize. I just don't like seeing restrictive behavior from both sides--the 'noobs' and the 'l33t h4xorz'--because it's retarded on both sides. Last time I checked, this was all free space...let the moderators worry about regulating. If you're just out to **** on people, find somewhere else to do it. If you're just here to **** people off by being a moron, you'll probably get kicked off.

Find a balance.

I think that's it.

amo-ej1
November 1st, 2006, 04:21 AM
Coming to a board for programming help can be useful, but you're probably better off picking through a Google search or even through some C++ API's (I realize there isn't a good, official one like in Java, but some people have put good work into documentation).


I agree in terms of readability and friendliness towards new users the java api docs are extremely friendly. But there _are_ some really nice C++ api docs out there too.

The most well known for example is the one at SGI: www.sgi.com/tech/stl

and there is the GNU liststdc++ documentation: http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/index.html

Both of them require to put your mind in a knot first, but once you get through the "what the heck ?" phase they 're really great ;)

theDahv
November 2nd, 2006, 02:32 AM
Yea, those look like good sites. I get online quite often to look up documentation for different STD functions, and I've seen a number of sites with different scopes of focus that are similar to the ones you posted.

The coolest thing about the Java API, I think anyway, is that it's all in one place and you don't need to Google.

That was mostly my point there, although that was a minor point in a larger argument.

Oh, and rekahsoft mentioned about RESPECT earlier...<bad joke>I think "respeck" tends to be more important in situations like this.</bad joke>