how to find the largest and smallest elements in the vector

This is a discussion on how to find the largest and smallest elements in the vector within the C Programming forums, part of the General Programming Boards category; hi i just want 1 favour from u ,i have been trying alot to write a C program "ON FINDING ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    1

    how to find the largest and smallest elements in the vector

    hi
    i just want 1 favour from u ,i have been trying alot to write a C program "ON FINDING THE LARGEST AND SMALLEST ELEMENT IN A VECTOR"but i couldn't as this is an assignment which is given to me, i would be really "greatful" to u if u could write the full program as i am learning c for the first time and this is my first semester so i don't know much about C PROGRAMMING LANGUAGE as yet.
    waiting for ur reply......

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    We don't do homework for you
    http://cboard.cprogramming.com/annou...ouncementid=39

    Can you at least write a program which prints all the elements of a vector?
    If you can, your assignment is nearly complete by adding a couple of "if" statements
    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
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >i would be really "greatful" to u if u could write the full program
    I suppose if you had a really good reason...

    >as i am learning c for the first time and this is my first semester so i don't know much about C PROGRAMMING LANGUAGE as yet.
    Nope, not even close to a good reason. If you don't know enough about C and programming to do your assignment then you obviously haven't been paying attention in class. We aren't going to do your work for you because you're lazy. Sorry.

    >waiting for ur reply......
    Why not spend your time doing something more productive, like studying so that you can finish your homework before it's due. Nobody here is going to write it for you, but if you have a specific problem concerning your code we'll be happy to lend a hand.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 22
    Last Post: 05-29-2009, 05:44 PM
  2. largest and smallest
    By eldemonio in forum C Programming
    Replies: 9
    Last Post: 10-15-2007, 02:00 PM
  3. largest and smallest number
    By wise_ron in forum C Programming
    Replies: 11
    Last Post: 10-05-2006, 03:25 PM
  4. Find the Largest and Smallest Number
    By Nightsky in forum C Programming
    Replies: 27
    Last Post: 09-04-2006, 03:40 PM
  5. Largest / Smallest (5 integers)
    By Ripley in forum C Programming
    Replies: 4
    Last Post: 10-09-2005, 08:58 PM

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