Showcase your knowledge about Apple's newest OS. Write a how-to or share a tip or trick about Snow Leopard and earn unlimited points!

 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested C Solutions: 126 - 150 of 2121
 
I'm used to compiling (1) a lex definition file and (2) a yacc definition file as follows: 1. lex mylexfile.l 2. yacc -d -l myfile.y 3. gcc y.tab.c lex.yy.c -ly -ll 4. ./a.out I found...
Hi, I need a way to get a list of anything up to 1 Billion (US, 10e9) numbers in random order with NO REPEATS. Obviously no array can be this big as there isn't enough processor memory avail...
Hi everyone, How do you right-align numbers in C?  I have printf("%d", num); num can range from 1 to 100.  I would like for it to be right-aligned.  Also, how do you do this with floa...
I have seen many codes how to hide process from windows 9x/XP/2k but never seen from vista.So i need a working code in C++ , what do you think can this be done ?
Hi I need a very fast bigint support in C/C++ currently im using this library: http://sourceforge.net/projects/cpp-bigint/ I tested it to calculate factorial(3000) and after about 9 sec it ...
I have a solution to a data structures assignment that isn't quite working. Can anyone tell me what I am doing wrong. Here is the assignment: Produce a program that requests the user to enter...
I have some low level drivers I'm working on which require the use of bitfields for hardware registers.  I'm writing the drivers to be platform independant. Presently, I've taken care of En...
I'm trying to figure out the easiest way to have a parent process send a signal to all of its children in a C program written in a Linux environment. Obviously, the easiest way to signal a ...
#include <semaphore.h> #include <unistd.h> static sem_t count_sem; int main(int argc, char* argv[]){ sem_init(&count_sem,1,3); while(1){      sem_wait(&count_sem);      fork();      if(getpid()=...
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...
Hi, How many types of arrays are there in C, I came to know they are 1. stretchable arrays, 2. Variable length arrays, 3. dynamic arrays, 4.fixed length(static) arrays. Is my classific...
Guys, How to convert Float to Ascii Char string. Please don't say use ftoa() or gcvt() because my complier cannot support all the libreay function. If any one who write the C function please s...
Does anyone have a small program that given a MAC Address, can go out and find the corresponding IP address if it exists on the network. If not, can you point me in the right direction about...
I have this code so far, I know I need to add recursion to the equation: If you run it you can see that I can get to all the files in the root of C:, but I am having trouble recursing thr...
I am trying to code a program that switches a user inputed statement into morse code but i keep getting that error. this is a segment of my code. main() {   char input;   int i=0,n;   p...
I have to implement the construction of Simple LR parsing table, given the grammar productions in a file and then write the SLR table in another file and if possible parse a given string using...
a Data Structure Problem in C. A Salesman is going to visit some cities (points A,B,C...)to sell his products, the distance between each city is known. How can he set off from the point A,v...
Can anyone please give an example that actually shows the difference in behavior between memcpy and memmove? The example they give in MSDN, and an example I created myself, both show the same:...
i'm trying to draw a circle prefilled with a colour in it and its a 2D and im using visual c++ and opengl looking for a simple code
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 ...
i wanted to take screen print /PrntScrn of Graphics programs of C using PrntScrn key on keyboard. i am using Windows XP. it didnt work. But when i tried same on Windows 98 on another machine ...
Hello, do you know some good link which could give be good basis about bit tricks in C++? With lots of examples? I know what bit operators do (this is redundant info for me later). I need to...
hi i; have met a function declaration. like below; void asdf(int a, int d, ...){} here as we  can easily understand "..." means function can take more than two parameters. my question for ...
can you guys help me to find an implementation of a symbol table using a hash table in C ?
Hi Experts, I need to Create another C program that defines an array of integers (with random values) and sorts this array (with any sort algorithm) by calling sortTwo(). For example, here ...