6 Commits

Author SHA1 Message Date
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
19 changed files with 47 additions and 156 deletions

View File

@@ -1,3 +1,15 @@
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.

View File

@@ -1,17 +0,0 @@
#include <stdio.h>
int my_float()
{
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,8 +1,7 @@
#include <stdio.h>
#include "foo.h"
int foo()
{
printf("I am foo\n");
return 0;
int foo() {
printf("I am foo\n");
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,5 +0,0 @@
#include <stdio.h>
void hello() {
printf("Hello C Programming Language 2025 Examples\n");
}

View File

@@ -1,6 +0,0 @@
#ifndef HELLO_H
#define HELLO_H
void hello();
#endif

View File

@@ -1,15 +0,0 @@
#include "hex_read_scanf.h"
int hex_scan()
{
int a;
printf("Enter a number : ");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}

View File

@@ -1,9 +0,0 @@
// 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

View File

@@ -1,10 +1,11 @@
#include <stdio.h>
#include "hex_read_scanf.h"
#include "myprint.h"
int main() {
hex_scan();
return 0;
myprint();
return 0;
}

13
c-basic/myprint.c Normal file
View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include "myprint.h"
int myprint() {
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;
}

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

@@ -0,0 +1,6 @@
#ifndef MYPRINT_H
#define MYPRINT_H
int myprint();
#endif

View File

@@ -1,12 +0,0 @@
#include "print_example.h"
int print_example()
{
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,8 +0,0 @@
#ifndef PRINT_EXAMPLE_H
#define PRINT_EXAMPLE_H
#include <stdio.h>
int print_example();
#endif

View File

@@ -1,20 +0,0 @@
#include <stdio.h>
int print_with_scan()
{
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 "scanf_example.h"
int my_scan()
{
int a;
printf("enter the a number:");
scanf("%d", &a);
printf("a number is : %d\n", a);
return 0;
}

View File

@@ -1,8 +0,0 @@
#ifndef SCANF_EXAMPLE_H
#define SCANF_EXAMPLE_H
#include <stdio.h>
int my_scan();
#endif

View File

@@ -1,13 +0,0 @@
#include "scanf_example_two_numbers.h"
int scan_two_numbers()
{
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,8 +0,0 @@
#ifndef SCANF_EXAMPLE_TWO_NUMBERS_H
#define SCANF_EXAMPLE_TWO_NUMBERS_H
#include <stdio.h>
int scan_two_numbers();
#endif

View File

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