Click here to Skip to main content
15,508,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to protect a member function Pin
Jochen Arndt31-Oct-14 6:18
professionalJochen Arndt31-Oct-14 6:18 
AnswerRe: How to protect a member function Pin
Chris Losinger31-Oct-14 6:18
professionalChris Losinger31-Oct-14 6:18 
GeneralRe: How to protect a member function Pin
Drugodrf3-Nov-14 3:31
Drugodrf3-Nov-14 3:31 
AnswerRe: How to protect a member function Pin
Albert Holguin3-Nov-14 12:39
professionalAlbert Holguin3-Nov-14 12:39 
AnswerRe: How to protect a member function Pin
Aescleal4-Nov-14 3:29
Aescleal4-Nov-14 3:29 
GeneralRe: How to protect a member function Pin
Drugodrf4-Nov-14 8:41
Drugodrf4-Nov-14 8:41 
GeneralRe: How to protect a member function Pin
Aescleal4-Nov-14 22:27
Aescleal4-Nov-14 22:27 
QuestionI can't figure out why my program is not running Pin
Member 1119464630-Oct-14 19:47
Member 1119464630-Oct-14 19: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 22:12
enhzflep30-Oct-14 22:12 
QuestionResources for OOP practice for C++ Pin
Member 1119427030-Oct-14 15:12
Member 1119427030-Oct-14 15:12 
AnswerRe: Resources for OOP practice for C++ Pin
Richard MacCutchan30-Oct-14 23:52
mveRichard MacCutchan30-Oct-14 23:52 
GeneralMessage Closed Pin
1-Nov-14 20:47
4india1-Nov-14 20:47 
GeneralRe: Resources for OOP practice for C++ Pin
Richard MacCutchan1-Nov-14 22:53
mveRichard MacCutchan1-Nov-14 22:53 
GeneralRe: Resources for OOP practice for C++ Pin
OriginalGriff16-Nov-14 23:37
mveOriginalGriff16-Nov-14 23:37 
GeneralRe: Resources for OOP practice for C++ Pin
Richard MacCutchan16-Nov-14 23:46
mveRichard MacCutchan16-Nov-14 23:46 
QuestionDump file creation Pin
HungryCPPDev29-Oct-14 21:52
HungryCPPDev29-Oct-14 21:52 
AnswerRe: Dump file creation Pin
den2k8830-Oct-14 1:37
professionalden2k8830-Oct-14 1:37 
GeneralRe: Dump file creation Pin
HungryCPPDev30-Oct-14 21:37
HungryCPPDev30-Oct-14 21:37 
AnswerRe: Dump file creation Pin
bert_r30-Oct-14 6:16
bert_r30-Oct-14 6:16 
GeneralRe: Dump file creation Pin
HungryCPPDev30-Oct-14 21:36
HungryCPPDev30-Oct-14 21:36 
QuestionC code : read infomation of USB Pin
Member 1119126829-Oct-14 16:36
Member 1119126829-Oct-14 16:36 
GeneralRe: C code : read infomation of USB Pin
PIEBALDconsult29-Oct-14 18:30
professionalPIEBALDconsult29-Oct-14 18:30 
AnswerRe: C code : read infomation of USB Pin
Vaclav Naydenov29-Oct-14 22:32
Vaclav Naydenov29-Oct-14 22:32 
Questionhangman code in C Pin
Member 1118939529-Oct-14 11:56
Member 1118939529-Oct-14 11:56 
SuggestionRe: hangman code in C Pin
Richard MacCutchan29-Oct-14 23:27
mveRichard MacCutchan29-Oct-14 23: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.