Új hozzászólás Aktív témák
-
Gyuri16
senior tag
válasz
proof88
#2731
üzenetére
a fflush(stdin); se epp a legszebb dolog. idezet a szabvanybol:
#include <stdio.h>
int fflush(FILE *stream);Description
If stream points to an output stream or an update stream in which
the most recent operation was output, the fflush function causes any
unwritten data for that stream to be delivered to the host environment
to be written to the file; otherwise, the behavior is undefined.persze ez nem jelenti, hogy xy fordito nem implementalja, viszont ha forditofuggetlenek szeretnenk lenni, akkor illik nem hasznalni.
a masik dolog, hogy ezt altalaban scanf utan szokas hasznalni, mert az sok esetben otthagy valamit az input streamen. ha viszont egyaltalan nem hasznalunk scanf-et (ami szerintem jo otlet), nem kell a fflush se.
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Samsung Galaxy S23 Ultra / 12/512GB / Kártyafüggetlen / 12Hó Garancia
- GAMER PC! Intel Ultra 245 / RTX 5070 / H810M-X WIFI / 32GB DDR5 / SSD 512GB / 700w! BeszámítOK!
- iPhone 11 Pro 64GB 100% (3hónap Garancia) - AKCIÓ
- 228 - Lenovo LOQ (15IRX10) - Intel Core i7-13650HX, RTX 5060
- Felújított laptopok számlával, garanciával! Ingyen Foxpost/PostaPont!
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
