Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to protect a member function Pin
Jochen Arndt31-Oct-14 5:18
professionalJochen Arndt31-Oct-14 5:18 
AnswerRe: How to protect a member function Pin
Chris Losinger31-Oct-14 5:18
professionalChris Losinger31-Oct-14 5:18 
GeneralRe: How to protect a member function Pin
Drugodrf3-Nov-14 2:31
Drugodrf3-Nov-14 2:31 
AnswerRe: How to protect a member function Pin
Albert Holguin3-Nov-14 11:39
professionalAlbert Holguin3-Nov-14 11:39 
AnswerRe: How to protect a member function Pin
Aescleal4-Nov-14 2:29
Aescleal4-Nov-14 2:29 
GeneralRe: How to protect a member function Pin
Drugodrf4-Nov-14 7:41
Drugodrf4-Nov-14 7:41 
GeneralRe: How to protect a member function Pin
Aescleal4-Nov-14 21:27
Aescleal4-Nov-14 21:27 
QuestionI can't figure out why my program is not running Pin
Member 1119464630-Oct-14 18:47
Member 1119464630-Oct-14 18:47 
/* William Strickland
Project 3
Is Leap Year Portion

*/

#include <stdio.h>
#include <stdlib.h>
#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;
}
}
AnswerRe: I can't figure out why my program is not running Pin
enhzflep30-Oct-14 21:12
enhzflep30-Oct-14 21:12 
QuestionResources for OOP practice for C++ Pin
Member 1119427030-Oct-14 14:12
Member 1119427030-Oct-14 14:12 
AnswerRe: Resources for OOP practice for C++ Pin
Richard MacCutchan30-Oct-14 22:52
mveRichard MacCutchan30-Oct-14 22:52 
GeneralMessage Closed Pin
1-Nov-14 19:47
4india1-Nov-14 19:47 
GeneralRe: Resources for OOP practice for C++ Pin
Richard MacCutchan1-Nov-14 21:53
mveRichard MacCutchan1-Nov-14 21:53 
GeneralRe: Resources for OOP practice for C++ Pin
OriginalGriff16-Nov-14 22:37
mveOriginalGriff16-Nov-14 22:37 
GeneralRe: Resources for OOP practice for C++ Pin
Richard MacCutchan16-Nov-14 22:46
mveRichard MacCutchan16-Nov-14 22:46 
QuestionDump file creation Pin
HungryCPPDev29-Oct-14 20:52
HungryCPPDev29-Oct-14 20:52 
AnswerRe: Dump file creation Pin
den2k8830-Oct-14 0:37
professionalden2k8830-Oct-14 0:37 
GeneralRe: Dump file creation Pin
HungryCPPDev30-Oct-14 20:37
HungryCPPDev30-Oct-14 20:37 
AnswerRe: Dump file creation Pin
bert_r30-Oct-14 5:16
bert_r30-Oct-14 5:16 
GeneralRe: Dump file creation Pin
HungryCPPDev30-Oct-14 20:36
HungryCPPDev30-Oct-14 20:36 
QuestionC code : read infomation of USB Pin
Member 1119126829-Oct-14 15:36
Member 1119126829-Oct-14 15:36 
GeneralRe: C code : read infomation of USB Pin
PIEBALDconsult29-Oct-14 17:30
mvePIEBALDconsult29-Oct-14 17:30 
AnswerRe: C code : read infomation of USB Pin
Vaclav Naydenov29-Oct-14 21:32
Vaclav Naydenov29-Oct-14 21:32 
Questionhangman code in C Pin
Member 1118939529-Oct-14 10:56
Member 1118939529-Oct-14 10:56 
SuggestionRe: hangman code in C Pin
Richard MacCutchan29-Oct-14 22:27
mveRichard MacCutchan29-Oct-14 22:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.