Thread: using classes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Code:
    for(Divisor3 = 1)
    Assignment, not a comparison.

    Code:
    if(Sum2 = Answer1){
    Assignment, not a comparison.

    Code:
    &Answer1&
    Where did you get that syntax from?

    Wow, I completely missed that all that code was just thrown into the middle of the class definition. How does one even arrive at doing that, assuming one is reading a book and attending lectures?
    Last edited by rags_to_riches; 04-18-2011 at 04:45 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Conversions between base classes and derived classes
    By tharnier in forum C++ Programming
    Replies: 14
    Last Post: 03-18-2011, 10:50 AM
  2. Classes access other classes local variables
    By parad0x13 in forum C++ Programming
    Replies: 6
    Last Post: 01-14-2010, 04:36 AM
  3. Classes with Other Classes as Member Data
    By njd in forum C++ Programming
    Replies: 2
    Last Post: 09-27-2005, 09:30 AM
  4. Help accessing classes and derived classes
    By hobbes67 in forum C++ Programming
    Replies: 8
    Last Post: 07-14-2005, 02:46 PM
  5. Classes inside Classes
    By LostGeneration in forum C++ Programming
    Replies: 7
    Last Post: 11-16-2003, 12:02 PM