ik heb het volgende script het is totaal niet nuttig 
Maar hij moet de tijd in de functie (of is he tnou object geworden ?)stel_inn de tijd in laden in uren minuten en seconden
en in functie in toon moet hij dat vervolgens laten zien tijden de compilen geeft ie de volgende error's
Maar hij moet de tijd in de functie (of is he tnou object geworden ?)stel_inn de tijd in laden in uren minuten en seconden
en in functie in toon moet hij dat vervolgens laten zien tijden de compilen geeft ie de volgende error's
C:\exe>bcc32 tijd
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tijd.cpp:
Error E2139 tijd.cpp 8: Declaration missing ;
Error E2335 tijd.cpp 13: Overloaded 'time' ambiguous in this context in function
tijd::stel_in()
Error E2379 tijd.cpp 13: Statement missing ; in function tijd::stel_in()
Error E2451 tijd.cpp 14: Undefined symbol 'systeemdatum' in function tijd::stel_
in()
Error E2451 tijd.cpp 16: Undefined symbol 'minuten' in function tijd::stel_in()
Error E2451 tijd.cpp 17: Undefined symbol 'seconden' in function tijd::stel_in()
Error E2451 tijd.cpp 21: Undefined symbol 'minuten' in function tijd::toon()
Error E2451 tijd.cpp 21: Undefined symbol 'seconden' in function tijd::toon()
Error E2108 tijd.cpp 26: Improper use of typedef 'tijd' in function main()
Error E2108 tijd.cpp 27: Improper use of typedef 'tijd' in function main()
*** 10 errors in Compile ***
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| #include <iostream.h>
#include <dos.h>
class tijd
{
private:
char uren
char minuten
char seconden;
public:
void stel_in()
{
time systeemdatum;
gettime( & systeemdatum);
uren=systeemdatum.ti_hour;
minuten=systeemdatum.ti_min;
seconden=systeemdatum.ti_sec;
}
void toon()
{
cout<< uren<<':'<<minuten<<':'<<seconden;
}
};
void main()
{
tijd.stel_in();
tijd.toon();
cin.get();
} |
Het oneindige X 0