37 Commits

Author SHA1 Message Date
64b5cb88ae foo örneği yazıldı 2025-10-06 23:56:54 +03:00
Mert Gör
dd4d499ae4 update 2025-10-03 08:09:40 +03:00
e7ac62ab1b deleted old examples 2025-10-02 14:46:46 +03:00
a2d1364b09 Nesnelerin İçerisindeki Değerlerin printf Fonksiyonuyla Yazdırılması 2025-08-19 19:41:21 +03:00
8585123ed1 print example 2025-08-19 19:39:53 +03:00
59bf2ec15f I am foo example 2025-08-19 19:28:00 +03:00
19720d5156 starting again, hello code... 2025-08-19 18:50:03 +03:00
b517e2d4c7 Sayı Sistemleri 2025-08-13 05:58:22 +03:00
bb718cbaef deleted other branch examples 2025-08-13 05:32:50 +03:00
84bdffde6a update 2025-07-04 00:26:52 +03:00
ce90b796b8 experimental 2025-06-21 12:49:31 +03:00
a662d6ba8b 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:
main()
{
int a, b;
printf("Bir sayi giriniz : ");
scanf("%x", &a);
printf("a = %d\n", a);
}
2025-06-18 07:37:20 +03:00
45f7da58f9 hex read scanf 2025-06-18 07:35:11 +03:00
1216bc4a03 sayfa 21 scanf iki sayı örneği 2025-06-17 21:25:54 +03:00
2b78953677 scan two numbers example 2025-06-17 13:26:59 +03:00
76f38856ff scanf example written 2025-06-17 13:20:20 +03:00
dc07b91a12 printf example rewritten 2025-06-17 13:10:20 +03:00
bde2e44f89 a better hello example implemented 2025-06-16 21:32:07 +03:00
01b39949c2 hello.c included in main.c and compiled successfully 2025-06-16 21:23:44 +03:00
3ef17fb5ca gitignore update Changelog update 2025-06-16 20:59:08 +03:00
Mert Gör
2e65bff62c C notları eklendi 2025-06-07 22:23:25 +03:00
Mert Gör
aee4fac48d GCC GNU PSD 2025-05-20 11:15:53 +03:00
Mert Gör
7e3fed1bd5 hex_scan code back 2025-04-12 23:13:13 +03:00
Mert Gör
56fa9fee35 make clean 2025-04-12 22:59:25 +03:00
Mert Gör
92130c44dc hello with make 2025-04-12 22:58:04 +03:00
Mert Gör
97d77a3ff6 changed code removed main from each file 2025-04-12 22:53:01 +03:00
Mert Gör
9a2eabf5cf new makefile fix 2025-04-12 22:37:32 +03:00
Mert Gör
11abe9c6c7 new makefile 2025-04-12 22:35:42 +03:00
Mert Gör
d6283d31cd new file = main.c and modified hex_read_scanf.c removed main from hex_read_scanf.c 2025-04-12 22:29:04 +03:00
Mert Gör
0bb57da7ec first code 2025-04-12 22:12:51 +03:00
Mert Gör
79f83aa190 int main() {
unsigned int a; // Change 'int' to 'unsigned int'

    printf("Enter your number: ");
    scanf("%x", &a); // Now 'a' matches '%x' expected type
    printf("a = %u\n", a); // Use '%u' to correctly print an unsigned int

    return 0;
}
2025-04-12 22:09:27 +03:00
Mert Gör
523764a45c fixed makefile 2025-04-12 22:07:23 +03:00
Mert Gör
119632d026 make file test 2025-04-12 22:06:03 +03:00
Mert Gör
84c1aa6a02 changed code to the older version 2025-04-12 22:02:46 +03:00
Mert Gör
c788fa919f unsigned int fix 2025-04-12 21:58:40 +03:00
Mert Gör
70b12c1d28 trying to understand and fix the issue hex read scanf 2025-04-12 21:56:49 +03:00
Mert Gör
391e29cbfd test for ci/cd 2025-04-12 21:51:02 +03:00
18 changed files with 28566 additions and 117 deletions

2
.gitignore vendored
View File

@@ -53,3 +53,5 @@ flycheck_*.el
# End of https://www.toptal.com/developers/gitignore/api/emacs
.ccls-cache/*

8
.woodpecker/build.yaml Normal file
View File

@@ -0,0 +1,8 @@
when:
- event: [push, pull_request, manual]
steps:
- name: build
image: masscollabs/build-essential:latest
commands:
- make

View File

@@ -1,3 +1,43 @@
2025-08-19 Mert Gör <hwpplayer1@masscollabs>
* c-basic/CSD-C-Basic-Book/C.pdf: page 19 Nesnelerin İçerisindeki Değerlerin printf Fonksiyonuyla Yazdırılması
* c-basic/main.c (main) : I am foo example written
* c-basic/main.c (main): starting again
2025-08-13 Mert Gör <hwpplayer1@masscollabs>
* c-basic/CSD-C-Basic-Book/C.pdf: Kitap yeniden ele alınmakta CSD dalı sayfa 4 Sayı Sistemleri
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
View 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

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,17 +0,0 @@
#include <stdio.h>
int main()
{
float f;
double d;
printf("float :");
scanf("%f", &f);
printf("double :");
scanf("%lf", &d);
printf("f = %f, d = %f", f, d);
return 0;
}

View File

@@ -1,14 +1,7 @@
#include <stdio.h>
int foo()
{
int foo() {
printf("I am foo\n");
return 0;
}
int main()
{
foo();
return 0;
}

6
c-basic/foo.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef FOO_H
#define FOO_H
int foo();
#endif

View File

@@ -1,8 +0,0 @@
#include <stdio.h>
int main()
{
printf("Hello C Programming Language 2025 Examples");
return 0;
}

View File

@@ -1,12 +0,0 @@
#include <stdio.h>
int main()
{
int a, b;
printf("Enter your number : ");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}

8
c-basic/main.c Normal file
View File

@@ -0,0 +1,8 @@
#include <stdio.h>
#include "foo.h"
int main() {
foo();
return 0;
}

View File

@@ -1,12 +0,0 @@
#include <stdio.h>
int main()
{
int a = 10, b = 20;
printf("a = %d, b = %d\n", a, b);
printf("a ? = %d, b ? = %d\n", b , a);
printf("%d%d\n", a, b);
return 0;
}

View File

@@ -1,20 +0,0 @@
#include <stdio.h>
int main()
{
int a , b ;
printf("enter a number\n");
scanf("%d", &a);
printf("enter b number\n");
scanf("%d", &b);
printf("a is %d\n", a);
printf("b is %d\n", b);
printf("a is %d b is %d\n", a, b);
printf("b is %d a is %d\n", b, a);
return 0;
}

View File

@@ -1,12 +0,0 @@
#include <stdio.h>
int main()
{
int a;
printf("enter the a number:");
scanf("%d", &a);
printf("a number is : %d\n", a);
return 0;
}

View File

@@ -1,13 +0,0 @@
#include <stdio.h>
int main()
{
int a, b;
printf("enter two numbers:");
scanf("%d%d", &a, &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}

View File

@@ -1,13 +0,0 @@
#include <stdio.h>
int main()
{
int a , b , c;
a = 10;
b = 20;
c = a + b;
printf("C = %d", c);
return 0;
}

0
experimental.txt Normal file
View File