I am using read write in C to read in the first line of a file. Unfortunately, I have to read in each byte and store it into a buffer until end of line is reached.
Lets say I read in one b...
Could anyone can give me a sample wrote in TC?
Thanks a lot!
In C++, how do i go about using setenv to set the display? I need to set it like this:
export DISPLAY=0.0
or
export DISPLAY=:0.1
Platform: HP_UX, SUN Solaris etc.
Language: c/c++
I have a program where two or more processes share resources. Only one can change the shared resources but more than one can read them at...
I need to make my server socket be able to handle more than one client connection and respond to the client. Basically, the client sends a string then the server repsonds by sending the same s...
I need to write a program that will take a decimal, and output it's conversion in hex, octal and binary. I know "printf" can do some of the conversions, but that would be cheating so I can't ...
Hi,
Trying to get my head around how to generate all possible number combinations from only four unique numbers. For example: 2, 1, 8, 3 in all possible combinations: 1238, 2138, 3812 and...
Hi,
How can i convert a float or a double number to a oracle number datatype in C?
I have many vars in float and double format, that have to be passed to oracle as bytes of an oracle num...
Hi All,
While running the makefile, I am getting the error:
Makefile:15: *** missing separator. Stop.
Following are the few lines in Makefile:
line14:
line15: @...
Experts,
I have some C/C++ pseudo code that I need to translate into an executable function.
For me (beginner), the code actually already looks like an executable function? If not, wha...
Hello,
I'd like to be able to pass an argument from the 'make' command to a variable contained in the makefile. I understand that there are alternatives (such as hard-coding) but I have an...
Hello. Can anyone tell me where I can find the source code for the 8 queens problem (in C)? or if someone could tell me an easy to understand algorithm?
Thanks.
Problem: Put 8 queens on a ...
Hello,
I try to compile my yacc grammar but i get the following errors :
error: invalid operands to binary *
error: invalid operands to binary /
Thanks in advance for any help !
I need 2 functions. One to encrypt and string and one to decrypt. Needs to be ANSI C and something simple please :)
The answer provided in: http://www.experts-exchange.com/Programming/Progr...
I use the function below:
***************
for (i = 0; i < numberOfRows; i++) {
iOff = i*halfColumns;
for (j = 0; j < halfColumns; j++) {
...
Does anyone have a function in ANSI C that breaks down the time_t and difftime functions into milliseconds instead of seconds? I am running it on a dos platform based machine.
I read 16 bits from a memory location. I need to have most significant bit in the least significant position. Can I rotate left by 1. If yes, how to do it?
I have a binary file and I want the same to convert into ASCII format with symbols,i,e in a readable format.Please tell me the steps to follow....
1) How can I read a binary file which cont...
how can i simulate in unix c the command ls | more ??
I need pure code and not code containing system calls
Hi,
I would like to read a whole file binary and write it to another new file.
Actually I want to make a file transfer between 2 pc´s trough the rs232 interface, but first of all I need to k...
I am writing c programms that sends file thru socket. The client read a binary file and send the content to the server program thru socket. And the client program receive the content of the fi...
I would like to ask how to calculate the execution time of a fregment of the codes in UNIX environment using C language?
e.g. how to determine the execution time of the following codes? Wha...
hello guys this is my program and this simply converts
int to binary however I could not understand
printf( " %i ", (arg1 & 1 << x ) > 0 ? 1 : 0 );
the 1 near arg1 , what is this 1 do...
Hi all,
I have a C program which opens a text file and reads line by line in a while loop. For each line, it calls some other exe through system() function.
If for some case, i need to ca...
How do I write in psuedocode using a single subscripted array(s) to solve the following problem. A company pays it's sales people on a commission basis. The salespeople receive $200 per week...