Search:

Type: Posts; User: Matamoros123

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    2,098

    Yeah. its just an example from a textbook. You...

    Yeah. its just an example from a textbook. You can change it to 0-6 and it'll pick up on of the primes. But, we set it to 10 to examine how asserts work.

    Yes. I have the error, that wasnt...
  2. Replies
    8
    Views
    2,098

    Oh I understand now!!!! What assert declares is...

    Oh I understand now!!!! What assert declares is the range, not the condition to crash to! What I mean is, I thought it meant if its greater then or equal to zero, CRASH! But what it really means is,...
  3. Replies
    8
    Views
    2,098

    Asserts and their ranges

    #include <iostream>
    #include <assert.h>
    using namespace std;

    const int N_Primes = 7; // Number of Primes

    int primes[N_Primes] = {2, 3, 5, 7, 11, 13, 17};

    int main( )
    {
  4. Replies
    3
    Views
    1,195

    Thank you! You are a life saver!!!

    Thank you! You are a life saver!!!
  5. Replies
    3
    Views
    1,195

    Question about small tutorial closing

    I am reading through a C++ book, and for one of the tutorials I must write a program that displays my Name, Social Security, and Date of Birth. Sounds easy enough, right? Well, I want a program that...
Results 1 to 5 of 5