Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
аааа

jgfhkjtdyj zhepa

🏠
аааа
View GitHub Profile
View liskov.cpp
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main (void)
{
char string[128] = "";
int word_start_pos = -1, count = 0;
system("cls");
View eeem.cpp
#include <stdio.h>
#include <stdlib.h>
#define lines 5
#define elements 10
#define INCREMENT 1
#define DECREMENT 2
void main(void)
{
View vowels.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char vowels[6] = {'e', 'y', 'u', 'i', 'o', 'a'};
char string[128] = "";
int count, i, j;
void main(void)
{
@zhepa
zhepa / xyu.c
Created May 24, 2016
output something
View xyu.c
#include <stdio.h>
#include <stdlib.h>
struct human
{
char name[16], surname[16];
int age;
}
void main(void)
@zhepa
zhepa / xyu2.c
Last active May 24, 2016
output something with sort
View xyu2.c
#include <stdio.h>
#include <stdlib.h>
#define MAX_PEOPLE 32
struct
{
char name[16], surname[16];
int age;
}
View seedorov.c
#include <stdio.h>
#include <stdlib.h>
#define rows 4
#define lines 3
int i, j, A[lines][rows];
void main(void)
{
system("cls");
View seedorov.c
#include <stdio.h>
#include <string.h>
#define MAX_WORDS 10
char word[MAX_WORDS + 1][32], string[256];
int start_pos = -1, count, i, j;
void main(void)
{
printf("Введи строку: ");
View voleen.c
#include <stdio.h>
#include <string.h>
int i, n, point;
char s[] = "100.14889878";
void main(void)
{
for(i = 0; i < strlen(s); i++)
{
View aaaa.cpp
#include <stdio.h>
#include <math.h>
int i, j, A[5][10], counter[2], result[2];
void main(void)
{
randomize();
for(i = 0; i < 5; i++)
{
for(j = 0; j < 10; j++) A[i][j] = random(10) * (random(2) == 1?1:-1);
View getLinesNumber.cpp
stock getLinesNumber(string[], max_line_len)
{
new lines = 1;
for(new i, line_len, word_len, bool:tilda; string[i] != EOS; i++)
{
if(tilda)
{
if(string[i] == 'n')
{
line_len = 0;
You can’t perform that action at this time.