• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Need some C++ Programming help

Status
Not open for further replies.

NWO

Member
Slo said:
Problem #1: Arrays are 0 based.

Guess that would be a problem. :lol

Well he's screwed then because I barely got past one dimensional arrays when I took the class. I never recall doing anything this complicated and I don't even know that much about arrays.

Next time I'll be sure to check out what the problem is before I offer help because I don't think I could help many people with writing a program now. I just thought that GAF would have a lot of programmers or computer science majors that could help out. Guess I'll just have to tell him that its above my head and that I can't help him any further. I helped him out somewhat so I shouldn't feel bad.
 

Slo

Member
Not to be a dick, but we get these type of topics a lot, and I feel pretty strongly that it's a bad idea to write programs for people when they should be learning the fundementals for themselves. :)
 

Dyne

Member
Yeah, don't write the program for him. The minute he goes into a test and they give him a similar problem (yet not so similar) he won't be able to solve it, because he doesn't have the skills.

As for the problem, I could probably whip it up in Java, but I still don't understand the concept.

I guess the best advice to give is to notice that array indexes are always n-1. So make a counter with respect to that. And I see Slo's pointed that out, too.
 
Status
Not open for further replies.
Top Bottom