Search:

Type: Posts; User: XNOViiCE

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    821

    Thanks for the quick reply. I now feel incredibly...

    Thanks for the quick reply. I now feel incredibly stupid. lol
  2. Replies
    3
    Views
    821

    Question on functions

    Hey everyone. I am working with a limited compiler (information you may need to know, I don't really know) and I made this function

    void Swap(int &a , int &b);
    {
    Destination temp;
    ...
  3. Replies
    14
    Views
    1,140

    Hey that works! Thanks! Don't really know why I...

    Hey that works! Thanks! Don't really know why I didn't try that yet! XD
  4. Replies
    14
    Views
    1,140

    string city int package_count float...

    string city
    int package_count
    float total_weight

    are the members that are present in Destination right now.
  5. Replies
    14
    Views
    1,140

    Well the city is the destination of where the...

    Well the city is the destination of where the shipment has to be dropped off. Would accepting a destination not a city still be a string anyways?
  6. Replies
    14
    Views
    1,140

    That is the exact error message XD I have to use...

    That is the exact error message XD I have to use some limited compiler for some reason. I have the code posted at the top already too, the only difference is that a put in a constructor.
  7. Replies
    14
    Views
    1,140

    Well when I made the constructor and assigned num...

    Well when I made the constructor and assigned num to zero it gives me this error "Cannot assign values of type string to a variable of type Destination"
  8. Replies
    14
    Views
    1,140

    An array problem

    Hey everyone, I am having some difficulties knowing how to assign city to the list. Can anyone help? Thanks!



    class DestinationList
    {
    private:
    int num; // number of...
  9. Replies
    1
    Views
    770

    I see the supreme stupidity in my question. Never...

    I see the supreme stupidity in my question. Never mind...*facepalm*
  10. Replies
    1
    Views
    770

    Void function to void function

    Hey everyone. I am doing a program right now where scores from this void function


    void ProcessOneGame(int& score1, int& score2 ){
    bool GoodScoreCheck;
    score1 = ReadScore("enter first...
  11. I would if I could but this is a homework...

    I would if I could but this is a homework assignment. :b but thanks again!
  12. I see! Thanks! :-D

    I see! Thanks! :-D
  13. But can't you already do that without a parameter?

    But can't you already do that without a parameter?
  14. interesting function parameter (for a noob)

    Hey all, I have this function to make and it has to be like this.

    int ReadScore( string prompt )
    What would the reason of having a prompt parameter?

    Thanks in advance!
  15. Replies
    16
    Views
    1,632

    Elkvis....you sir are a wizard. That some how...

    Elkvis....you sir are a wizard. That some how made it work! :D
    Also thank you to everyone that helped out! It helps me a lot!
  16. Replies
    16
    Views
    1,632

    Its was a move that my partner wanted. Thinking...

    Its was a move that my partner wanted. Thinking about it now, I'll clean it up.
  17. Replies
    16
    Views
    1,632

    Oh no the for loops are assigning values to...

    Oh no the for loops are assigning values to last0/1 , first0/1. The reason I am using the stored value is so that it only puts in the number of characters in the array and no more than that.
  18. Replies
    16
    Views
    1,632

    I checked the names, the passenger count and I am...

    I checked the names, the passenger count and I am ment to use strcmp. We are sorting by alphabetical order.
    So the results I got were that the compiler only crashes when the names are the same no...
  19. Replies
    16
    Views
    1,632

    Hmmm. Okay I am going to check that.

    Hmmm. Okay I am going to check that.
  20. Replies
    16
    Views
    1,632

    Okay so the code has changed a bit now ...

    Okay so the code has changed a bit now



    bool LessThanByName( const Passenger & passenger ) const
    {
    char last0[MAX_LENGTH + 1];
    char last1[MAX_LENGTH + 1];
    char...
  21. Replies
    16
    Views
    1,632

    I will but I am fixing things and I made a bigger...

    I will but I am fixing things and I made a bigger problem. :b But I will do that soon!
  22. Replies
    16
    Views
    1,632

    No I have to use a char array. It is required for...

    No I have to use a char array. It is required for it to be used.:p
  23. Replies
    16
    Views
    1,632

    strcmp problem

    Hey all. I am having a slight problem with strcmp. I am comparing a two last names and two first names and the problem occurs when two of the same last names are entered. How can I fix this problem?...
  24. Replies
    18
    Views
    9,965

    Okay I think I understand it all now! Thanks for...

    Okay I think I understand it all now! Thanks for all the help I think I would have been stuck for a long time if you didn't help! We have learned arrays just he likes making things difficult for us...
  25. Replies
    18
    Views
    9,965

    Well this seems like it works. void...

    Well this seems like it works.


    void GetLastName(Name lastName)
    {
    strcpy(last,lastName);
    }


    But I don't see the reason for a parameter in a getter.
Results 1 to 25 of 38
Page 1 of 2 1 2