A configuration file consists of sections and entries. Each section is defined inside a "[]", and each entry is delimited by an "=" sign. The value of each entry can be either string or an int...
I have a program in C language for transferring files from one computer to another using RS232 serial cable, but i don't have an idea on how it works and what concept is behind it, can i be ex...
I need to write and run a program that constructs the pascal triangle using factorials. I've written a function that calculates the nth factorial and then wrote a recursive function that calls...
Hi, I was asked to write a program to calculate the matrix multiplication using the following pseudo codes
#include <pthread.h>
// global data declaration
int dim;
void *multip...
i have a service that needs to run once in a while a batch file.
i tried winexec(), shellexecute(), shellexecuteex(), system() and createprocess(). they all return success but the batch file ...
I have the source code for a program written in C originally for use on a Unix system. I am trying to compile it to run on a Windows XP system, but I am getting an error [Linker error] undefin...
Hello group,
Can somebody tell me where I can learn how to read data when they are stored as Big-Endian and Little-Endian. I'm back to C after years and don't know how to do this. I'm deali...
Hi!
i'm writing a concurrence tcp server and i'd like to know if there is a way to control, when a new connection occurs, if the server have reached the maximum amount of child processes.
...
This question relates to programming for Linux. I understand that all programs which run under a bash terminal will exit when the terminal closes, unless they are run in the background by app...
HI,
I'm trying to create an array to calculate the class grade average. I only want to return the answer for grades[4]. I haven't been shown how to pass one element.
#include <iostream>
...
Hi,
To use mod in C, i use %
num1=9%7=2
how do i do a negative number ?
num2= -9%7 ?
Thanks
Hi!
I'm looking for write a make file...
I tried to do it after reading different tutorial, but it doesn't work properly...
My makefile had to use gcc and at least the flag -Wall and ...
Hello, I am new to C programming and need some help on figuring out whats going on inside the following Nested loops. Thanks for any help.
- I know the first nested while loop prints (1 2 ...
/usr/bin/ld: cannot find -lglut
How to fix?
Hi,
When i compiled my program, i got this following errors:
In file included from test.c:4:
test.h:5: error: array type has incomplete element type
test.c: In function 'main':
test....
The code below is used in order to try and cast / convert a structure to a char pointer. Why do i want to do this? I want to print the representing bytes so that i afterwards can cast from a s...
Is there a simple way to check a bitfield of an undefined unsigned integer type to see if one and only one bit is set? This test will be done repeatedly and needs to be part of a high performa...
I downloaded the following zip file libxml2-2.6.30+.win32.zip from http://xmlsoft.org/ How do I get it to work, where do I place the extracted files. I am using bloodshed C compiler.
Thanks
Hello group,
I'm using C to read a wave file. First step is to verify parameters which could be found in Format Chunk and Data Chunk. Howvever, I have run into a problem. As far as I unders...
char x;
x = 1;
Expert told me 1 is data type int. When 1 is assigned to x, 1 is implicitily converted to data type char.
What is difference between implicit and explicit conversion?
W...
hi all,
Please show me the way or document to write a function to dend http request to web server.
Thanks in advance,
Minh
I have write this code in c to read a file.I want the data get in a queue but i do not who to do this.Can anybody help me????
My code is :
int main(){
char readline[100];
FILE *fp;...
What is the difference in interpretation of
char *ch;
and
char ch[10];
by the compiler at compile time/link time. How this declaration differ in runtime?
Regards
Sham
Hi im tryiing to loop a string and strip off the space and punctuation characters. most of my codes are already functioning, if theres a string starting with spaces e.g : Hello, i...
Hi to all!
I'm testing my concurrent tcp server and i'm having some problems...
Sometimes, when i try to test it by using a client, it gives me this error:
< Accepting Connection: Int...