Click here to Skip to main content
14,740,854 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Difference between current system time and time from user input in c Pin
Mircea Neacsu31-Oct-20 7:59
mvaMircea Neacsu31-Oct-20 7:59 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard Andrew x6431-Oct-20 9:03
professionalRichard Andrew x6431-Oct-20 9:03 
GeneralRe: Difference between current system time and time from user input in c Pin
Mircea Neacsu31-Oct-20 9:14
mvaMircea Neacsu31-Oct-20 9:14 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard MacCutchan31-Oct-20 10:38
mveRichard MacCutchan31-Oct-20 10:38 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard Andrew x6431-Oct-20 11:28
professionalRichard Andrew x6431-Oct-20 11:28 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard MacCutchan31-Oct-20 22:22
mveRichard MacCutchan31-Oct-20 22:22 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard Andrew x641-Nov-20 10:58
professionalRichard Andrew x641-Nov-20 10:58 
GeneralRe: Difference between current system time and time from user input in c Pin
Richard MacCutchan1-Nov-20 22:58
mveRichard MacCutchan1-Nov-20 22:58 
Richard Andrew x64 wrote:
Is it possible to declare a variable of type "class"?
No, because class is an abstract concept, not a type in the same sense that int is. The actual type will be the name used in the class definition. For example consider the following:
class Foo
{
public:
    Foo() { std::cout << "Constructing a Foo object" << std::endl; }
};

int main(int argc, char** argv)
{
    Foo aFoo;
    Foo* pFoo = new Foo();
}

A new object aFoo is created and stored on the local stack. A second new object is instantiated on the heap and its address passed back to be stored in the pointer pFoo. The type of both objects is Foo not class.

Does that make sense?

modified 2-Nov-20 6:39am.

AnswerRe: Difference between current system time and time from user input in c Pin
Daniel Pfeffer31-Oct-20 12:24
professionalDaniel Pfeffer31-Oct-20 12:24 
QuestionSearching and displaying a record in Array of Structure in c Pin
Member 1497910829-Oct-20 17:45
MemberMember 1497910829-Oct-20 17:45 
AnswerRe: Searching and displaying a record in Array of Structure in c Pin
CPallini29-Oct-20 22:27
mveCPallini29-Oct-20 22:27 
QuestionHow to convert my MDI Application to open each window as a separate instance of the application Pin
manoharbalu23-Oct-20 1:09
Membermanoharbalu23-Oct-20 1:09 
AnswerRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
trønderen23-Oct-20 1:34
Membertrønderen23-Oct-20 1:34 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
manoharbalu23-Oct-20 1:49
Membermanoharbalu23-Oct-20 1:49 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
trønderen23-Oct-20 9:04
Membertrønderen23-Oct-20 9:04 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
Victor Nijegorodov23-Oct-20 9:35
MemberVictor Nijegorodov23-Oct-20 9:35 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
trønderen23-Oct-20 10:32
Membertrønderen23-Oct-20 10:32 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
Victor Nijegorodov23-Oct-20 11:26
MemberVictor Nijegorodov23-Oct-20 11:26 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
manoharbalu26-Oct-20 1:07
Membermanoharbalu26-Oct-20 1:07 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
Victor Nijegorodov26-Oct-20 1:34
MemberVictor Nijegorodov26-Oct-20 1:34 
GeneralRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
manoharbalu23-Oct-20 3:35
Membermanoharbalu23-Oct-20 3:35 
SuggestionRe: How to convert my MDI Application to open each window as a separate instance of the application Pin
David Crow23-Oct-20 3:46
MemberDavid Crow23-Oct-20 3:46 
Questionqueues to find minimum time to serve all. Pin
fecomevi21-Oct-20 23:22
Memberfecomevi21-Oct-20 23:22 
AnswerRe: queues to find minimum time to serve all. Pin
trønderen22-Oct-20 1:04
Membertrønderen22-Oct-20 1:04 
AnswerRe: queues to find minimum time to serve all. Pin
Richard MacCutchan22-Oct-20 1:16
mveRichard MacCutchan22-Oct-20 1:16 

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.