Click here to Skip to main content
15,846,571 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I need help URGENT plz Pin
Maximilien24-Mar-09 7:02
Maximilien24-Mar-09 7:02 
GeneralRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 7:05
Mohamed_Khalil24-Mar-09 7:05 
QuestionRe: I need help URGENT plz Pin
David Crow24-Mar-09 7:17
David Crow24-Mar-09 7:17 
AnswerRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 7:18
Mohamed_Khalil24-Mar-09 7:18 
QuestionRe: I need help URGENT plz Pin
David Crow24-Mar-09 7:22
David Crow24-Mar-09 7:22 
AnswerRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 7:24
Mohamed_Khalil24-Mar-09 7:24 
QuestionRe: I need help URGENT plz Pin
David Crow24-Mar-09 7:37
David Crow24-Mar-09 7:37 
QuestionRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 7:46
Mohamed_Khalil24-Mar-09 7: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 7:56
David Crow24-Mar-09 7:56 
GeneralRe: I need help URGENT plz Pin
Mohamed_Khalil24-Mar-09 8:04
Mohamed_Khalil24-Mar-09 8:04 
QuestionRe: I need help URGENT plz Pin
CPallini24-Mar-09 8:03
mveCPallini24-Mar-09 8:03 
Questionhello ,my questions is about opencv track Pin
onlybluemoon24-Mar-09 6:28
onlybluemoon24-Mar-09 6:28 
AnswerRe: hello ,my questions is about opencv track Pin
CPallini24-Mar-09 8:40
mveCPallini24-Mar-09 8:40 
GeneralRe: hello ,my questions is about opencv track Pin
onlybluemoon24-Mar-09 21:29
onlybluemoon24-Mar-09 21:29 
QuestionRe: hello ,my questions is about opencv track Pin
CPallini24-Mar-09 23:15
mveCPallini24-Mar-09 23:15 
AnswerRe: hello ,my questions is about opencv track Pin
onlybluemoon25-Mar-09 3:45
onlybluemoon25-Mar-09 3:45 
GeneralRe: hello ,my questions is about opencv track Pin
onlybluemoon26-Mar-09 0:00
onlybluemoon26-Mar-09 0:00 
QuestionC++ reading out memory specs [modified] Pin
Fatbuddha 124-Mar-09 6:11
Fatbuddha 124-Mar-09 6:11 
AnswerRe: C++ reading out memory specs Pin
Michael Schubert24-Mar-09 6:23
Michael Schubert24-Mar-09 6:23 
GeneralRe: C++ reading out memory specs Pin
Fatbuddha 124-Mar-09 6:33
Fatbuddha 124-Mar-09 6:33 
GeneralRe: C++ reading out memory specs Pin
Michael Schubert24-Mar-09 6:45
Michael Schubert24-Mar-09 6:45 
GeneralRe: C++ reading out memory specs Pin
Fatbuddha 124-Mar-09 7:19
Fatbuddha 124-Mar-09 7:19 
GeneralRe: C++ reading out memory specs Pin
Michael Schubert24-Mar-09 7:28
Michael Schubert24-Mar-09 7:28 
GeneralRe: C++ reading out memory specs Pin
David Crow24-Mar-09 7:39
David Crow24-Mar-09 7:39 
AnswerRe: C++ reading out memory specs Pin
Iain Clarke, Warrior Programmer24-Mar-09 9:39
Iain Clarke, Warrior Programmer24-Mar-09 9: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.