WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Suche deutsches C-Faq (http://www.wcm.at/forum/showthread.php?t=31607)

pirate man 28.09.2001 08:44

Suche deutsches C-Faq
 
hallo
ich suche ein deutsches faq zu c
darin sollten die wichtigsten befehle wie, wie zb printf und scanf, erklärt werden
danke

_m3 28.09.2001 14:41

man 3 printf
man 3 scanf
Der Rest bleibt dem Leser als Übung überlassen.
(Ich fühle mich heute so bööööse!)

pirate man 28.09.2001 18:19

kannst auch was produktives produzieren, oder nur scheisse??? :mad2:

pong 28.09.2001 20:14

printf("text"[,&<vartyp>]);
scanf("&<vartyp>",<varname>);

pirate man 28.09.2001 20:38

bitte gscheid die frage gelesen
die 2 befehle waren nur ein beispiel
ich suche ein faq, wo alle grundbefehle beschrieben werden
kapiert??

E.S. 29.09.2001 05:16

Vielleicht folgende Adresse?

http://home.pages.de/~c-faq/

Gruss

E.S.

pong 29.09.2001 07:03

dieses thema gabs scho 2 oda 3mal also verwend in 'suchen' button rechts oben

ppaul 29.09.2001 08:25

Zitat:

Original geschrieben von pirate man
bitte gscheid die frage gelesen
die 2 befehle waren nur ein beispiel
ich suche ein faq, wo alle grundbefehle beschrieben werden
kapiert??

so dum war der tip mit den man pages gar nicht... kapitel 3 der manpages erklaert die wichtigsten c-funktionen, und das gar nicht so schlecht -- alle parameter, ....

beispiel:

SCANF(3) Linux Programmer's Manual SCANF(3)

NAME
scanf, fscanf, sscanf, vscanf, vsscanf, vfscanf - input format conversion

SYNOPSIS
#include <stdio.h>
int scanf( const char *format, ...);
int fscanf( FILE *stream, const char *format, ...);
int sscanf( const char *str, const char *format, ...);

#include <stdarg.h>
int vscanf( const char *format, va_list ap);
int vsscanf( const char *str, const char *format, va_list ap);
int vfscanf( FILE *stream, const char *format, va_list ap);

DESCRIPTION
The scanf family of functions scans input according to a format as
described below. This format may contain conversion specifiers; the
results from such conversions, if any, are stored through the pointer
arguments. The scanf function reads input from the standard input stream
stdin, fscanf reads input from the stream pointer stream, and sscanf
reads its input from the character string pointed to by str.

The vfscanf function is analogous to vfprintf(3) and reads input from the
stream pointer stream using a variable argument list of pointers (see
stdarg(3). The vscanf function scans a variable argument list from the
standard input and the vsscanf function scans it from a string; these are
analogous to the vprintf and vsprintf functions respectively.

Each successive pointer argument must correspond properly with each suc*
cessive conversion specifier (but see `suppression' below). All conver*
sions are introduced by the % (percent sign) character. The format
string may also contain other characters. White space (such as blanks,
tabs, or newlines) in the format string match any amount of white space,
including none, in the input. Everything else matches only itself.
Scanning stops when an input character does not match such a format char*
acter. Scanning also stops when an input conversion cannot be made (see
below).


CONVERSIONS
Following the % character introducing a conversion there may be a number
of flag characters, as follows:

* Suppresses assignment. The conversion that follows occurs as
usual, but no pointer is used; the result of the conversion is
simply discarded.

a Indicates that the conversion will be s, the needed memory space
for the string will be malloc'ed and the pointer to it will be
assigned to the char pointer variable, which does not have to be
initialised before. This flag does not exist in ANSI C.

h Indicates that the conversion will be one of dioux or n and the
next pointer is a pointer to a short int (rather than int).

l Indicates either that the conversion will be one of dioux or n and
the next pointer is a pointer to a long int (rather than int), or
that the conversion will be one of efg and the next pointer is a
pointer to double (rather than float). Specifying two l flags is
equivalent to the L flag.

L Indicates that the conversion will be either efg and the next
pointer is a pointer to long double or the conversion will be
dioux and the next pointer is a pointer to long long. (Note that
long long is not an ANSI C type. Any program using this will not
be portable to all architectures).



....

_m3 01.10.2001 01:42

@pirate_man(1): Wenn Du Antworten auf Deine Fragen willst, solltest Du Dich einer freundlicheren Ausdrucksweise bedienen!

@pirate_man(2): Vielleicht war Deine Frage nicht gut formuliert?????????

In den manpages sind ALLE Grundbefehle mehr als ausführlich beschrieben. Falls Du kein Unix-System bei der Hand hast, sollte auch jeder gängige Compiler für Win eine Online-Doku mit den Befehlsbeschreibungen dabei haben.

Falls Du eine Step-by-Step, "haltet mir die Hand" Anleitung suchst, kauf Dir das entsprechende ".... for Dummies" Buch, oder gleich den C&R.

ppaul 01.10.2001 07:09

Zitat:

oder gleich den C&R.
ich nehme an, du meinst K& R:

Brian W. Kerningham,
Dennis M. Ritchie:
"Programming Language C" oder
"Programmieren in C".

Ausgabe 3, ANSI C.

:-)
lg,
paul


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag