locked
both process , how can i make it ? RRS feed

  • Question

  • ipr have next structure :

    liczba2=tab[0][1];

    tab[0][1]=tab[0][0];// this counting

    liczba1=tab[0][0];

    liczba1=liczba2;

    tab[0][0]=liczba1;

    i need both processing in order to (this counting) for process will invisible , but for numbers visible , because i must put counter . i use it as tab[i][j] , and before (this counting ) i must put counter j=j+1;

    Can You help me ?

    can i use multithreading ? how ?

    must i make new items ?

    Have You any ideas ?

    need i parallel computing ? how can i start ? i want to use CPU .

    i make solution , thanks . It was very simply . Just , sometimes i must get pice of oxygen .




    • Edited by rafal_bator Wednesday, August 15, 2012 2:08 PM add explain
    Wednesday, August 15, 2012 9:41 AM

Answers

  • I'm afraid your English is not intelligible. You need to rephrase. Can you obtain help from someone on your end who speaks better English?
    • Proposed as answer by Elegentin Xie Friday, August 17, 2012 9:13 AM
    • Marked as answer by Elegentin Xie Tuesday, August 21, 2012 10:19 AM
    Wednesday, August 15, 2012 2:51 PM
  • This code swaps the values of tab[0][0] and tab[0][1] but does so very inefficiently.  You could eliminate the two assignments to liczba1 and change the final statement to use liczba2. 

    There are no i and j variables in your code so what you want is a little confusing. 

    If you have trouble describing what you want in words, show us a sample 2 by 3 tab with values before and after processing.  Then maybe we can infer what you want.

    • Proposed as answer by Elegentin Xie Friday, August 17, 2012 9:13 AM
    • Marked as answer by Elegentin Xie Tuesday, August 21, 2012 10:19 AM
    Wednesday, August 15, 2012 6:34 PM

All replies

  • I'm afraid your English is not intelligible. You need to rephrase. Can you obtain help from someone on your end who speaks better English?
    • Proposed as answer by Elegentin Xie Friday, August 17, 2012 9:13 AM
    • Marked as answer by Elegentin Xie Tuesday, August 21, 2012 10:19 AM
    Wednesday, August 15, 2012 2:51 PM
  • This code swaps the values of tab[0][0] and tab[0][1] but does so very inefficiently.  You could eliminate the two assignments to liczba1 and change the final statement to use liczba2. 

    There are no i and j variables in your code so what you want is a little confusing. 

    If you have trouble describing what you want in words, show us a sample 2 by 3 tab with values before and after processing.  Then maybe we can infer what you want.

    • Proposed as answer by Elegentin Xie Friday, August 17, 2012 9:13 AM
    • Marked as answer by Elegentin Xie Tuesday, August 21, 2012 10:19 AM
    Wednesday, August 15, 2012 6:34 PM