I am rotating the image by x(45 degres) angle, But I am getting some black spots in the rotated image. How to avoid those black spots!! The logic I have used
I have a C program and I am supposed to add an interface to it. Can I insert my code to my coded interface using Win32? Example: Here is my code to convert bina
Why does the following code produce an error? I don't understand why the curly braces are making a difference. #include<stdio.h> int main(void) { {
My main goal is to use a flag when building a project in command line. So I can add own flags like DEBUG or MY_FLAG. #ifdef DEBUG #define debug_print(format, ..
When I open -s FETCH=1 and -s EXIT_RUNTIME=1 at the same time call emscripten_fetch after using Mudole._malloc, the following error will appear. Uncaught (in pr
In linux embedded system I can see in ps 2 processes of the same binary(pid1=X, pid2=Y) those processes don't have threads(/proc/X/task and /proc/Y/task don't e
In this program, the user is allowed to enter words of up to 20 letters, which are stored in another array and printed from the end. But there is error on my co
I'm looking for an algorithm which enumerates all binary numbers of a given length n lexicoraphically, with the constraint that every number is skipped, which h
Thanks for all the answers, after the corrections the code did not work for a stupid error ... I opened both files with the same file pointer "database" ... I'
In reading How are char arrays / strings stored in binary files (C/C++)?, I was thinking about the various ways in which the raw string involved, "Nancy", would
I saw an interesting design for a doubly-linked-list inside the Pintos operating system and I don't quite understand how it was able to achieve this behavior. I
My favourite editor by far is PyCharm, mainly because I am most comfortable with Python. I am subscribed to the professional package, but I am interested in pi
#include <stdio.h> int main(void) { while(1) { printf("!"); } return 0; } This is my program. When I run it in the terminal, I can't
In The C Programming Language book by Ritchie & Kernighan, in §1.5.2 Counting Characters, two versions of the program are given: #include <stdio.h
I am at the very beginning of learning C. I am trying to write a function to open a file, read a BUFFER_SIZE, store the content in an array, then track the cha
The way the Linux kernel handle time is somewhat complicated as it uses different source of time, and regularly resynchronize everything. There are command-line
I'm looking at a macro, or more likely a combination of macros, that would achieve the following effect : BRACKET(a) => { a } BRACKET(a
I have tested the rt process's latency by cyclictest. And found that when I launch a few lower priority rt processes(priority is 40) the high priority rt proces
I am working with ROOT and have ROOT installed in my computer. I am writing my code using Visual Studio. In my code I have the following header files: #include
I'm learning SDL right now and I'm trying to use timer callback function. The function SDL_AddTimer() offer me only one argument to pass throu