User Profile

Collapse

Profile Sidebar

Collapse
bonbon
bonbon
Last Activity: Dec 9 '07, 06:16 PM
Joined: Dec 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bonbon
    replied to to use the arary in a function
    in C
    i have written
    void insert(int A[];int &size;int val){
    for(int i=0;i<size&&val >[i];i++);

    for (int j=size; j>=i+1 ;j--)
    A [j] =A [j-1];
    A[ i]=A [j-1];
    A[i]=val;
    size++;}
    int main(){
    int val;
    int index;
    cin>>val;

    and i don't know how to call the continue to call the function while typing
    cout<<insert( )...
    See more | Go to post

    Leave a comment:


  • bonbon
    started a topic to use the arary in a function
    in C

    to use the arary in a function

    hello i am a student studying computer sciences ,i am facing problem in solving some programms becuse it is all verry new to mee so :i have to write a program in which i have to enter an array but it has to be given by reference fuction and to be able to insert a number to the array ,to delete a number .
    the problem that i don't know how to write in a function ,but i know how to write normal way and how to call it when i want to execute the...
    See more | Go to post
No activity results to display
Show More
Working...