15,551 Topics
| |
This program shows how to display a JPEG (also GIF,BMP,WMF etc.) image using some Windows Graphical User Interface C code. The program uses the uuid.lib file that comes with many C compilers. | |
Use a Windows API call to add some color to your text output. A rewrite of an earlier C++ snippet for the C crowd. | |
The continued fraction expansion gives us the answer to life's most persistent questions, like what is sin(x) or even tanh(x). This surprisingly short code allows you to estimate SIN, COS, TAN, EXP, SINH, COSH and TANH fairly accurately. Careful, this code is not for the usual TV crowd! You should … | |
This quicksort implements the basic recursive algorithm with three improvements. The first improvement is choosing the pivot based on the median of three values in the list to be sorted. This minimizes the chances of a worst case scenario. The second improvement speeds up the algorithm by termination when subfiles … | |
Adding this because it took literally an hour of searching before I found a code sample using fscanf that read more than just the first line of a file. This code assumes you're reading a file line by line that has the angle (int) followed by the Sine Value of … | |
Hi everyone, I've been working on this calculator for days, and now i am making it opensource so that everyone can bring his own contribution, please comment all your codes very well. | |
This tiny code will demonstrate how to log-off from windows. Enjoy! | |
I just spent about an hour making this story builder to create book and short story outlines. It is written in C. If anyone has suggestions, please reply to this, PM or email me. Anyway, here is the code and .cpp, as well as the exe in a zip file. … | |
hi this is a program for simulation the scheduling in processes between RAM and CPU the program in c language and i hope that you will engoy it and i will be ready for more help | |
It's a game where u shoot from a cannon and the cannon-ball moves like a projectile and hits a target. So u will see three major things in this program: 1. Rotating a cannon; 2. How to move an object like a projectile 3. A very simple collision detection Before … | |
Hi all, First of all Thanks for all your last responses , Here I have one problem in debugging the below code. It builds without any errors but it doesn't debugg or says some errors. I created a exe file and when I try to run the file it doesn't … | |
Hi all, I'm new to C and I have an assignment to write our own linux ls command. When we type ls -R , it recursively list the target directory. Really have no clue how to do that . Appreciate your help in advance !! | |
i am learning c language. can you tell me how to do digital image processing using c language | |
am I doing the right thing here? I am making a simple lexical analyzer and in the code below, I am trying to check if there is a valid "relational operator" in the input. The code's parameters: input stream, the position of the current pointer, the success (initialized to zero). … | |
ei guys i really need help on how to give an output like this: -1 -1 -1 -1 -1 0 -1 -1 -1 -1 0 1 -1 -1 -1 0 1 1 -1 -1 0 1 1 1 -1 0 1 1 1 1 0 1 1 1 1 1 … | |
int a; printf("%d",sizeof a);// fine printf("%d",sizeof int);// giving parse error here can any one help me in this regard. | |
Instructions Zululand has a congress with in theory 97 seats. These are apportioned among the three states Alpha, Bravo and Charlie in proportion to their population. To be precise, each state receives its share rounded down to the nearest whole number, even if this means the total is less than … | |
Instructions Zululand has a congress with in theory 97 seats. These are apportioned among the three states Alpha, Bravo and Charlie in proportion to their population. To be precise, each state receives its share rounded down to the nearest whole number, even if this means the total is less than … | |
The project involves the game scramble, where we have a 4x4 matrix of characters. The purpose of the program is to search through the matrix and find words in the matrix. I have a dictionary .txt file and can search that for a word correctly and can also print the … | |
Sorry for the messy tittle.i dont know what suit with my prob. i have posted a thread last time about string array and compare them with some data.seems like no solution for that,i want to try this way.i want to use double array. same case, i have a file with … | |
Helo, If tcp connection with server is lost, should program close current socket with close(socket_fd) and then use connect(....) again, or use same socket to reconnect with connect(....)? Or when connection is lost current socket is destroyed automatically? | |
Hi, i want to make a program of power by using function any one help me example 2^2=4 | |
Hi i want to make program for 3 input integer and show output by a maximum value in it by using function so anybody help me reply me earlier | |
sorry for the long title, but it pretty much sums it all up. I have a 2 test structures, and in one I have a 2d char array, which is essentially a 1d string list. However I can't seem to interact with it on the same level as I can … | |
I am continuing work on a program for analysis of an entered array, I have got min,max,median and sorting the array working with some input parameters. I cannot seem to get the mode to work, i have attempted some code to do this. Your help would be greatly appriciated, i … | |
Hi all, please anybody help me in solving the following questions: 1)What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro? 2)What is the difference between the functions rand(), random(), srand() and randomize()? Regards, Prashanth | |
can some one please discuss the types of binary trees? especially full binary trees , perfect binary trees and complete binary trees. all these definitions looks same. where actually these are used? thanks, Gaiety | |
Hello Every one, I need to write a program to copy a part of a String from a specified place. Eg: if the first String looks like "This is a C program" I need to extract the part of "C program" How can I do this.Please help me. Can I … | |
Dear Community Members! I have written a program in plain C to carry out some mathematical calculations. Now I am trying to identify bottlenecks using a profiler (IDE: Open Watcom 1.8). I find that a very large portion (60-79%) of the running time is used by ntdll.dll. The core program … | |
Hello every one?I have a program use to copy the contents of an array to a File.But it does not work. when it runs Visual Studio starts to debug. But nothing happening.File contents does not change.Please help me tho solve this problem.Thank you very much. Here is the program. [CODE]#include<stdio.h> … |
The End.