Search:

Type: Posts; User: Arsalan Ahmad

Search: Search took 0.00 seconds.

  1. The above error just got fixed on its own. I dont...

    The above error just got fixed on its own. I dont know why. Well you can see the code and what it is trying to do. It does the work but is there any way to shorten or to optimize the code? Any tips...
  2. What does it mean to "initialize" a variable? I...

    What does it mean to "initialize" a variable? I continued on that same age calculator and Im trying to convert the months into days so that it will be easy for me to take the difference. After that,...
  3. Next, Im going to use similar validity test on...

    Next, Im going to use similar validity test on the second date and then calculate their difference. Im still a bit confused about how to calculate the difference ( how to carry from the next month if...
  4. The program is running fine for now. Thanks...

    The program is running fine for now. Thanks GReaper. I know it must be frustrating to repeat the small things but thanks for the patience.
  5. what it should do is that it should repeat the...

    what it should do is that it should repeat the stuff between while block for every invalid value and step out of the while loop when a valid date is entered
  6. I changed the code. Now please look at this and...

    I changed the code. Now please look at this and tell me what is wrong with it. Thanks



    #include <iostream>
    using namespace std;

    int main ()
    {
    int D1;
  7. It worked!

    I changed the = to == and that problem was solved. Now my current code is this

    code1 - Pastebin.com

    The program says that the date is invalid even when I put a valid date. What am I doing wrong?
  8. Require help with several errors (c2106, C4305)

    Im new to programming. Infact, I started learning yesterday so I am inexperienced and require help. Im trying to make an age calculator. I havent even got halfway into the program and still it is...
Results 1 to 8 of 8