You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
@Danar435 Funktionen
scanf_s
findes kun på Windows, men ingen andre platformer. Derfor kan fx jeg ikke køre dit program på macOS.https://github.com/audio-engineer/exercises/blob/e43fb7723ff4116d078493233267f37faf7b2de6/4_6/4_6_k/src/main.c#L9
Du kan løse problemet ved at gøre koden cross-platform ved at enten bruge
fgets
funktionen eller bruge platform macros. Læs evt. https://stackoverflow.com/questions/4605842/how-to-identify-platform-compiler-from-preprocessor-macros,https://stackoverflow.com/questions/430424/are-there-any-macros-to-determine-if-my-code-is-being-compiled-to-windows og
https://github.com/cpredef/predef/tree/master
The text was updated successfully, but these errors were encountered: