15,551 Topics

Member Avatar for
Member Avatar for wu_weidong

Hi all, I am just learning DMA, and am supposed to write 2 functions utilizing the offset technique, such that a 2-D array starts and ends the index of each dimension as the user specifies. matrix(): creates a 2D array of float type numbers, indexing from -n to n for …

Member Avatar for erroldo
0
241
Member Avatar for userpl

Hello This program read file and then it uses strcspn() to split strings. It displays words. I'd like to modify program now to check if variable "moja" equals some of words in "pairs.txt". If that's true, user should can write into "moja" every word from "pairs.txt" except words being in …

-1
39
Member Avatar for jvill

Alright im trying to write a fairly simple c program that will accept input from the user for both a number and a power to raise it to then display the result, it works up to the input part but the result is always some crazy number, im looking for …

Member Avatar for jvill
0
141
Member Avatar for pbbv
Member Avatar for Nirvin M
0
62
Member Avatar for nidhi.singh88

I wish to write a program ini C that calculates the depth of a binary tree. Can anyone help?

Member Avatar for prvnkmr194
0
57
Member Avatar for SpyrosMet

hi everyone I have a problem with a server - client project i have built. At first I made it work by forking and using shared memory. Then i had to replace those things with threads and the problem is that i don't know how to attach the client to …

0
61
Member Avatar for sciprog1

Hello Members, The wait() system call is illustrated to be used as follows: [CODE] int status, pid; /*fork a child process*/ /*parent is waiting for the child to terminate*/ pid = wait(*status) [/CODE] What exactly does the pointer to the "status" variable do when "status" has not even been assigned …

Member Avatar for sciprog1
0
220
Member Avatar for Madawar

Hello i want to create a file crawler that lists all files in hard disk using directory functions in C i have been able to list files in one directory only and haven't been able to crawl through other directories and sub-directories this is what i have so far. [CODE] …

Member Avatar for Madawar
0
414
Member Avatar for ritcherjd

I have a problem at hand. It is to generate a C code - i need to do the following, i will capture an image, then i have to this image into an array using C on which i can do some image processing. How do i go about it? …

Member Avatar for angelique28
0
1K
Member Avatar for arineon

I am trying to come up with my own code for strcat. This is what I have so far. I'm getting a segmentation fault and i can't figure out why. The function prototype and call must not change. Any suggestions? [CODE]//Function Protoype char* stringCat(char *pWord, char *pTemp); //Function call in …

Member Avatar for darkbreaker
0
148
Member Avatar for moroccanplaya

hi has anyone know detailed info on the mkdir function plus the open dir and how to use it ?

Member Avatar for moroccanplaya
0
130
Member Avatar for Shaabangbang

Hi guys, i have to create a program that would store a persons full name, phone number, address, and postal code into a file named contactlist.dat, so far no problems, but im also supposed to use char for every single one, even the phone number, does anyone know how to …

Member Avatar for mfaisalm
0
223
Member Avatar for shinsengumi

Hi everyone. I'm using sqlite3 in Linux and I currently have a problem. I have a database and 2 tables in it: db1 and db2. db1 has 3 columns: empID, empName, empAddr. db2 has just 1 column: empID and its value is set to 0 by default. I created a …

Member Avatar for shinsengumi
0
547
Member Avatar for Unidennn

Hi, i have a problem with passing the array of structs into another function. Line 15 and 20 - errors. Here the code [CODE] #include<stdio.h> struct point { int x; int y; }pointar[3]; typedef struct point POINT; struct circle { int x; int y; float radius; }circlear[3]; typedef struct point …

Member Avatar for Adak
0
201
Member Avatar for hqrtt

Hey guys, I'm a newbie in C and I've got to make an app: Users enter 10 numbers; I've got to compare them; At the end tell the user if a) Number are decreasing (ex: 10 9 8 7 6 5 4 3 2 1 0) b) Number are creasing …

Member Avatar for Snehamathur
0
121
Member Avatar for tomtetlaw

When I open a file, the file is valid (passes if (!file)). But when I use it with fgets, fgets fails. When I called ferror the return value is 32. I looked that up and it means broken pipe. What does this mean and how could I fix it? This …

