Thread: create a function

  1. #1
    Registered User
    Join Date
    Dec 2015
    Posts
    1

    create a function

    I'm having a lot of trouble figuring this problem, if anyone could help it'd be appreciated!
    Write a function called findElement. It should take two arguments a vector of doubles and a double being searched for. Using an iterator, search through the vector and locate the double being searched for. If the double is not found, return -1 to signify that it is not found.

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    If you post your current code, it would show where you have the most trouble.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create a delay function
    By ThLstN in forum C Programming
    Replies: 5
    Last Post: 01-06-2008, 02:54 PM
  2. Create my own rand function?
    By vaibhav in forum C++ Programming
    Replies: 14
    Last Post: 06-07-2006, 02:14 AM
  3. Create an ishex() function.
    By EliasK in forum C Programming
    Replies: 11
    Last Post: 05-07-2003, 08:50 AM
  4. How to create a C function
    By Yawgmoth in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 07:31 PM
  5. Replies: 4
    Last Post: 11-07-2001, 02:46 PM