Search:

Type: Posts; User: Gamma

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,079

    Yeah, in the example im working with, the...

    Yeah, in the example im working with, the ampersand is used in fron of the variable:



    T& operator []
  2. Replies
    7
    Views
    1,079

    The '& operator'...

    What is the '& operator' and how does it work?
  3. Replies
    1
    Views
    1,430

    What do these two lines of code mean?

    Can someone explain these two lines of code please,

    Line one


    T& operator[] (int i) {return at (i); }

    What is 'operator', and 'at'?

    Line Two
  4. Replies
    1
    Views
    828

    What does this line of of code mean?

    Can someone explain what the colon does here:


    template<class T> class Vec : public vector<t> { ...


    Thanks!
  5. Thread: Templates....

    by Gamma
    Replies
    2
    Views
    898

    Templates....

    What is the purpose of the template keyword, and how is this keyword used? What is the putpose of a template class, and how is that used?
  6. How does this work?...assignment using vectors...

    ..." A vector is a single object that can be assigned. For example:



    void f(vector<Entry>& v)
    {
    vector<Entry> v2 = phone_book;
    v = v2;
    //...
    }
  7. Replies
    1
    Views
    1,094

    What is the purpose of vector?

    What is the purpose of vector?
  8. Replies
    4
    Views
    7,380

    What is the purpose of the struct keyword?

    What is the purpose of the struct keyword?
  9. Replies
    3
    Views
    1,317

    Range of an enumeration...

    I need an explination of this:

    ..." The range of an enumeration holds all the enumeration's enumerator values rounded up to the nearest larger binary power minus one"...
  10. Replies
    1
    Views
    12,867

    What does implementation-dependant mean?

    What does implementation-dependant mean?
  11. Replies
    8
    Views
    1,579

    can someone try this program out to see if it...

    can someone try this program out to see if it works maybe its a problem with my compiler, i made the changes and i got more errors than i did the last time, HELP!

    ps the reason why the classes are...
  12. Replies
    2
    Views
    1,458

    What is a scope operator?

    What is a scope operator?
  13. Replies
    1
    Views
    7,145

    What does implicit declaration mean?

    What does implicit declaration of a function mean?
  14. Replies
    8
    Views
    1,579

    exactly what sould i change, i made it int main...

    exactly what sould i change, i made it int main () and return 0;, i actually did that many times before and it still did not work. Then what should i do with the output2, remove it completely? When...
  15. Replies
    8
    Views
    1,579

    HELP! with program

    Hey people,

    I have a program here which is giving me a lot of problems. Im just learn c++ and I'm following a book, the excercise is spearation of interface and implementation.

    Here's the code...
  16. Replies
    1
    Views
    877

    Need example and explination...

    Hello people, I need an example and explination of the const keyword used in method signatures. I'm using a really, crappy book and i don't understand what they are trying to say. Thanks!
  17. Replies
    3
    Views
    1,190

    but how would it be used, and would the results...

    but how would it be used, and would the results be the value of hours and minutes??
  18. Replies
    3
    Views
    1,190

    Explain copy operation...

    Im using a book that quote this as a copy operation used to return a reference as a value, but i dont understand how it works, and how i would be used...


    TimeOfDay createTimeOfDay (int hours,...
  19. Replies
    4
    Views
    1,167

    thanks that solved the problem!:D :D :D

    thanks that solved the problem!:D :D :D
  20. Replies
    4
    Views
    1,167

    Still having problems...

    I tried the changes but it still doesnt work, but now im only down to one error, parse error on line 17, but i only have 16 lines, here's the code so far:


    #include <iostream.h>

    class Exchg {...
  21. Replies
    7
    Views
    1,048

    i'll try to do that, but im using a book to learn...

    i'll try to do that, but im using a book to learn c++ and it is very good, it leaves out stuff all the time, grrrr...:mad:
  22. Replies
    7
    Views
    1,048

    help with program!

    I need this program to display the output (" 111 56 "). Whats the problem with it?


    #include <iostream.h>

    class Exchg {
    public:
    void exchange (int& a, int& b) {
    ...
  23. Replies
    2
    Views
    1,174

    What does de-referenced mean?

    What does de-referenced mean? :confused:
  24. Replies
    2
    Views
    998

    Command question:

    Is there some code that i can use to disregard some parts of my code so i can see how the program runs without using the particular lines of code?

    ps i still need help on my other project here:...
  25. Replies
    4
    Views
    1,478

    [CODE] #include #include...

    [CODE]
    #include <string.h>
    #include <iostream.h>
    #include "pair.h"

    class Date : public Pair {
    public:
    int getYear () {
    return aYear;
    }
Results 1 to 25 of 30
Page 1 of 2 1 2