CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: veryNew

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    3,878

    Re: Input Validation Error Using Arrays

    Yeah, I was browsing a little and I found that. I had never used that keyword before, but I read about it and it seemed to be something that I would need to go along with the highest and lowest part...
  2. Replies
    11
    Views
    3,878

    Re: Input Validation Error Using Arrays

    I checked that out with this program and it did catch it. Looks like I now have an alternate compiler I can go to, thank you.
  3. Replies
    11
    Views
    3,878

    Re: Input Validation Error Using Arrays

    Oh...I didn't catch that, and apparently my compiler didn't either. Thank you for pointing that out.
  4. Replies
    11
    Views
    3,878

    Input Validation Error Using Arrays

    :confused:I have not completed this program yet, but I have already run into a snag. For the Input Validation part, every time you enter a number regardless if it is positive it will still display...
  5. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    :confused:

    This code was really good, and everything made sense to me. I especially liked where you integrated the input statement in your if conditional statement:


    if (!(cin >> num)) {


    ...
  6. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    Yes, Paul was right. It was an oversight on my part, I should have posted on the other generic thread. I apologize to anyone reading here on that misjudgment.
  7. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    "Starting Out With C++ Early Objects" by Tony Gaddis



    Thank you, I will definitely check them out.
  8. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    You are right. It was an oversight on my part of where I posted and I should have posted on the Non-Visual C++ threads and for that I apologize.

    I have never used the debugger before, but I would...
  9. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    I have Visual C++, but because the program that I use comes with its own compiler then I chose to use that. If that upsets you in any way, or any other moderator that posts here, then I apologize and...
  10. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    I am using a program called: "My Code Mate". It only has a compiler, but includes many projects that you can practice with, that's why I like to use it.
  11. Re: Roman Numeral Converter to Decimal Using an Array of Strings

    My compiler does not come with a debugger.




    The reason it is being repeated is because the "else" statement is the input validation if the user accidentally inputs an invalid number. The...
  12. Roman Numeral Converter to Decimal Using an Array of Strings

    :confused:This program compiles, but has a bunch of logical errors. I know my problem is somewhere in the while loop that I have, but I can't figure out where.

    Here are some of the issues I am...
  13. Re: Creating a Function That Needs To Determine Perfect Scores

    "Starting out with C++ Early Objects" by Tony Gaddis
  14. Re: Creating a Function That Needs To Determine Perfect Scores

    I am learning on my own will. I have always loved programming and I decided to purchase a C++ book and read a little through it and take some practice programs as I go through the chapters. Trust me,...
  15. Re: Creating a Function That Needs To Determine Perfect Scores

    No teacher was involved here, unless you want to give credit to 2kaud for being my teacher. He was the one that helped me with the "else" statement in main. But the important thing is that I was able...
  16. Re: Creating a Function That Needs To Determine Perfect Scores

    That worked to perfection, thank you very much. I just wasn't sure where to put the else statement, as I knew you wouldn't want to put it in the loop, it had to go outside somewhere. I just never...
  17. Re: Creating a Function That Needs To Determine Perfect Scores

    Thank you, very much appreciated. I am learning from my past mistakes from other forums that I am registered with where I have been scolded in the past:)
  18. Re: Creating a Function That Needs To Determine Perfect Scores

    perfect = nums[index];
    Not really sure, I am new so I was just playing around and seeing what I could come up with



    I tried this one:


    int countPerfect(int nums[], int numScore)
  19. Re: Creating a Function That Needs To Determine Perfect Scores

    Yeah that code worked, thank you. Here is my complete code:
    :)

    #include <iostream>
    using namespace std;

    int countPerfect(int intArray[], int); // Function prototype

    int main()
    {
  20. Re: Creating a Function That Needs To Determine Perfect Scores

    :confused:Let me break this down into what you described above and see where I am making mistakes:

    1) Initialize a return value to zero
    int perfect = 0;
    2) Loop around the entries in...
  21. Re: Creating a Function That Needs To Determine Perfect Scores

    The assignment instructs me to have a function: "using a value-returning countPerfect function to help it"...
  22. Creating a Function That Needs To Determine Perfect Scores

    :confused:This program is incomplete as I am having difficulty creating the function that needs to find the number of perfect scores entered by the user. I have everything but the function complete...
Results 1 to 22 of 22





Click Here to Expand Forum to Full Width

Featured