15,923,845 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by NaumanMalik (Top 25 by date)
NaumanMalik
1-Dec-20 17:04pm
View
void Date::retrieveDate(int &a, int &b, int &c)const
{
a = Day;
b = Month;
c = Year;
}
I did it. it was just confusing for me what should I do in its body plus I have not done this so that is why I was asking
NaumanMalik
1-Dec-20 15:01pm
View
I'm really sorry if I'm not clearing my point. Actually it is my assignment question and I am writing its code but I am unable to figure out how am I going to retrieve date attributes
void retrieveDate(int &, int &, int &) const; // retrieve Date attribute values
like this in above reply ....You can't even change the prototype...
NaumanMalik
1-Dec-20 14:03pm
View
#include<iostream>
using namespace std;
class Date
{
bool validateDate(); // Validate attribute range values – methods can also be private. You can use this to check validity.
int Day;
int Month;
int Year;
public:
Date(); // initialize attributes with default values
~Date();
Date(int, int, int);// if invalid, set default date or set equal to system date
Date(const Date &);
bool inputDate(); /* assign values to Date attributes (cin from user),
return true if valid range of values are input */
bool copyDate(Date &); // return true if date was valid and copied successfully.
bool inputCompleteDate(int, int, int); // return true if date was valid and was set successfully.
Date &getDate() const;
void retrieveDate(int &, int &, int &) const; // retrieve Date attribute values
void showDate() const; // Display Date attribute values
bool isEqual(Date &); // return true if both dates are equal, (hint: one is already present as this pointer)
int daysBetween(Date &); // return days elapsed between two Dates
int operator - (Date &); // return days elapsed between two Dates. Yes its above function but with operator overloading
// All other relevant methods go here, setter/getter etc
};
this is my question to write bodies of functions of this header file and implement it in main.cpp... I think you will get the question, if not then I can't have anything else to state... i asked my teacher about this... he said you have to set values
I also tried this way but it is also giving errors:
void Date::retrieveDate(int &a, int &b, int &c) const Day(a), Month(b), Year(c);
{
}
NaumanMalik
6-Jul-20 4:56am
View
Welcome by the way i am new so i am sorry for not rating comments
NaumanMalik
6-Jul-20 4:37am
View
okay on it
NaumanMalik
6-Jul-20 4:35am
View
okay i am going to try that
NaumanMalik
6-Jul-20 1:54am
View
but i want to add graphics at the end of my code of c++ program on VS 2013 running on OS: Window 10
NaumanMalik
6-Jul-20 1:53am
View
I want to create my graphics of my name at the end of my program of c++
it is created on VS 2013 and i am using window 10... may be this would help you answer my question
NaumanMalik
6-Jul-20 1:53am
View
I want to create my graphics of my name at the end of my program of c++
it is created on VS 2013 and i am using window 10... may be this would help you answer my question
NaumanMalik
26-Jun-20 11:25am
View
i am actually doing it, i will upload it shortly... i will do whole program.
NaumanMalik
26-Jun-20 10:00am
View
ofcourse not this is not my account and i asked him for code for my easiness and i also know that im neither abusing the SITE nor im asking for free solutions but here everyone treat newcomers like All show no go ... No help and saying that im doing wrong in every perspective :( sadly
NaumanMalik
25-Jun-20 9:22am
View
kindly share code with me please. it will help me out
Thank You <3
NaumanMalik
25-Jun-20 9:21am
View
Deleted
Auction Management System
Summary:
A console application for auctions.
Details:
Write a function-based C++ program which provides the following functionalities to sellers and buyers.
Sellers
• Sign up.
First name, last name, user name (it should be unique), CNIC, password, confirm password.
• Sing in.
User name, password
• Sign out.
• Exit.
• Change password.
• Post item.
Item name, description, posting date, deadline to bid, and minimum bid value. All new items have their statuses
set as available by default which means they are visible to the buyers and they can place their bids. A unique
item ID is automatically assigned to it which can’t be modified by the seller.
• Modify item details.
• View list of posted items.
Show item ID, item name, minimum price, number of people who made bid on that item, maximum bid value
and the buyer ID who placed this maximum bid, and item status.
• Sell item
Change item status to sold. The item gets sold to the buyer with maximum bid.
• Close item
Change item status to close. Buyer can no longer place bids on the item.
Buyers
• Sign up.
First name, last name, user name (it should be unique), CNIC, password, confirm password
• Sing in.
User name, password
• Sign out.
• Exit.
• Change password.
• View available items
Display each item’s item ID, item name, description, deadline to bid, total number of bids, and maximum bid. In
case of 0 bids, maximum bid is the minimum bid set by the seller.
• Place bid
The bid placed must be greater than the maximum bid. User can place multiple bids on a same item.
• View list of bid items.
Item ID, item name, total bids, maximum bid, item status.
• View list of bought items.
Item ID, item name, total bids, maximum bid.
Save all required data in text file(s). Use appropriate menus where ever they are required.
NaumanMalik
24-Jun-20 9:07am
View
solution for my own problem
NaumanMalik
24-Jun-20 7:50am
View
okay
NaumanMalik
24-Jun-20 7:41am
View
it should read row from only forward direction only not column... like
11 12 13 14
15 16 17 18
19 20 21 22
23 24 25 26
1D ARR: 11 12 13 14 TRUE
if i input 1D array: 13 14 from first row and 15 16 from second row but they are each after one another in line like 13 14 15 16 in 2D array: then it is true
NaumanMalik
24-Jun-20 7:40am
View
im trying on paper what you suggested
NaumanMalik
24-Jun-20 7:40am
View
Yes it should read row from only forward direction only not column... like
11 12 13 14
15 16 17 18
19 20 21 22
23 24 25 26
1D ARR: 11 12 13 14 TRUE
if i input 1D array: 13 14 from first row and 15 16 from second row but they are each after one another in line like 13 14 15 16 in 2D array: then it is true
NaumanMalik
24-Jun-20 7:17am
View
https://www.codeproject.com/Questions/5272034/I-tried-this-but-I-cant-figure-it-out-how-to-do-it
kindly check this code... if you dont mind ;(
NaumanMalik
24-Jun-20 7:14am
View
im working on it i will complete it and then upload it
NaumanMalik
23-Jun-20 21:11pm
View
you are right but i can do it and i am doing it ... its just that i want some one to check it and to tell me my mistakes only :) :Thankfully:
NaumanMalik
23-Jun-20 18:40pm
View
My teacher said in last semester try these projects in vacations. the bigger programs you do the maximum you will learn.
NaumanMalik
23-Jun-20 12:26pm
View
i will do like whole code? i was using this site for first time so i thought no one will help so im doing code now and will upload it after 2 days for checking
NaumanMalik
23-Jun-20 12:24pm
View
Deleted
.
NaumanMalik
23-Jun-20 12:24pm
View
well, Neither i'm getting paid nor its part of my grades. actually i am practicing on dynammic memory ... so i was doing this i can do functions pointers etc but i dont know how to verify it :( may be it is leaking memory or idk? so if i do all the code would check it for me? and tell me if there is any mistake? i will upload my cpp about after 1-2 days.?
Show More