Eten en koken > Bakken > bakpoeder > Is bakpoeder grondstof?

Is bakpoeder grondstof?

 
Is bakpoeder grondstof?
/* ---------------------------------------- -------------------------------- Sectie: G /7 M /c No.:32, Roll No.:11BT30015 naam: MA KRISHNA DEEPAK Opdracht nr .: 08 Omschrijving: Programma om functies uit te voeren op touw karakters. -------------------------------------------------- ---------------------- * /# include & lt; stdio.h & gt; #define MAXLEN (1000 + 1) int strLength (const char * x); ongeldig strReverse (char * x); int makeUpper (char * x); char * strCopy (char * x, const char * y); int isPrefix (const char * x, const char * y); char * substring (char * x, const char * y); int main () {int len; char x [MAXLEN], y [MAXLEN], z [MAXLEN], * cP; printf ( "Geef de 1e string: \\ n"); scanf ( "% [^ \\ n]", x); printf ( "Geef de 2 string: \\ n"); scanf ( "% [^ \\ n]", y); printf ( "Lengte ("% s ") =% d \\ n", x, len = strLength (x)); printf ( "Reverse ("% s ") =", x); strReverse (x); printf ( ""% s "\\ n", x); strReverse (x); makeUpper (x); printf ( "Upper-case:"% s "\\ n", x); if (isPrefix (x, y)) printf ( ""% s "is een prefix van"% s "\\ n", y, x); anders printf ( ""% s "is niet een prefix van"% s "\\ n", y, x); /* If ((cP = substring (x, y)) == NULL) printf ( ""% s "is niet een substring van"% s "\\ n", y, x); else {printf ( ""% s "is een substring van"% s "", y, x); printf ( "van index% d \\ n", (int) (CP-x)); } * /Printf ( "z [] ="% s "\\ n", strCopy (z, x)); return 0; } Int strLength (const char * x) {static int sum = 0; int temp; if (* x == '\\ 0') {temp = som; sum = 0; terug temp; } Else {vatten ++; terug strLength (x = x + 1); }} Void strReverse (char * x) {int lengte, c; char * beginnen, * einde, temp; lengte = strLength (x); beginnen = x; EINDE = x; voor (c = 0; c & lt; (lengte-1); c ++) eind ++; voor (c = 0; c & lt; lengte /2; c ++) {temp = * eind; * End = * begin; * Beginnen = temp; beginnen ++; einde--; }} Int makeUpper (char * x) {static int u = 0; int temp; if (* x == '\\ 0') {temp = u; u = 0; terug temp; } Else {if (* x & gt; = 'a' & amp; & amp; * x & lt; = 'z') {* x- = 32; U ++; } Return makeUpper (x = x + 1); }} Char * strCopy (char * x, const char * y) {char * p = x; while (* y) {* x = * y; y ++; x ++; } * X = '\\ 0'; terugkeren p; } Int isPrefix (const char * x, const char * y) {static int l = strLength (y), p = 0; if (* y = * x * y = '\\ 0'!) return 0; if (* y == * x) {p + = isPrefix (x = x + 1, y = y + 1); } If (i == strLength (y)) return 1; } /* Char * substring (char * x, const char * y) {} * /
Copyright © Eten en koken https://www.eten.science All Rights Reserved