15,551 Topics
| |
[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 … | |
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 … | |
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; … | |
| 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] … |
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 = … | |
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 … | |
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 !! | |
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..? :) | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
does windows OS come with any built-in c compiler? without downloading any compilers can it compile c or any other language? | |
[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': … | |
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 … | |
[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 … | |
hhmm.. are there functions to get mode and frequency in turbo C? :-/ | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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.. | |
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 … | |
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 … |
The End.