Displaying the contents of a vector

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1077 Views - Last Post: 07 October 2012 - 02:51 PM Rate Topic: -----

#16 nquadr  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 120
  • Joined: 30-October 10

Re: Displaying the contents of a vector

Posted 07 October 2012 - 01:55 PM

View Postjimblumberg, on 07 October 2012 - 01:51 PM, said:

If you refuse to take the advise and stop using the global variables you must stop passing these global variables into your functions. When you pass a variable into your function that has the same name as your global variable you will use the variable you pass as a parameter, not the global. Even though they have the same name they are not the same variable.

I suggest you take the advise given and stop using the global variables, and learn to pass the variables correctly.

Jim



Are we talking about
salesOrder
or
offerPrice
?
Was This Post Helpful? 0
  • +
  • -

#17 jimblumberg  Icon User is offline

  • member icon


Reputation: 3845
  • View blog
  • Posts: 11,735
  • Joined: 25-December 09

Re: Displaying the contents of a vector

Posted 07 October 2012 - 02:51 PM

I am talking about any and all global variables, such as but not limited to: salesOrder, offerPrice, and sOList.

Jim
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2