15,550 Topics

Member Avatar for
Member Avatar for gaza331

help me in this project plesae see Attach File [QUOTE]#define TRUE 1 while(TRUE){ //repeat forever type_prompt(); //display prompt on the screen read_command (command, parameters); //read input from terminal if(fork()!=0){ //fork off child process waitpid(‐1, &status, 0); //wait for child to exit } else{ execve(command, parameters, 0); //execute command } } …

Member Avatar for Mouche
0
147
Member Avatar for dhsn

I would like to find a c compiler for windows 7. So far I have tried 3 and all get the message that "this program is incompatible with windows". Any suggestions? dhsn

Member Avatar for nilay2141992
0
301
Member Avatar for empyrean

Hi I am trying to run this C code in Visual Studio along with a set of Cpp files. It gives the below errors error 2143 : syntax error : missing ')' before '&' error 2143 : syntax error : missing '{' before '&' error 2059 : syntax error : …

Member Avatar for gusano79
0
269
Member Avatar for Zssffssz

Well I want to make a DLL but all of the tutorials online seem to focus tword GUI programing or go a little too fast. Can anyone explain it? As far as I have seen it's syntax resembles resource files. And what makes it a '[I]Dynamic[/I] Link Libray' as in …

Member Avatar for mike_2000_17
0
319
Member Avatar for achava

Using a C but not a C++ compiler. We have code like this: Suppose we have code like this: [CODE]main() { int *funcko(); int *george = funcko(); printf("%d", goerge[3]); } int *funcko() { int cat[12]; return cat; }[/CODE] What happens when you try this according to the actual rules of …

Member Avatar for Narue
0
146
Member Avatar for thendrluca

Hello World! i wrote this code for fliping the array , but it doesn't work ... why can anyone say me ? what i did wrong? [B]array[/B] and [B]i,n[/B] variable are already global declared. [CODE] void exb(void) { int aux; for(i=0;i<(n-1)/2;i++) { aux=x[i]; x[i]=x[n-1-i]; x[n-1-i]=aux; } } [/CODE] thanks :)

Member Avatar for Adak
0
349
Member Avatar for swissknife007

[CODE]void quick(int a[],int m,int n) { int k,key,i,j; if(m < n) { k=(m+n)/2; swap(a[m],a[k]); key=a[m]; i=m+1; j=n; while(i<=j) { while((i<=n)&&(a[i]<=key)) i++; while((j>=m)&&(a[i]>key)) j--; if(i<j) swap(a[i],a[j]); } swap(a[m],a[j]); quick(a,m,j-1); quick(a,j+1,n); } }[/CODE] I am getting a segmentation problem in swap(a[m].a[k]); Please explain.

Member Avatar for Adak
0
138
Member Avatar for ooops.789

hello....i am trying to implement a client/server socket program in C to display the files available on the server to the client....how do i do this???

Member Avatar for L7Sqr
0
69
Member Avatar for ooops.789

hello....i am trying to establish a communication between server and client and later to do some communication between them, so first i am trying to establish communication and i see that server gives "segmentation fault" as the output. I am placing the code below, check it out and let me …

Member Avatar for ooops.789
0
3K
Member Avatar for shaneos

I'm writing a code to put names in alphabetical order. The code i've written wont compile as its teling me that 'left operand needs l value'. The lines it refers to is where i'm trying to swap around strins using pointers. I could use some help with this, thanks! [CODE] …

Member Avatar for Smeagel13
0
111
Member Avatar for mesanda

hi, i need a help for making double link list program in C double link list (file.h and file.c) in prototype insert first, insert after, insert last, delete first, delete after, and delete last. this program required in hospitaL you can email me : <email removed> (zip) i need for …

Member Avatar for mesanda
0
94
Member Avatar for karisma

Can ne1 pls help with how to subtract two large integers stored as an array. i need to do the same for calculating the jacobi symbol. thanks :)

Member Avatar for WaltP
0
418
Member Avatar for indrajeet6

[B]Hi I would like some helpful hints on how to make a program to: 1)Create a Binary tree 2)Traverse said tree in Preorder form. Thank You [/B]

Member Avatar for suyash_iiit
0
203
Member Avatar for Coldev

