Hi
I have a problem with libzip archivum in VisualStudio 2017. Adding libzip using NuGet package managing.
#include <stdio.h>
#include <zip.h>
#include <stdlib.h>
int main()
Type: Posts; User: gawiellus
Hi
I have a problem with libzip archivum in VisualStudio 2017. Adding libzip using NuGet package managing.
#include <stdio.h>
#include <zip.h>
#include <stdlib.h>
int main()
Hi
I have to write function that given area as unsigned long long find the minimum perimeter of a rectangle with integer width and length. My code below
typedef unsigned long long ull;
...
Hi i am writing some program where declare 3 stuctures code below
typedef struct Card
{
char color;
int face;
}CardT;
I have to use scanf function. It is weird because
while(scanf("%s",slowo)!=EOF)
works well in linux
Nothing work properly even if i will compare slowo[0] to 0x1a.
I am using windows. The purpose of this programm is to reading data from input until EOF. Input can be number or characters such as +, - and other arithmetic and bitwise operators. That is the reason...
Hi
I write some programm which reading data from stdin until EOF
while (scanf("%s",slowo)!=EOF)
{
do something
}
Thank you for answer
Triangular number is the amount of point that can fill equilateral triangle. For example number 6 is triangular number because all sides of triangle has the same amount of point. The problem for this...
I don't have to use static variable. I have to use thread. Code for sample test I put below.
#include <criterion/criterion.h>
#include <stdio.h>
#include <stdatomic.h>
#include <unistd.h>
...
I don't understand your answer. Varialbe i is static. It shoul'd keep the value, between function "pusty()" calls.
This is problem from codewars site: Fix a bug in provided method which should...
Hi
I have to fix the bug in code where function should be execute n times. Provided method is out of the times. Below code to fix
void execute (void (*action)(), int nTimes) {
for (int i =...
I have changed the code but I still got message
Test Crashed
Caught unexpected signal: SIGSEGV (11). Invalid memory access.
#include <stddef.h>
#include <stdlib.h>
int compare(const void *a,...
Hi
I write function that take 5 parameters: pointer to array a, pointer to array b, size of array a, size of array b and pointer to size of result array
My task is to sort first array remove...
Sorry I probably said wrong my task is not print but return as a string. If memory is limited than probably n must be lower than 65536. As I said this is task from codewars site then n must be...
This is task from codewars site so probably n is correct value.
So the way is to calculate perfect bytes of allocated memory? For example
if(n<9)
size=n*(n+1)/2;
if(n>9&&n<=99)...
maximum n size is 2^16 which give us 65 536 so n should be at least 5 characters long
I thought that I don't have to calculate perfect value of characters for each n thats why I allocated bigger...
Hi
I am writing programm to print pattern like below
1
22
333
4444
55555
666666
up to n given as a parametr.
my code below
long int solve the problem thank you
Hi
I have to write programm to check if double number is even or no
Number can be negative positive, double or int.
Double number is uneven 0 is even.
bool is_even(double n)
{
int...
Probably actual string should be "ac" because my solution give me string with backspaces and codewars compiler give me not proper solution
Remove # and remove previous char for expample "abc#d##c" should give me "ac"
Hi im writing program from codewars site.
The aim of this program is to replace # into \b. After compiling in Visual Studio I am getting proper result but codewars site give me wrong result.
...
Hi
I have a question how to detect a keylogger or remote desktop spy program. I ask because i suppose that I have one on my computer. Standard antivirus application detect nothing. Just spy shelter...
Hi
Is there a library function in C which convert int decimal to binary string. I know about itoa function but it is not part of standard.