Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I need help URGENT plz Pin
Maximilien24-Mar-09 6:02
Maximilien24-Mar-09 6:02 
GeneralRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 6:05
Mohamed_Khalil24-Mar-09 6:05 
QuestionRe: I need help URGENT plz Pin
David Crow24-Mar-09 6:17
David Crow24-Mar-09 6:17 
AnswerRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 6:18
Mohamed_Khalil24-Mar-09 6:18 
QuestionRe: I need help URGENT plz Pin
David Crow24-Mar-09 6:22
David Crow24-Mar-09 6:22 
AnswerRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 6:24
Mohamed_Khalil24-Mar-09 6:24 
QuestionRe: I need help URGENT plz Pin
David Crow24-Mar-09 6:37
David Crow24-Mar-09 6:37 
QuestionRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 6:46
Mohamed_Khalil24-Mar-09 6:46 
ya the program ask the user to implemnt the date mm/dd/yy with function int getDate()

and the program should outputs the with void showDate()

but this two function are public members and the ipmlemntation in .cpp file


#include "stdafx.h"
#include "Date.h"
#include <iostream>
using namespace std;


int main()
{
Date d;
cout<<"Enter the date within formam mm/dd/yy\n";
cin>>d.month>>d.day>>d.year
d.getDate();
d.showDate();
system("pause");
return 0;
}


//Date.cpp function

#include "stdafx.h"
#include "Date.h"

using namespace std;

int Date::getDate() //(int month,int day,int year)
{
return(month,day,year);
}


void Date::showDate()
{
cout<<month<<"/"<<day<<"/"<<year<<endl;
}

//HEADER FILE
#ifndef DATE_H
#define DATE_H

class Date
{
public:
int month;
int day;
int year;
int getDate();
void showDate();
};



I think my problem in the passing arguments !!?
AnswerRe: I need help URGENT plz Pin
David Crow24-Mar-09 6:56
David Crow24-Mar-09 6:56 
GeneralRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 7:04
Mohamed_Khalil24-Mar-09 7:04 
QuestionRe: I need help URGENT plz Pin
CPallini24-Mar-09 7:03
mveCPallini24-Mar-09 7:03 
Questionhello ,my questions is about opencv track Pin
onlybluemoon24-Mar-09 5:28
onlybluemoon24-Mar-09 5:28 
AnswerRe: hello ,my questions is about opencv track Pin
CPallini24-Mar-09 7:40
mveCPallini24-Mar-09 7:40 
GeneralRe: hello ,my questions is about opencv track Pin
onlybluemoon24-Mar-09 20:29
onlybluemoon24-Mar-09 20:29 
QuestionRe: hello ,my questions is about opencv track Pin
CPallini24-Mar-09 22:15
mveCPallini24-Mar-09 22:15 
AnswerRe: hello ,my questions is about opencv track Pin
onlybluemoon25-Mar-09 2:45
onlybluemoon25-Mar-09 2:45 
GeneralRe: hello ,my questions is about opencv track Pin
onlybluemoon25-Mar-09 23:00
onlybluemoon25-Mar-09 23:00 
QuestionC++ reading out memory specs [modified] Pin
Fatbuddha 124-Mar-09 5:11
Fatbuddha 124-Mar-09 5:11 
AnswerRe: C++ reading out memory specs Pin
Michael Schubert24-Mar-09 5:23
Michael Schubert24-Mar-09 5:23 
GeneralRe: C++ reading out memory specs Pin
Fatbuddha 124-Mar-09 5:33
Fatbuddha 124-Mar-09 5:33 
GeneralRe: C++ reading out memory specs Pin
Michael Schubert24-Mar-09 5:45
Michael Schubert24-Mar-09 5:45 
GeneralRe: C++ reading out memory specs Pin
Fatbuddha 124-Mar-09 6:19
Fatbuddha 124-Mar-09 6:19 
GeneralRe: C++ reading out memory specs Pin
Michael Schubert24-Mar-09 6:28
Michael Schubert24-Mar-09 6:28 
GeneralRe: C++ reading out memory specs Pin
David Crow24-Mar-09 6:39
David Crow24-Mar-09 6:39 
AnswerRe: C++ reading out memory specs Pin
Iain Clarke, Warrior Programmer24-Mar-09 8:39
Iain Clarke, Warrior Programmer24-Mar-09 8:39 

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.