-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Konsol ekranına günün tarihini basan c kodu
Oğuz Kaan BULUT tarafından yazıldı.
- Loading branch information
1 parent
857b7d8
commit 04ee6e3
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/Created by Oğuz Kaan BULUT. | ||
//All rights reserved. | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
#include <stdio.h> | ||
#include <time.h> | ||
#include <conio.h> | ||
|
||
void main(){ | ||
|
||
time_t t; | ||
|
||
t = time(NULL); | ||
printf("Gunun tarih ve saati: %s",ctime(&t)); | ||
|
||
getch(); | ||
} |
1 comment
on commit 04ee6e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Öncelikle herkese iyi çalışmalar. Kendi bilgisayarımda bu konu ile alakalı kod yazarken voidi kullanınca ('main' must return 'int') hatası verdi. İnt'e çevirdiğimde sorun düzeldi. Bunun sebebi nedir? Bu arada windows kullanıcısıyım ancak pek alakası yok diye düşünüyorum
nice