C++ Help Please [Question]

This is a discussion on C++ Help Please [Question] within the C++ Programming forums, part of the General Programming Boards category; hi all can you please help me to solve this problem? 1-Declare 8 by 8 integer array. 2-write a function ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    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
    21,448
    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?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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
    Registered User
    Join Date
    Aug 2005
    Posts
    266

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21