I am writting a c program to do addition of numbers from bases 2 to 16. Once a valid base is entered the program will read two positive numbers with a maximum of 8 digits. After the two vaid...
Hi there
How can I read the contents of a text file into a 1D array? (including newline characters)
How can I convert int's to char* in C? I know about itoa(..) but I get an undefined reference error when I try to use that. Is there some library I need to link with? If so, how? Else, what ...
I´m doing a program that uses the WinMain instead of main so there´s no output from the program.
But i need to use the argv in the program.
This is the program now:
#include <windows.h>...
Hi
I need a sample code for Image processing in C.I want to see how can I read pixel of Bitmap and copy some of these pixels in new Bitmap .
Using C to create a Win32 application for Win98 SE Operating System, I want to be able to create multiple process, and have each execute in the background. After calling CreateProcess I want...
what is the use of asm("nop")??
I have made a DLL using SDK which has the following code :
//stdafx.h contains reference to windows.h
#include "stdafx.h"
#define DllExport __declspec( dllexport )
BOOL APIENTRY DllM...
the used of "volatile" is???
eg:
volatile unsigned int *uip1;
volatile unsigned char *ucp1;
Dear All,
Can any body please explain me the usage of "pointer to pointer" in C.
===>> What is the advantage of "pointer to pointer " over using just pointer ?
(char **p vs char *p)
...
I need to write a program that reads in a disk file in 128 byte blocks and outputs it's contents in both hexadecimal and ascii formats. So far I have this which seems to work fine for the asc...
Having some big problems with this program. My final calculations are not coming out correct, and I simply cannot figure out why. I've checked and doublechecked and triplechecked everything to...
hi all
i have some conceptual difficulty on AVL tree. suppose initially tree is balanced. if after insertion any node shows balance factor other than -1,0,+1 then tree becomes unbalaned....
Hello I am haveing a problem creating a richedit control.I load the riched.dll in the window main like so......
if(!LoadLibrary("riched32.dll")){
MessageBox(hwnd, "Could not ...
Write a script that will assist the user with metric conversions. Your program should allow the user to specify the names of the units as strings (i.e., centimeters, liters, grams etc. for the...
Does anyone know where I can get the POSIX library (threads and semaphores) so that I can include them into the Microsoft Visual studio and my project.
Thanks a BUUUNCH !!
L.
Hi folks,
I'm writing a c program. This program sends a specific type DNS query to some domain name servers and receives responses from them. The query type could be A(for IP address), CX...
I'm supposed to write my own functions of setvect and getvect with same parameters used in turbo c's setvect and getvect. I guess i should multiply intNo by 4 and pass it to a far pointer. How...
//program to determine equal spacing for pickets
#include <stdio.h> //scanf & printf
#include <conio.h> //getch
# include <ctype.h> //toupper
#define TRUE 1
#define FALSE !TR...
I am seaching for permutation C algorithm that will get the output n! rows of permutation like for list [123] I want to recieve
123
231
312
213
321
132
Thank you
I am attempting to write out an inference rule that compiles a single source file directly into its executable. Any help?
I am having a hell of a time getting a simple mysql client to compile on Windows 2000 Advanced Server using gcc and MinGW.
What I am doing...
My mysqldemo.c program starts out with...
...
I have a structure of data that I would like to receive.
typedef struct mystruct {
long int a;
int b;
char c[25];
} mystruct_t;
I wrote a C program on Linux with the foll...
HI, I'M USING BLOODSHED COMPILER BUT WHEN I EXECUTE MY C PROGRAMS, I CAN`T SEE THE OUTPUT EVEN IF I USE GETCH(). ANOTHER PROBLEM IS THAT WHAT CAN I USE INSTEAD OS CLRSCR().
THANKS FOR YOUR ...
Hi, I'm currently using yacc.. But i've come across an error message that I can't seem to fix, and was wondering if any of you guys can help me on this... Well, i have a ambiguious grammer, ...