Merge branch 'main' of https://github.com/0niiC/sibsutisiv522s18
the commit.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
#include "head.h"
|
||||
|
||||
|
||||
int queryinput(int *x, int *inquery, int *query){
|
||||
#include "head.i" int queryinput(int *x, int *inquery, int *query){
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
//INPUT-------------------------------------------------
|
||||
@@ -39,7 +36,7 @@ int queryinput(int *x, int *inquery, int *query){
|
||||
continue;
|
||||
}
|
||||
if (sym > 32 && sym <= 47) {
|
||||
x[sym - 28]++;
|
||||
x[sym - 28]++;
|
||||
c++;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void){
|
||||
int x;
|
||||
unsigned long input = 0;
|
||||
while((x=getchar())!='\n'
|
||||
&& ((x>='a' && x<='z')
|
||||
|| (x>='A' && x<='Z'))){
|
||||
if (x<=32 && x!='\n' && x!=' ' && x!='\t') return -1;
|
||||
|
||||
printf("%d\t",x);
|
||||
if(x>='a' && x<='z') x -= ('a'-'A');
|
||||
printf("%d\t",x);
|
||||
if(x>='A' && x<='Z') input = (input*100)+(x);
|
||||
|
||||
printf("%d %lu\n",x,input);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
-28
@@ -1,28 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
|
||||
int main(void) {
|
||||
/* Integer types */
|
||||
printf("Signed char : %d … %d\n", SCHAR_MIN, SCHAR_MAX);
|
||||
printf("Unsigned char : 0 … %u\n", UCHAR_MAX);
|
||||
printf("Signed short : %d … %d\n", SHRT_MIN, SHRT_MAX);
|
||||
printf("Unsigned short: 0 … %u\n", USHRT_MAX);
|
||||
printf("Signed int : %d … %d\n", INT_MIN, INT_MAX);
|
||||
printf("Unsigned int : 0 … %u\n", UINT_MAX);
|
||||
printf("Signed long : %ld … %ld\n", LONG_MIN, LONG_MAX);
|
||||
printf("Unsigned long : 0 … %lu\n", ULONG_MAX);
|
||||
printf("Signed long long : %lld … %lld\n", LLONG_MIN, LLONG_MAX);
|
||||
printf("Unsigned long long: 0 … %llu\n", ULLONG_MAX);
|
||||
|
||||
/* Floating‑point types */
|
||||
printf("\nFloat : %e … %e (precision: %d digits)\n",
|
||||
-FLT_MAX, FLT_MAX, FLT_DIG);
|
||||
printf("Double : %e … %e (precision: %d digits)\n",
|
||||
-DBL_MAX, DBL_MAX, DBL_DIG);
|
||||
printf("Long double : %Le … %Le (precision: %d digits)\n",
|
||||
-LDBL_MAX, LDBL_MAX, LDBL_DIG);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user