Thread: Help with funcions

  1. #1
    Registered User
    Join Date
    Jan 2021
    Posts
    1

    Help with funcions

    I am currently doing a work but I am confused and I am not succeeding. I'm a beginner in c. I need to start from another part of a program that will later be added to summarize a continuous component
    I'm given this line of code already (void add_component_continuous (void add_component_continuous (float wave [], int size, float cc)) I don't know how to do it ... Because "wave" is a vector of variable size and I need to add to this vector to that component .. and in this line of code that is given to me "size" means the size of the vector i think e so I don't know if I will have to work with the size of the vector that I don't even understand why.
    I'm currently desperate because I can't do it

    hope anyone can waste a litle bit of time helping me
    Last edited by joao_2022; 01-18-2021 at 08:51 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Funcions-can they return more than 1 value?
    By Labmouse in forum C++ Programming
    Replies: 14
    Last Post: 11-10-2007, 06:16 AM

Tags for this Thread