Hi everyone I have this project for my programming class and would appreciate it if someone could point me in the right direction. The objective of the lab is to write a C program that will be able to solve a boolean formula and print all the satisfying assignments. This …

0
56
Member Avatar for FinaL111

I have a question regarding the use of malloc and realloc: for this, "part", of my assignment, I have to read in every word from a text file and count the number of times it appears in a text file. The definition of a word in this assignment is very …

Member Avatar for NerdyChick27
0
321
Member Avatar for NerdyChick27

I have an assignment with a slightly strange implementation of priority queues using a binary tree. I'm really having trouble trying to understand how to make my insert function work when the parameters are as follows [CODE]void insert(tree t, void* item)[/CODE] where item is the data going to be inserted. …

Member Avatar for NerdyChick27
0
206
Member Avatar for mccarthy.den

hello everyone. couple of days back i started learning C (with the help of internet) i have do while loop which i can't get to work as long as i know, when i press 'y' it should again ask temperature. but it is not doing that. i am using Turbo …

Member Avatar for WaltP
0
134
Member Avatar for ooops.789

I am trying to generate a random number, but it should not be a particular number. So i am passing the number which should not be the random number and the range in which it has to be generated to the function, and i am reinvoking the function if the …

Member Avatar for cluekiller
0
225
Member Avatar for Iphicles

Hi, can anyone out help me with my assignment which is to read an image file of a maze and find an exit of it. As I'm still kinda of new @ C programming, I'm having problems even reading the image onto C. Cheers Ming

Member Avatar for timetraveller92
1
476
Member Avatar for Panathinaikos22

C is a medium level language ? i guess c++ also that's why C/C++ are faster than others, but i dont think VB/C# example are to slow like some says. That i hear exactly is: (" a ATM Software can't be in High level language VB/C#/Java because are to slow …

Member Avatar for timetraveller92
0
154
Member Avatar for stream4559

I am having problems with my turbo c. its showing me that it cannot find out the include<stdio.h> file from the system.

Member Avatar for timetraveller92
0
203
Member Avatar for s_h_a_m

hello im new in programming and i need help in printing this kind of output [CODE] * * * * * * * * * *[/CODE] the number of iterations depends on users input please help me

Member Avatar for timetraveller92
0
93
Member Avatar for Liuhh00

hey guys lol to be honest...i just got this based off of luck x.x idk how but i can't keep doing this with the rest of my programs lol this is a program for an asterick pattern any way i can improve it just by using for loops?please im open …

Member Avatar for timetraveller92
0
358
Member Avatar for dgreene1210

I wrote this program and it compiled with no errors or warnings but when i went to run it i get a segmentation fault and i cant figure out what is causing it. Ive spent hours and hours on this . Anyone with some expertise willing to take a look? …

Member Avatar for Smeagel13
0
175
Member Avatar for tquiva

** EDIT: sorry, typo in my title. I meant to write 3 pointers instead of 2. I am trying to revise/create a function in which it is given given three pointers to floats and reorders the values pointed to into ascending order. The prototype for the function would be: void …

Member Avatar for larsake27
0
746
Member Avatar for mprabuw

Hello Dani Web Forum, I'm really new to C. I have an assignment, which I think it's very hard to solve. I have to create a Currency Converter Program that reads data from txt files. The program should also be able to read arguments (argv[]). I'm really confused since it's …

Member Avatar for mprabuw
0
778
Member Avatar for collinskawere

why do my programs just flash off the screen when i try to execute them? i am new to programming, don't forget!

Member Avatar for siskaj
0
139
Member Avatar for geeksforgeek

Hello everyone I am using bsearch() method to find whether the element is in list or not, but i don't know how to find the index of that element. here is the code which i have done:-- [CODE] #include <stdlib.h> #include <stdio.h> int arr[11] = { 10,22,37,49,51,66,68,73,75,79,81 }; int comp(const …

Member Avatar for gerard4143
0
92
Member Avatar for str91
Member Avatar for Adak
0
90
Member Avatar for maplerichie

Can i change the array's rows length after i define it as constant or any other way? Can you under my code or explanation? [CODE]#include<stdio.h> #define CLASS_SIZE 20 //First define the array rows's length void main() { double gpa, average, highest, lowest; int student, rows, i, j; char grade[CLASS_SIZE][5]; //Wish …

Member Avatar for Adak
0
210

The End.