Help me understand following statement/syntax in C++

This is a discussion on Help me understand following statement/syntax in C++ within the C++ Programming forums, part of the General Programming Boards category; Following is the syntax tht i came across: What does the intializing to zero mean in this case? Code: virtual ...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    139

    Help me understand following statement/syntax in C++

    Following is the syntax tht i came across:

    What does the intializing to zero mean in this case?

    Code:
     virtual nsecs_t getKeyRepeatTimeout() = 0;

    Thanks in advance

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,624
    It means that getKeyRepeatTimeout is a pure virtual member function.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please help understand following c++ syntax
    By sanddune008 in forum C++ Programming
    Replies: 6
    Last Post: 03-09-2011, 06:12 AM
  2. Cannot understand this syntax in png.h
    By simpatico_qa in forum C Programming
    Replies: 10
    Last Post: 08-12-2009, 02:30 AM
  3. Cant Understand the syntax
    By noobcpp in forum C Programming
    Replies: 7
    Last Post: 07-23-2008, 12:01 AM
  4. Need help to understand this statement
    By jk1998 in forum C++ Programming
    Replies: 3
    Last Post: 04-20-2007, 02:42 PM
  5. I don't understand this syntax.
    By curlious in forum C Programming
    Replies: 2
    Last Post: 09-08-2005, 10:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21