Search:

Type: Posts; User: kes103

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thank you code plug, but I was looking for some...

    Thank you code plug, but I was looking for some specific information on how to read a whole line from a text file.
    The FAQ reference doesn't even have the word file in it.
    :(
  2. getline function to read 1 line from a text file

    I've search the other threads and although I couldn't find or haven't yet found the specific answer it appears that the getline function could be used to read one whole line of a text file. ...
  3. gg- Yes, I substituted LPT1 for COM1 in your...

    gg-
    Yes, I substituted LPT1 for COM1 in your code.
    No, there is no LPT1 file created when I run your code.
  4. Codeplug- Thank you. I tried the example you...

    Codeplug-
    Thank you.
    I tried the example you provided, but that doesn't work either.
    The echo command does work from the DOS prompt.


    c:\echo Hello World>>lpt1
  5. Well, I'm using Borland C++ Builder 6. The book...

    Well, I'm using Borland C++ Builder 6.
    The book explaination said that you should be able to run this
    from a console-mode. You say this isn't so?

    What are the windows device names?
  6. using special filenames for hardware devices eg-"prn" & "con"

    I've been testing this program, but it doesn't work iether using "prn", "lpt1", or "con". I'm using windowsXP and Borland compiler. Any explainations?


    // ezprint.cpp
    // demonstrates simple...
  7. Thread: ch-'0'

    by kes103
    Replies
    8
    Views
    8,700

    ch-'0'

    I came across the following code in a parsing example in a book on C++


    if(ch>='0' && ch<= '0') //if its a digit,
    s.push(ch-'0'); //save numerical value

    Question is: What...
  8. Replies
    2
    Views
    2,498

    having trouble understanding this statement

    I'm having trouble understanding the following statement:


    std::vector<int>::iterator location;


    What is throwing me off is the scope resolution operator :: and the iterator, or ::iterator....
  9. Replies
    3
    Views
    1,169

    Yes, I'm referrring to the 'virtual table'. ...

    Yes, I'm referrring to the 'virtual table'.

    Do you mean that the compiler will put the virtual table(s) in the object code or will the virtual table be a separate file?
  10. Replies
    3
    Views
    1,169

    vtable - where is it?

    When a vtable is created, is it linked with the object code to create an executable (*.exe) or is it a separate file that must be included with the executable?
  11. Thread: Pronouncing...

    by kes103
    Replies
    38
    Views
    7,234

    Is # as in #include pronounced number, pound or...

    Is # as in #include pronounced number, pound or sharp?
  12. Thread: free store?

    by kes103
    Replies
    2
    Views
    1,430

    free store?

    I've come across this term that deals with dynamically allocted memory, but I can't seem to find a definition for it or a definitive explaination as to what it is. Can anyone help by providing a...
  13. Replies
    8
    Views
    8,322

    Could we simplify by saying that it is the curly...

    Could we simplify by saying that it is the curly braces
    {} that void the requirement for the semi-colon(;)? That is, with the exception of structure (do/while included?) and class declarations and...
  14. Replies
    8
    Views
    8,322

    semi-colon - where is it needed

    Why isn't the semi-colon (;) req'd after this statement

    void addIncrement() { count += increment; }
    in the following code? Is it because it is an automatically inlined function or just...
  15. Replies
    2
    Views
    1,315

    function definition return type?

    In the following code (a function definition) CurrencyList is the name of a class. Is the first CurrencyList in the code a return type? If so, what does it mean for the return type to be of a class...
  16. Replies
    8
    Views
    2,160

    another question on using The colon :

    In the following snippet of code, what is the significance of the colon ( : ) after Tree::Tree() and after Tree::Tree(Node const &node)? Is it supposed to mean that Tree::Tree() inherits from...
  17. access modifier after function name in declaration

    class Person: public Sortable
    {
    int getsignature() const; //what is the significance the const here?
    }


    Will someone please tell me what the 'const' after the 'getsignature()' in the above...
  18. Thread: this pointer

    by kes103
    Replies
    12
    Views
    1,811

    Thanks, ygfperson, but were you aware that I was...

    Thanks, ygfperson, but were you aware that I was referring to the code I posted on 7/23/03 and not operator=() in general.
    As another example, consider this code from another book:
    "The definition...
  19. Thread: this pointer

    by kes103
    Replies
    12
    Views
    1,811

    Thank you Cat. Allright, then both '*this' and...

    Thank you Cat.
    Allright, then both '*this' and 'this' refer to the left hand operand of the overloaded '=' operater once an instance of it is called.
    Am I correct now?
  20. Thread: this pointer

    by kes103
    Replies
    12
    Views
    1,811

    OK, after more reading of the book the code came...

    OK, after more reading of the book the code came from and others and after some more pondering...
    'this' refers to 'operator' (the current object) and 'other' refers to an actual Person object....
  21. Thread: this pointer

    by kes103
    Replies
    12
    Views
    1,811

    Thanks Quzah. What about in the following code:...

    Thanks Quzah.
    What about in the following code:


    //copy constructor
    Person::Person (Person const &other)
    {
    //unconditionally copy other's data
    copy(other);
    }
  22. Thread: this pointer

    by kes103
    Replies
    12
    Views
    1,811

    this pointer

    If the 'this pointer' is a variable that refers to the current object within a class, then what is the current object? Is it the last method or function within the class? Would appreciate...
  23. Thread: single colon

    by kes103
    Replies
    11
    Views
    2,507

    single colon

    OK, a single colon follows an access specifier, such as public:
    or private: or protected:, right? Are there any other situations in which a single colon : is used?
  24. Replies
    12
    Views
    2,202

    This is probably beside the point, but why do you...

    This is probably beside the point, but why do you need the
    std:: in front of cout here. It appears to me that this is not always needed.
  25. Thread: copy algorithm

    by kes103
    Replies
    4
    Views
    1,835

    #include #include #include...

    #include <vector>
    #include <iostream>
    #include <algorithm>
    using namespace std;

    int main()
    {
    vector<int> IntVect;
    for( int j = 0; j < 10; ++j )
    IntVect.push_back(j);
Results 1 to 25 of 105
Page 1 of 5 1 2 3 4