Explain, please, a piece of code.



  • Two NxN dimensions A and B are available.

        for (Elem=(!Row)?0:(Row-1); Elem<N; B[Row][Elem]=A[Row][Elem], Elem++) 
          cout<<Elem+1<<", ";
         }
    

    Problems with this part Elem=(!Row)?0:(Row-1)



  • It's written. https://purecodecpp.com/archives/554 ♪
    His appearance:

    <Выражение> ? <если истина> : <если ложь>
    

    In your case, if the value Row No, then the meaning. Elem No, no. Row-1



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2