Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 11160377

@User 11160377
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I can't figure out why my program is not running
    U User 11160377

    /* William Strickland Project 3 Is Leap Year Portion */ #include #include #include "..\..\stdbool.h" bool isLeapYear(int *year); int main(int argc, char *argv[]) { int year = atoi(argv[4]); printf("Name: William Strickland \n"); printf("Is Leap Year \n"); if (isLeapYear(&year)) { printf("%d is a leap year", year); } else { printf("%d is not a leap year", year); } return 0; } bool isLeapYear(int *year) { if (*year % 4 == 0 && *year % 100 != 0) { return 1; } else if (*year % 100 == 0 && *year % 400 == 0) { return 1; } else { return 0; } }

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups