15,551 Topics

Member Avatar for
Member Avatar for ankit894u

[ATTACH]11812[/ATTACH] hey guys can some one pls show me a away to how rite this program...i have made as many attempts as i could...i m not lazy its just tht i donot knw wht to do....i just want to knw how to compute the formula...i knw the other steps...so if …

Member Avatar for ankit894u
0
83
Member Avatar for coolice

Hi ! Could somebody help me how can I import email addresses from Windows Address Bok (wab) file programatically ? The simplest code would be the best one, as I was able to found several but far too hard code to understand the hole issue. Many many thanks for anybody …

Member Avatar for William Hemsworth
0
236
Member Avatar for Simzz

dear all, I have a problem at the following code that causes a segmentation fault and don't know the reason: [CODE] char * cString (char letter, char * string) { char *first= string; char *point= string; while(*string!='\0') { if (*string!=letter) { *point=*string; //segmentation error point++; } string++; } return first; …

Member Avatar for Simzz
0
73
Member Avatar for arcticM

I have a struct WRITER and I made [CODE]typedef WRITER* WriterPtr;[/CODE] also there is another struct called BOOK and a [CODE]typedef BOOK* BookPtr[/CODE] in my BOOK struct I have a [CODE]WriterPtr writerPtr; //pointer to the writer struct[/CODE] now I have a func: [CODE]void choiceA(BookPtr parr, int n,WriterPtr *pWriter, int *psize)[/CODE] …

Member Avatar for Dave Sinkula
0
111
Member Avatar for nateuni

I am getting this error message, but I am not sure what I am doing wrong? Here is a edited snip-it of my code - [code=c] void WriteProgram(clientProgram *ptrToProgram, int *ptrTotalWkOuts, int *ptrNumOfEx) { int wkOut = 0; clientWorkout *ptrToWorkout; int *autoPopulate = (int *) calloc(1, sizeof(int)); clientWorkout *ptrToFirstWorkOut = …

Member Avatar for Tom Gunn
0
668
Member Avatar for Gaiety

Hi , i am using the following function to verify whether a given tree is balanced or not. its working for some inputs and not working for others 1) 15 2) 15 10 3) 15 10 25 ( the above are balanced ok) 15 10 25 7 12 16 11 …

Member Avatar for dkalita
0
109
Member Avatar for magicor

The regular shell allows a user to run a process in the background by ending the command with an &. I was asked to write a C program to do a similar job above. How can i write a background process ? Many Thanks !!

Member Avatar for dkalita
0
88
Member Avatar for kyumi419

how to make a program that will ignore the highest value and the lowest value, but will get the average of the remaining values.. for example: there are 6 inputted grades, then the 4 middle values should get their average.. and will ignore the highest and lowest..? :)

Member Avatar for dkalita
0
128
Member Avatar for dheerajsuthar

Hi, I was honing my linux programming skill when this nuisance started bugging me. I wanted to create an empty file creator program. While creating a large file it must print # for progress bar. But the output shows it happening reverse way. ie. first it copies file and shows …

Member Avatar for dheerajsuthar
0
167
Member Avatar for adi.shoukat

Bellow is the piece of code that causes Segmentation Fault: (in Linux Segmentation Fault is usually due to illegal memory access) else if(intData==3) { FILE *fp; int ch; if((fp = fopen("file.txt","rb"))==NULL) { printf("Cannot open Source file.\n"); exit(1); } while((ch = (int)fgetc( fp )) != EOF) { printf("%s",(char*)ch); send(client, (char*)ch, 1,0); …

Member Avatar for Ancient Dragon
-1
109
Member Avatar for MStan537

This code was originally for an assignment. I met the requirements of the assignment but wish to expand the code to further check for valid input. I am quite new at this but trying to learn... Anyway, the problem is this. I can check if the float is non-negative with …

Member Avatar for MStan537
0
169
Member Avatar for ching1007
Member Avatar for manavsm

Error: assignment makes integer from pointer without a cast ..i want to build an student database using linked list and in c language...but i am unable to create nodes for each variable like age,name,...i did not post the entire program but the concept is in the code...plzzz help..just tell me …

Member Avatar for yellowSnow
0
1K
Member Avatar for nateuni

Hi, I have a struct that contains many different datatypes including arrays of other stucts, ints, floats, chars, char arrays etc. I have dynamically declared a ptr to the struct in main. I then pass the ptr deep into my functions and sub functions. It is a struct that holds …

Member Avatar for nateuni
0
128
Member Avatar for serkan sendur

does windows OS come with any built-in c compiler? without downloading any compilers can it compile c or any other language?

Member Avatar for yellowSnow
0
2K
Member Avatar for Samyx

[code]void swap (int *first, int *second) { int temp = *first; *first = *second; *second = temp; } int main () { int i = 5, j = 6; swap (i, j); printf ("i=%d j=%d\n", i, j); } [/code] warning: [37] $ gcc -o ex321 ex321.c ex321.c: In function `main': …

Member Avatar for Samyx
0
79
Member Avatar for Samyx

I am using the file ex3test.c to run the following program, but the UNIX gives the errors: [38] $ gcc -o ex3test ex3test.c Undefined first referenced symbol in file discrete_uniform /tmp/scratch.hYayTQ/ccRDoT1o.o printFirst /tmp/scratch.hYayTQ/ccRDoT1o.o addToList /tmp/scratch.hYayTQ/ccRDoT1o.o printSecond /tmp/scratch.hYayTQ/ccRDoT1o.o disparity /tmp/scratch.hYayTQ/ccRDoT1o.o clearList /tmp/scratch.hYayTQ/ccRDoT1o.o ld: fatal: Symbol referencing errors. No output written to …

Member Avatar for Samyx
0
173
Member Avatar for geoffy0404

[CODE]int main() { int assignment1[30]; " "; int assignment2[30]; " "; int assignment3[30]; " "; int assignment4[30]; " "; int assignment5[30]; " "; int assignment6[30]; " "; char totalPoints = "assignment1; + assignment2; + assignment3; + assignment4; + assignment;5 + assignment6;"; printf(" Grade calculator ... By Geoffrey \n\n"); printf(" Please …

Member Avatar for chesspest
0
116
Member Avatar for kyumi419
Member Avatar for Tom Gunn
0
53
Member Avatar for dragonbone

I try write about binary tree , but i have some troubles , I insert some symbols into binary tree by 2 function insertLeft () and insertRight () ...When i display the symbols i see to lack some symbols .. who can help me ???thank very much [CODE]#include<stdio.h> #include<conio.h> #include<string.h> …

Member Avatar for dkalita
0
218
Member Avatar for movie55

Hi guys, I was running a simple code on Fedora 11. it has this error " segmentation fault". The code is too simple to have any mistakes........ Can anyone help me with this? What is this "segmentation fault". Thank you very much. #include "stdio.h" int main() { int T[1001][4001]; int …

Member Avatar for dkalita
0
74
Member Avatar for TGeorge824

Can you return an array of structs in a function? I'm supposed to make a linked list where the node contains an array of structs. I'm using a grocery list thing as my array of structs. [CODE] struct grocery{ char *name; float price; }; struct node{ struct grocery list[5]; //no …

Member Avatar for dkalita
0
125
Member Avatar for Creator00

Hello! Could You please help to solve this? My question is how to reverse a number in decimal notation using recursive function. 1234 => 4321 2 => 2 20 => 0 20000 => 2 (yes!) 0 => 0 The maximum length of test input is 5 numbers. No need to …

Member Avatar for Creator00
0
118
Member Avatar for kutchbhi

Currently I am reading this book -> Microsoft - Programming Windows API 5th . But it was released in 1998 . The very first Hellowin program in this book seems incompatible with xp sp3 (it didn't mention something that needed to be #defined). So can someone point me to a …

Member Avatar for marco93
0
139
Member Avatar for russey123

I was just wondering if anyone could help me get a good compiler for C. Im taking a intro to c class and my compiler is not the greatest. The key word is i need a good free one. If anyone know of some good ones please let me know …

Member Avatar for kvprajapati
0
75
Member Avatar for rfm

I am trying to print out hello fred and I managed only to print out hello. what change do I need to make to print fred too. [code] #include <stdio.h> #include <string.h> #include <stdlib.h> // // A short program to print the string "Hello, Fred" // int main (int argc, …

Member Avatar for Samyx
0
98
Member Avatar for alvalany

Hi friends, Now I feel that I am pretty good in C. Want to do something really interesting.Does any one have ideas of creating useful 'softwares' in C :) Pls guide me..

Member Avatar for fatihpiristine
0
125
Member Avatar for kavy
Member Avatar for nateuni

Hi, In c if I have a return value and do not catch it, will this cause any problems in my program? Or should I just catch it in some dummy variable and discard it? In spite of googling.. I can't find any info in how c behaves in this …

Member Avatar for gerard4143
0
127
Member Avatar for vileoxidation

Okay, I am working on a homework assignment for my class in which we are supposed to use pointers for all of the arrays in the functions. Here is what I have so far for the printArray function, which is supposed to print the members of the array horizontally. It …

Member Avatar for Golam Kausher
0
187

The End.