Member Avatar for tomtetlaw
0
81
Member Avatar for gahhon

[CODE]void InputFunction() { system("cls"); printf("\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); fflush(stdin); printf("\t\t What Is The Course Code? "); scanf("%s", SubCode); fflush(stdin); fflush(stdin); printf("\t\t How Many of The Total Weeks? …

Member Avatar for Kamatari
0
114
Member Avatar for oksbwn

hello friends actually i want to know which compiler is best suitable for gui development using c.please send the web adress to download that and send how to configure that.

Member Avatar for Ancient Dragon
0
159
Member Avatar for gyst

Hello all. I've written a program to solve sudoku puzzles. I had it working for int, see below. [CODE] typedef int element; typedef element game[GAME]; [/CODE] I changed [I]element[/I] into [B]short[/B], and then it exits with a segmentation fault. I then changed [I]element[/I] into [B]char[/B] and I got an immediate …

Member Avatar for Ancient Dragon
0
102
Member Avatar for hyperion

Hello all, Info: I am using Pelles C compiler. Some code first: Following is the linked list structure I am using. [CODE]typedef struct _NODESTRUCT { void* data; struct _NODESTRUCT* next; } NODESTRUCT, *PNODESTRUCT;[/CODE] Method to add a new node to linked list: [CODE]PNODESTRUCT AppendNode(PNODESTRUCT rootNode, void *data) { PNODESTRUCT tempNode; …

Member Avatar for Narue
0
160
Member Avatar for sunny120786

I want the program to send a signal from Robot1 via Bluetooth to Robot2 Expand Post » hello, I want to write 2 programs with C , one work on Robot1, the other work on Robot2. So I want the program to send a signal from Robot1 via Bluetooth to …

0
96
Member Avatar for TheBaby7591

I'm supposed to create a c file that contains functions perform certain tasks with a structured matrix. My h file and current c file are as follows. [code=c] typedef struct { int rows, cols; //matrix dimensions int **elements; //element array } Matrix; void matrixInit (Matrix* m, int r, int c); …

Member Avatar for vinitmittal2008
0
178
Member Avatar for Snehamathur

Hello I am new to this community and newbie to c language. I want to code for modulus operator (%) in c.. Need Help. Thanks in Advance

Member Avatar for Snehamathur
0
184
Member Avatar for madan.uba@gmail

0 down vote favorite hi, I had a problem with adding reference in my C application. I am unable to add linker reference to "libiconv" in my data compresser project.I have download "libiconv" library but confuse in adding reference which show error in compiling.I'm using Dev C++ for developing my …

Member Avatar for Ancient Dragon
0
607
Member Avatar for tastyTreeHUGGER

I need help writing an anagram that test 2 strings. [COLOR="red"]os[/COLOR]: microsoft [COLOR="red"]compiler[/COLOR]: visual studio Here are some of the directions: Read the first string, then write a loop that uses an array of 26 ints to count how many times each letter has been seen. Read the second string, …

Member Avatar for tastyTreeHUGGER
0
445
Member Avatar for Hayzam_#include
Member Avatar for becka221

Hi, Im guessing this is an easy piece of code, but i cant find the answer Im looking for anywhere. I have 20 files each with a different a list of numbers (not all the same amount of numbers). Each file is called data-01.txt, data-02.txt... to data-20.txt.I need to open …

Member Avatar for vinitmittal2008
0
149
Member Avatar for mfaisalm
Member Avatar for ram619

Hiiiiiiiiiiii!!!!!!!!!........... The program written below runs perfectly upto some extent but the output varies............because the compiler prints the "{Enter the value}" line twice and itself adds a positive number in the counter.................. [code=c] #include<stdio.h> #include<conio.h> int main() { int sum1=0,sum2=0,sum3=0; char value,alpha; while(alpha!='D') { printf("\n Enter the value"); scanf("%c",&alpha); if(alpha==0) …

Member Avatar for Kamatari
0
133
Member Avatar for fussballer

Hi, This is probably, a really novice question, but I have some code that is using the malloc() function to declare an array, the problem is that I am using a special compiler to compile code for hardware which gives me a lot of errors because of the stdlib.h header …

Member Avatar for mitrmkar
0
241

The End.