Changes to be committed:
deleted: proglabs/lab5/.1.c.swo deleted: proglabs/lab5/.1.c.swp deleted: proglabs/lab5/1.c~ deleted: proglabs/lab5/10 deleted: proglabs/lab5/11 deleted: proglabs/lab5/12 deleted: proglabs/lab5/13 deleted: proglabs/lab5/14 deleted: proglabs/lab5/15 deleted: proglabs/lab5/15.c~ deleted: proglabs/lab5/16 deleted: proglabs/lab5/17 deleted: proglabs/lab5/18 deleted: proglabs/lab5/2 deleted: proglabs/lab5/3-1 deleted: proglabs/lab5/3-2 deleted: proglabs/lab5/4 deleted: proglabs/lab5/5 deleted: proglabs/lab5/5.c~ deleted: proglabs/lab5/6 deleted: proglabs/lab5/7 deleted: proglabs/lab5/a.out renamed: proglabs/lab5/8 -> proglabs/lab6/3 modified: proglabs/lab6/3.c new file: proglabs/lab6/3.c~ renamed: proglabs/lab5/1 -> proglabs/lab6/6 modified: proglabs/lab6/6.c new file: proglabs/lab6/6.c~ renamed: proglabs/lab5/9 -> proglabs/lab6/9 modified: proglabs/lab6/9.c new file: proglabs/lab6/9.c~ new file: proglabs/lab7-8/1.c new file: proglabs/lab7-8/2.c new file: proglabs/lab7-8/3.c new file: proglabs/lab7-8/4.c
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
char l[26];
|
||||
|
||||
for (int i = 0; i < 26; ++i) {
|
||||
l[i] = 'a' + i;
|
||||
}
|
||||
printf("t-t: ");
|
||||
for (int i = 0; i < 26; ++i) {
|
||||
printf("%c ", l[i]);
|
||||
}
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,25 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <wchar.h>
|
||||
#include <locale.h>
|
||||
|
||||
int main() {
|
||||
setlocale(LC_ALL, "");
|
||||
wchar_t s[256];
|
||||
wchar_t c;
|
||||
int n = 0, st = 0;
|
||||
|
||||
printf("write: ");
|
||||
while(st == 0){
|
||||
wscanf(L"%lc", &c);
|
||||
st = (c == '\n');
|
||||
s[n] = c;
|
||||
n = n + (1 - st);
|
||||
}
|
||||
|
||||
while(n > 0) {
|
||||
n -= 1;
|
||||
wprintf(L"%lc", s[n]);
|
||||
}
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,29 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int r = 1;
|
||||
char l, x;
|
||||
scanf("%c", &x);
|
||||
|
||||
for(char z = 'A'; z <= x; ++z)
|
||||
r++;
|
||||
for(int i = 1; i <= r; ++i){
|
||||
l = 'A';
|
||||
|
||||
for(int j = 0; j < r - i; ++j){
|
||||
printf(" ");
|
||||
}
|
||||
|
||||
for(int j = 0; j < i; ++j){
|
||||
printf("%c", l);
|
||||
l++;
|
||||
}
|
||||
l -= 2;
|
||||
for(int j = 0; j < i - 1; ++j){
|
||||
printf("%c", l);
|
||||
l--;
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user