I have a text file with some words in each line (e.g. first line 2 words, sec. line 4 etc);
I read the txt file with fgets, and I want to store the individual words in an array.
How can I g...
I am completely brand new to C++ so I wrote my code as completely psuedo, you will see elements of real code in there but nothing substantial, it is just a diagram so to speak, for me to follo...
Hi gentlemen greetings.........
I have one programm and I wanted to create project of that program. SO I created header(.h) file, implementation.c file and Driver.c file........
Hi I'm working with some shared memory where different processes read and write data. I'm using a message queue to store messages of when data has changed between read and write operations.
...
for example i have a bidimensional stack and the stack top has a GLOBAL variable
int top = 0;
char stack[MAXLINES][MAXCOLUMS];
and for example i wanna do this:
int find_repeated(char *...
i need a zork like game! no graphics or anything.. i need to use FOR,IF
there will be a map.. 25x25.. please help me! i need to pass it on monday!
What is a Wrapper? What does it mean when one is asked to create a wrapper?
Please provide at least one example of a wrapper?
Thanks!
Experts,
I've got two pieces of code:
One that uses namespaces and is obviously written in C++.
Another that is standard C code.
I'm working on linux and am supposed to integrate the c...
Hi,
I have an array like thsi:
int a[10][10]={0}.
I am interested in counting the memory used. Is this the way..10*10*4=400 bytes.. (I am times 4 because size of int is 4)
Tq.
Hi,
How do i implement a script that will do something exactly at given time (to millisecond or as close as it can) ? I tried some whiles and datediff + usleep but it doesnt seem to be even c...
I have a string buffer with integers separated by spaces. String Length is variable upto certain max. I'd to find out how to parse the string and save the integers in an array.
I tried sscanf...
I'm trying to read through several packets of info for a project I'm working on, but I keep getting stuck.
If I send out a mDNS query (just repeating one that another device sent and I ca...
My question is a way to count the number of repeated chars for example:
a = 3
b = 4
c = 2
etc...
I've got a long variable holding a time value in seconds (standard unix time):
ex.
long val = 1234567890;
What I need is a time structure, or something similar, that allows me full ac...
Can anyone give me a good documentation where I can find examples and resources to learn CTest?? As far as I understand we would only need to add ENABLE_TESTING into the CMakeList.txt and then...
Hey GuYs!
i hve got a problem with array of characters ;
PROBLEM:
There are 4 semesters in University. Store 3 names of student of lenght [15] and roll in each 4 semester?
Con...
Hi,
How do i reverse a linear link list recursively
Hello,
I never worked with jpeg library before.
Today I am using the following code to display Image:
jpeg_create(....);
jpeg_show(....);
jpeg_delete(...);
I need to take th...
I have a programming issue. I am writing a program in c that is suppose to search a file of characters for a certain sequence of characters. The file that i am searching has carriage returns i...
I am interested in finding some code that will convert a date/timestamp field from an oracle data base to GMT time within a C program
Hi guys,
I had lots of errors in my program but we fixed all the problems in our program...............But now I have one problem... The program is compiled but during run it...
I'm getting this error:
passing arg 1 of `ThreadFork' makes pointer from integer without a cast
I'm getting my pointers and not pointer mixed up! I've tried about every variation and can'...
Here is the code that I have:
if (cpuquan>=0 && cpuquan<=999)
cpuquan=cpuquan;
else
{
printf("\nYou entered a invalid quantity! Please enter a valid quantity-on-hand of CPUs (0-999): ")...
Hi,
I've got a C program and need to link to a CPP library. What are some of the things I need to consider?