Search:

Type: Posts; User: KingFlippyNips

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    428

    Just realized I prob should've posted this in the...

    Just realized I prob should've posted this in the General Discussion board.... sorry.
  2. Replies
    1
    Views
    428

    Jumping Into C++ Soultion Manual?

    The title say it all... I've been going through the practice problems and I was wondering if there was a solution manual to the book? I'd like to check my work. Thanks!

    P.S. - Merry Christmas
  3. Replies
    8
    Views
    1,004

    Thank you for clearing that up for me. With your...

    Thank you for clearing that up for me. With your help I was able to make my program work.


    #include <iostream>
    #include <string>

    using namespace std;

    string name(string *pFname, string...
  4. Replies
    8
    Views
    1,004

    I tried approaching the problem using references...

    I tried approaching the problem using references instead of pointers and it seems to work just fine.



    #include <iostream>
    #include <string>

    using namespace std;

    void name(string...
  5. Replies
    8
    Views
    1,004

    Correct me if I'm wrong, but are you basically...

    Correct me if I'm wrong, but are you basically saying that I need to reference the null pointer instead of dereferencing something that is already null?
  6. Replies
    8
    Views
    1,004

    Can you explain please? I'm still a bit confused.

    Can you explain please? I'm still a bit confused.
  7. Replies
    8
    Views
    1,004

    Need more help with pointers...

    I'm working on the practice problems in the Jumping into C++ book and I'm running into a segmentation fault when running my program.

    The problem is as followed: "Modify the program you wrote for...
  8. Replies
    3
    Views
    717

    I've been a bit busy but I solved the problem...

    I've been a bit busy but I solved the problem thanks to your clarification. Thanks again!

    Here's the solution I came up with:



    #include <iostream>
    #include <string>

    using namespace std;
  9. Replies
    3
    Views
    717

    Ah, thanks for clearing that up for me. Much...

    Ah, thanks for clearing that up for me. Much appreciated!
  10. Replies
    3
    Views
    717

    Using Pointers

    Recently, I have been learning C++ using the book "Jumping Into C++" and I had a question about one of the exercises. The exercise is as follows:

    Write a function that prompts the user to enter...
  11. Replies
    4
    Views
    481

    Thank you for the explination!

    Thank you for the explination!
  12. Replies
    4
    Views
    481

    I made the edits and my program worked perfectly:...

    I made the edits and my program worked perfectly:



    #include "stdafx.h"
    #include <iostream>
    #include <string>

    using namespace std;
  13. Sticky: I recently started using this book to learn C++...

    I recently started using this book to learn C++ and the main I love about this book is how clear the content is presented!
  14. Replies
    4
    Views
    481

    Structures

    I'm working on a problem that ask the following:

    Write a program that lets the user fill in a single structure with name, address, and phone number of a single person.

    The problem I keep...
  15. Thanks for the clarification! I have one more...

    Thanks for the clarification! I have one more question. Would you say the book solution is better than the solution I came up with? Is there anything I could have done to make my solution better?...
  16. Need help understanding the program solution for a book exercise

    The exercise ask to make a calculator program to perform computations in a separate function for each type of computation.

    Here is what my solution looks like and it works perfectly fine.


    ...
  17. The University of San Fransico has really helpful...

    The University of San Fransico has really helpful sorting animations when it comes to sorting algorithms. Here's a link to the website: Comparison Sorting Visualization

    Hope that helps a bit.
  18. That makes sense. Also, would it have been easier...

    That makes sense. Also, would it have been easier to run the program with an infinite while loop like



    while(1){
    // do code here
    }
  19. Sorry for the really late reply... I have been...

    Sorry for the really late reply... I have been pretty busy with some Calc 2 homework. I had a quiz and upcoming exam I have been studying for

    So, I was able to solve the problem. What I did in the...
  20. I didn't forget about your last response! I'm a...

    I didn't forget about your last response! I'm a bit busy today but I think I know how to solve my problem. I will be working on it later today and I'll get back to you. Thanks again!
  21. It passes every test up to "F" and fails for the...

    It passes every test up to "F" and fails for the rest. Why is that?
  22. When I ran the original program with the for loop...

    When I ran the original program with the for loop I kept getting 0 as the return value. I went back an looked at the book and reread the example of char to int conversions using the function lower. ...
  23. I see where I went wrong... I forgot to add 10...

    I see where I went wrong...

    I forgot to add 10 in


    n = 16 * n + (s[i] - 'a');


    Same mistake on line 17. I have rewritten my code.
    Here's what it looks like now:
  24. It returned an integer value of 0 when I tested...

    It returned an integer value of 0 when I tested it.
  25. Converting hexidecimal digits to integer value

    I am working on K&R's Exercise 2-3. The problem is as followed:

    Write a function htoi(s), which converts a string of hexidecimal digits (including an optional 0x or 0X) into its equivalent...
Results 1 to 25 of 33
Page 1 of 2 1 2