Thread: C++ Help Please [Question]

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    2

    C++ Help Please [Question]

    hi all
    can you please help me to solve this problem?

    1-Declare 8 by 8 integer array.
    2-write a function that is named Getmax that will receive the array that was declared in part 1 as a parameter and find the maximum value among array's secondary diagonal elements .The function should return the maximum value.

    Thanks in advance.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Saw this on DevShed too.

  4. #4
    Registered User
    Join Date
    May 2010
    Posts
    2
    Quote Originally Posted by Salem View Post
    i'm not asking you to do my homework i acautally made an effort to solve this problem !
    thanks anyway

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by big2soad
    i'm not asking you to do my homework i acautally made an effort to solve this problem !
    Good to hear that. What did you try and how does it not work?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > i acautally made an effort to solve this problem !
    Prove it then!

    Students who claim "they made and effort and post nothing" are a dime a dozen.

    People who actually post their effort (rather than merely claiming such) actually get rewarded with help.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Quote Originally Posted by Salem View Post
    > i acautally made an effort to solve this problem !
    Prove it then!

    Students who claim "they made and effort and post nothing" are a dime a dozen.

    People who actually post their effort (rather than merely claiming such) actually get rewarded with help.
    It's not even the problem that he has to prove it IMHO. But we can't tell him what's wrong with his attempt if we don't know what his attempt is...

  8. #8

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [question] ifstream read file, thanks!
    By userpingz in forum C++ Programming
    Replies: 6
    Last Post: 05-19-2009, 06:38 PM