Programming tasks
Submitted by admin on Sun, 09/03/2017 - 22:06
1.File->New->Other...
2. C++ and UseVCL
3. Source code
#include <stdio.h> #include <conio.h> #include <string.h> #include <alloc.h> #include <ctype.h> #include <limits.h> char** words(char* str) { char** wrd; int i=0, j, k, l, n; wrd = (char**)calloc(1, sizeof(char*));
#include <stdio.h> #include <conio.h> #include <string.h> #include <alloc.h> #include <ctype.h> #include <limits.h> int main(int argc, char* argv[]) { char *s1, *s[10]; int i=0, j, sim=0, l, k, h, n1, n2, min; s1 = (char*)calloc(100, sizeof(char)); puts("Enter string #1:"); gets(s1); n1 = strlen(s1); k = 0; while (i < n1) {
#include <stdio.h> #include <conio.h> #include <string.h> #include <alloc.h> #include <ctype.h> int main(int argc, char* argv[]) { char* s; int i=0, j, sim=0, l, k, n; s = (char*)calloc(100, sizeof(char)); puts("Enter string:"); gets(s); n = strlen(s); while (i < n) { while ( (i < n) && (!isalpha(s[i])) ) i++; j = i;