Search:

Type: Posts; User: Universe

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    965

    Char Array Question.

    char *nchar = "Testing 1, 2, 3\n";


    Does this create a pointer to a char array on the heap that stores "Testing 1, 2, 3\n" ?
  2. Replies
    5
    Views
    1,227

    Ok. For starters... int lbs(int lbs);...

    Ok. For starters...



    int lbs(int lbs);
    int oz(int oz);
    float kg(int kg);
    float g(int g);
    float totalg(int totalg);
  3. Replies
    15
    Views
    1,784

    Have you tried making a 3 x whatever array? ...

    Have you tried making a 3 x whatever array?

    int SomeArray[3][12]
  4. Replies
    6
    Views
    1,123

    Thanks for the explaination, guys. I think I...

    Thanks for the explaination, guys. I think I have an understanding of what they are enough to get me pass this bit of code.

    They aren't const data members, DISGUISED. They are only private...
  5. Replies
    6
    Views
    1,123

    Constructor for a class

    I am current trying to learn C++ and I'm a little confused about a constructor I found in a book I am reading and was wondering if anyone can explain to me what something means



    //this is the...
  6. I am kinda new at C++ and I don't know anything...

    I am kinda new at C++ and I don't know anything about djgpp but try this.



    #include <iostream>

    int main()
    {
    std::cout << "heY";
    return 0;
  7. Thread: Basic Calc

    by Universe
    Replies
    12
    Views
    2,242

    Is there a reason why I should use int...

    Is there a reason why I should use

    int answer()
    return 0

    rather than

    void answer()

    it gets the same thing accomplished.
  8. Thread: Basic Calc

    by Universe
    Replies
    12
    Views
    2,242

    Thanks, it does look cleaner and more...

    Thanks, it does look cleaner and more understandable.

    oh and BTW... it compiled perfectly.

    Traveller:

    I see it now.. it should be
  9. Thread: Basic Calc

    by Universe
    Replies
    12
    Views
    2,242

    Well... I didn't get any compile errors when I...

    Well... I didn't get any compile errors when I compiled it.


    I was thinking about this myself and I should have put that before my class.


    Im not returning anything but the answer is passed...
  10. Thread: Basic Calc

    by Universe
    Replies
    12
    Views
    2,242

    Basic Calc

    I am new here and I am new to C++... been slowly picking things up. I created a Basic Calc program and I was wonder what you guys think on how its writen. I know its a little extreme for a...
Results 1 to 10 of 10