Arrays
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Arrays

  1. #1
    Join Date
    Dec 2012
    Posts
    3

    Arrays

    Hey everyone, I am using matlab R2o11 in which the programming medium is c++. I am having these variables=
    T=373 t0 376
    V=0.09 to 1
    P=T/V
    I just need a result showing
    First it should take T=373 and solve the equation using all volume values. Then it takes another temperature and do the same. Kindly help me generating code for this. Help will b really appreciated . Thanks.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,047

    Re: Arrays

    Your question doesn't have anything to do with arrays. You need nested for loops. The outer loop will increment temperature and the inner loop volume.

  3. #3
    Join Date
    Dec 2012
    Posts
    3

    Re: Arrays

    Thanks. I need a code doing that . Actually I am new in it so I need a generated code. Plz provide me that. Thanks again

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,047

    Re: Arrays

    Quote Originally Posted by abidfarooq View Post
    Thanks. I need a code doing that . Actually I am new in it so I need a generated code. Plz provide me that. Thanks again
    This isn't the write my code for me forum. Do you know how for loops work? Did you understand what I meant?

  5. #5
    Join Date
    Dec 2012
    Posts
    3

    Re: Arrays

    Problem solved.
    Thanks

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center