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
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
// Fontos a bool típushoz | |
#include <stdbool.h> | |
#include <stdlib.h> | |
const char *oszlopok = "abcdefgh"; | |
typedef struct Sakkfigura { |
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
#include <stdio.h> | |
#include <math.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <time.h> | |
#include <stdlib.h> | |
// Konstansok | |
const double PI = 3.141592654; | |
const int METER = 20; |
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
cmake_minimum_required(VERSION 3.12) | |
project(<projekt_nev> C) | |
set(CMAKE_C_STANDARD 99) | |
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) | |
find_package(SDL2 REQUIRED) | |
include_directories(${SDL2_INCLUDE_DIRS}) | |
add_executable(<projekt_nev> main.c) |
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
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | |
# file Copyright.txt or https://cmake.org/licensing for details. | |
# Copyright 2019 Amine Ben Hassouna <[email protected]> | |
# Copyright 2000-2019 Kitware, Inc. and Contributors | |
# All rights reserved. | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: |
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
cmake_minimum_required(VERSION 3.12) | |
project(mertanihely C) | |
set(CMAKE_C_STANDARD 99) | |
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) | |
find_package(SDL2 REQUIRED) | |
find_package(SDL2_image REQUIRED) | |
find_package(SDL2_gfx REQUIRED) | |
find_package(SDL2_ttf REQUIRED) |
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
cmake_minimum_required(VERSION 3.12) | |
project(mertanihely C) | |
set(CMAKE_C_STANDARD 99) | |
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) | |
find_package(SDL2 REQUIRED) | |
find_package(SDL2_image REQUIRED) | |
find_package(SDL2_gfx REQUIRED) | |
find_package(SDL2_ttf REQUIRED) |
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
void ismeretlen_hossz_olvas(FILE *input, char **str) | |
{ | |
size_t hossz = 1; | |
*str = malloc(1 + 1); // karakter + null terminátor | |
char c; | |
int i; | |
for (i = 0; fscanf(input, "%c", &c) != EOF && c != '\n'; i++) { | |
if (i >= hossz) { | |
hossz *= 2; | |
*str = realloc(*str, hossz + 1); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdbool.h> | |
#include "c-econio\econio.h" | |
typedef struct bejegyzes{//az adatokat tartalmazo struktúra létrehozása | |
char keresztnev[50]; | |
char vezeteknev[50]; |
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
0 | |
Peter | |
Arpad | |
hirbemondo | |
1114 Budapest, Irinyi Jozsef u. 43. | |
06702222222 | |
420-0000 | |
[email protected] | |
1 | |
Panni |
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
#include "dicsoseglista.h" | |
#include "debugmalloc.h" | |
Mentes *rendezve_beszur (Mentes *elso, char *nev, int penz, int ido) | |
{ | |
Mentes *uj=(Mentes*)malloc(sizeof(Mentes)); | |
strcpy(uj->nev, nev); | |
uj->penz=penz; | |
uj->ido=ido; | |
uj->kov = NULL; |
OlderNewer