Results 1 to 2 of 2

Thread: pointers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171

    pointers

    1 3
    row-
    col-
    fswap -
    sswap-



    Code:
    void swapColumns(double a[][6],int row,int col,int fswap,int sswap)
     {
        int i;
        double *px,temp;
        px=a;
       for (i=0;i<row ;i++) 
       {   
         temp=*(px i*col+fswap));
         *(px i*col+fswap) = *(px i*col+sswa)p;
         *(px i*col+sswap)=temp; 
       }  
      }
    Last edited by lludmill; 7th November 2010 at 16:37.
    If you understand what you're doing, you're not learning anything.

  2. #2
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171
    .
    If you understand what you're doing, you're not learning anything.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |