Compare commits
28 Commits
da1d77758a
...
2025-examp
| Author | SHA1 | Date | |
|---|---|---|---|
| 84bdffde6a | |||
| ce90b796b8 | |||
| a662d6ba8b | |||
| 45f7da58f9 | |||
| 1216bc4a03 | |||
| 2b78953677 | |||
| 76f38856ff | |||
| dc07b91a12 | |||
| bde2e44f89 | |||
| 01b39949c2 | |||
| 3ef17fb5ca | |||
|
|
2e65bff62c | ||
|
|
aee4fac48d | ||
|
|
7e3fed1bd5 | ||
|
|
56fa9fee35 | ||
|
|
92130c44dc | ||
|
|
97d77a3ff6 | ||
|
|
9a2eabf5cf | ||
|
|
11abe9c6c7 | ||
|
|
d6283d31cd | ||
|
|
0bb57da7ec | ||
|
|
79f83aa190 | ||
|
|
523764a45c | ||
|
|
119632d026 | ||
|
|
84c1aa6a02 | ||
|
|
c788fa919f | ||
|
|
70b12c1d28 | ||
|
|
391e29cbfd |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -53,3 +53,5 @@ flycheck_*.el
|
||||
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/emacs
|
||||
|
||||
.ccls-cache/*
|
||||
8
.woodpecker/build.yaml
Normal file
8
.woodpecker/build.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
when:
|
||||
- event: [push, pull_request, manual]
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: masscollabs/build-essential:latest
|
||||
commands:
|
||||
- make
|
||||
28
ChangeLog
28
ChangeLog
@@ -1,3 +1,31 @@
|
||||
2025-07-04 Mert Gör <hwpplayer1@masscollabs>
|
||||
|
||||
* c-basic/CSD-C-Basic-Book/C.pdf: Kitabı incelemeye başladım. En kısa sürede tüm kurslar tekrar gözden geçirilecek.
|
||||
|
||||
2025-06-18 Mert Gör <hwpplayer1@masscollabs>
|
||||
|
||||
* c-basic/CSD-C-Basic-Book/C.pdf: printf fonksiyonundaki format karakterleri scanf fonksiyonunda klavyeden girişi belirlemektedir. Yani örneğin biz
|
||||
pir int değeri printf ile %x kullanarak yazdırırsak bu değer 16'lık sistemde ekrana yazdırılır. Fakat bir int değeri
|
||||
scanf ile %x ile okumak istersek klavyeden yaptığımız girişin 16'lık sistemde olduğu kabul edilir. Örneğin:
|
||||
#include <stdio.h>
|
||||
main()
|
||||
{
|
||||
int a, b;
|
||||
printf("Bir sayi giriniz : ");
|
||||
scanf("%x", &a);
|
||||
printf("a = %d\n", a);
|
||||
}
|
||||
|
||||
2025-06-17 Mert Gör <hwpplayer1@masscollabs>
|
||||
|
||||
* c-basic/CSD-C-Basic-Book/C.pdf: scanf ile 2 sayı girilmesi sayfa 20,21
|
||||
|
||||
2025-06-16 hwpplayer1 <hwpplayer1@masscollabs>
|
||||
|
||||
* c-basic/CSD-C-Basic-Book/C.pdf: Unix/Linux Sistemlerinde Derleme ve Bağlama İşlemi sayfa 11
|
||||
|
||||
* c-basic/CSD-C-Basic-Book/C.pdf: C Temal kitabı baştan okunuyor. Sayı Sistemleri sayfa 4
|
||||
|
||||
2025-03-21 Mert Gör <mertgor@masscollabs.xyz>
|
||||
|
||||
* c-basic/CSD-C-Basic-Book/C.pdf: printf fonksiyonunda hem float hem de double türleri %f ile yazdırılır. Ancak scanf fonksiyonunda float %f ile,
|
||||
|
||||
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c11
|
||||
SRCDIR = ./c-basic
|
||||
SRC = $(wildcard $(SRCDIR)/*.c)
|
||||
OBJ = $(patsubst $(SRCDIR)/%.c, $(SRCDIR)/%.o, $(SRC))
|
||||
TARGET = main
|
||||
all: $(TARGET)
|
||||
$(TARGET): $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
$(SRCDIR)/%.o: $(SRCDIR)/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
clean:
|
||||
rm -f $(OBJ) $(TARGET)
|
||||
BIN
PSD/lto.pdf
Normal file
BIN
PSD/lto.pdf
Normal file
Binary file not shown.
28486
c-basic/CSD-C-Basic-Book/C-OzetNotlar-Ornekler.txt
Normal file
28486
c-basic/CSD-C-Basic-Book/C-OzetNotlar-Ornekler.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int my_float()
|
||||
{
|
||||
float f;
|
||||
double d;
|
||||
|
||||
@@ -6,9 +6,3 @@ int foo()
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
foo();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello C Programming Language 2025 Examples");
|
||||
|
||||
return 0;
|
||||
void hello() {
|
||||
printf("Hello C Programming Language 2025 Examples\n");
|
||||
}
|
||||
|
||||
6
c-basic/hello.h
Normal file
6
c-basic/hello.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef HELLO_H
|
||||
#define HELLO_H
|
||||
|
||||
void hello();
|
||||
|
||||
#endif
|
||||
@@ -1,11 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include "hex_read_scanf.h"
|
||||
|
||||
int main()
|
||||
int hex_scan()
|
||||
{
|
||||
int a, b;
|
||||
|
||||
printf("Enter your number : ");
|
||||
int a;
|
||||
|
||||
printf("Enter a number : ");
|
||||
|
||||
scanf("%x", &a);
|
||||
|
||||
printf("a = %d\n", a);
|
||||
|
||||
return 0;
|
||||
|
||||
9
c-basic/hex_read_scanf.h
Normal file
9
c-basic/hex_read_scanf.h
Normal file
@@ -0,0 +1,9 @@
|
||||
// hexutil.h
|
||||
#ifndef HEXUTIL_H
|
||||
#define HEXUTIL_H
|
||||
|
||||
// Prompts the user for a hexadecimal number and prints its decimal value.
|
||||
// Returns 0 upon successful execution.
|
||||
int hex_scan(void);
|
||||
|
||||
#endif // HEXUTIL_H
|
||||
10
c-basic/main.c
Normal file
10
c-basic/main.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include "hex_read_scanf.h"
|
||||
|
||||
int main() {
|
||||
|
||||
hex_scan();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "print_example.h"
|
||||
|
||||
int main()
|
||||
int print_example()
|
||||
{
|
||||
int a = 10, b = 20;
|
||||
|
||||
|
||||
8
c-basic/print_example.h
Normal file
8
c-basic/print_example.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef PRINT_EXAMPLE_H
|
||||
#define PRINT_EXAMPLE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int print_example();
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int print_with_scan()
|
||||
{
|
||||
int a , b ;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "scanf_example.h"
|
||||
|
||||
int main()
|
||||
int my_scan()
|
||||
{
|
||||
int a;
|
||||
|
||||
|
||||
8
c-basic/scanf_example.h
Normal file
8
c-basic/scanf_example.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef SCANF_EXAMPLE_H
|
||||
#define SCANF_EXAMPLE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int my_scan();
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include "scanf_example_two_numbers.h"
|
||||
|
||||
int main()
|
||||
int scan_two_numbers()
|
||||
{
|
||||
int a, b;
|
||||
|
||||
|
||||
8
c-basic/scanf_example_two_numbers.h
Normal file
8
c-basic/scanf_example_two_numbers.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef SCANF_EXAMPLE_TWO_NUMBERS_H
|
||||
#define SCANF_EXAMPLE_TWO_NUMBERS_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int scan_two_numbers();
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int addition()
|
||||
{
|
||||
int a , b , c;
|
||||
|
||||
|
||||
0
experimental.txt
Normal file
0
experimental.txt
Normal file
Reference in New Issue
Block a user