Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help with some date/time input pls Pin
neodeaths29-Jun-05 4:49
neodeaths29-Jun-05 4:49 
GeneralRe: help with some date/time input pls Pin
Ravi Bhavnani29-Jun-05 5:10
professionalRavi Bhavnani29-Jun-05 5:10 
GeneralRe: help with some date/time input pls Pin
David Crow29-Jun-05 5:24
David Crow29-Jun-05 5:24 
GeneralRe: help with some date/time input pls Pin
neodeaths29-Jun-05 14:13
neodeaths29-Jun-05 14:13 
GeneralRe: help with some date/time input pls Pin
David Crow29-Jun-05 16:58
David Crow29-Jun-05 16:58 
GeneralRe: help with some date/time input pls Pin
neodeaths2-Jul-05 9:40
neodeaths2-Jul-05 9:40 
GeneralRe: help with some date/time input pls Pin
David Crow2-Jul-05 12:07
David Crow2-Jul-05 12:07 
GeneralRe: help with some date/time input pls Pin
neodeaths2-Jul-05 17:50
neodeaths2-Jul-05 17:50 
#include<iostream>
using namespace std;

CTime time;

int main (void)
{
CTime time = CTime::GetCurrentTime();
//cout << time << endl;
cout << time.Format(time) << endl;
return 0;
}

the outcome:

--------------------Configuration: tiemsam - Win32 Debug--------------------
Compiling...
tiemsam.cpp
C:\Documents and Settings\nick\Desktop\currently doing cpp project\tiemsam.cpp(4) : error C2146: syntax error : missing ';' before identifier 'time'
C:\Documents and Settings\nick\Desktop\currently doing cpp project\tiemsam.cpp(4) : error C2501: 'CTime' : missing storage-class or type specifiers
C:\Documents and Settings\nick\Desktop\currently doing cpp project\tiemsam.cpp(4) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

tiemsam.exe - 3 error(s), 0 warning(s)



please help me see wats the problem
GeneralRe: help with some date/time input pls Pin
David Crow4-Jul-05 11:42
David Crow4-Jul-05 11:42 
GeneralNumber of bytes in a mbcs string Pin
Chintoo72329-Jun-05 3:28
Chintoo72329-Jun-05 3:28 
GeneralRe: Number of bytes in a mbcs string Pin
RChin29-Jun-05 4:40
RChin29-Jun-05 4:40 
GeneralRe: Number of bytes in a mbcs string Pin
Jose Lamas Rios29-Jun-05 4:41
Jose Lamas Rios29-Jun-05 4:41 
GeneralRe: Number of bytes in a mbcs string Pin
Chintoo72329-Jun-05 4:54
Chintoo72329-Jun-05 4:54 
GeneralRe: Number of bytes in a mbcs string Pin
Jose Lamas Rios29-Jun-05 5:04
Jose Lamas Rios29-Jun-05 5:04 
GeneralRe: Number of bytes in a mbcs string Pin
Andrew Kirillov29-Jun-05 4:58
Andrew Kirillov29-Jun-05 4:58 
GeneralRe: Number of bytes in a mbcs string Pin
Jose Lamas Rios29-Jun-05 5:07
Jose Lamas Rios29-Jun-05 5:07 
Questionany limitations to VTable ??? Pin
Abhi Lahare29-Jun-05 3:24
Abhi Lahare29-Jun-05 3:24 
AnswerRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 3:33
professionalChris Losinger29-Jun-05 3:33 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:41
Chintoo72329-Jun-05 3:41 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:42
Chintoo72329-Jun-05 3:42 
GeneralRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 3:48
professionalChris Losinger29-Jun-05 3:48 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:55
Chintoo72329-Jun-05 3:55 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:56
Chintoo72329-Jun-05 3:56 
GeneralRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 4:03
professionalChris Losinger29-Jun-05 4:03 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 4:18
Chintoo72329-Jun-05 4:18 

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.