15,551 Topics

Member Avatar for
Member Avatar for jeffige

Following along a C tutorial, I entered this code. When I compile and run, it aks for my age, which I enter. But it doesn't display any of the 'if' or 'else' statements. So I hit enter and the window closes. Is there a trick or am I entering the …

Member Avatar for Ancient Dragon
0
130
Member Avatar for nemesis4627

I want to have a program that will ask questions.. and post top scores.. but these questions are randomly ask.. on the other hand.. these questions must be put in .textfile.. please help me.. im begging all of you.. my questions in txtfiles is this 1 What_is_the_capital_of_Europe? a.)Brussels b.)Brussiels c.)Berlin …

Member Avatar for ithelp
0
208
Member Avatar for bharaniabhishek

there is an error that when i type# include <stdio.h> and compile . then errors occurs "unable to include <STDIO.H> so what is wrong in that

Member Avatar for abhikkumarbasu
0
213
Member Avatar for zmnaiaj30

do you know where i can get the conversion table? only the table for my project... and for those who already done with this thing can u please help me? im a noob here T_T

Member Avatar for Ancient Dragon
0
121
Member Avatar for Nektarios

Dear friends Im new in IT and i want to ask you about boundary values check in a program. I have the following exercise that I want to check and i don't know how... [code=c] #include <stdio.h> #include <string.h> struct st { int i; char n[4]; char g; }; struct …

Member Avatar for Nektarios
0
96
Member Avatar for peaceful_soul

hello friends :) well can anybody tell me why does this code [code=c] for (i = 0; i < 10; i++){ childpid = fork(); if (0 == childpid){ /* This is the line that is different in parts A and B. */ execlp("some_prog", "some_prog", (char *)0); exit(2); } else if …

Member Avatar for peaceful_soul
0
113
Member Avatar for malini_82

pls explain me about the storage class?and also their difference among them.

Member Avatar for mostafadotnet
0
52
Member Avatar for joshmo

am trying to write a simple server program that prompts the user for an ISBN number or an author. it should check if the number is a valid number i.e if the number is 4 digits...it should also check if the user has entered a number or characters..it should then …

Member Avatar for joshmo
0
86
Member Avatar for atul_gurucool

hi...everybody.. i want to some suggestions regarding my project. my project is Networks Analyser. i am working on this project by using c programming on Linux OS. i know that how to capture the coding of masseges by decryption algo. and i want to display this coding in the form …

Member Avatar for ithelp
0
79
Member Avatar for wsn

Hi, I can't figure out what is wrong with the code after trying to fix it for the last six hours i decided to give, please i need help =( big time I'm trying to make a dynamic array of structures then printing the output of the elements but I …

0
42
Member Avatar for larry12720

I created a function to compare string value with spaces It gives me error: warning: passing arg 1 of `strcmp' from incompatible pointer type and passing arg 2 of `strcmp' makes pointer from integer without a cast [code] char *operand(node *pt) { while(strcmp(pt->next, ' ')!=0) { strcpy(operand, pt->item); operand(pt->next); } …

Member Avatar for abhikkumarbasu
0
135
Member Avatar for fiz hafiz

[CODE=c]#include<stdio.h> #include<ctype.h> #define FILENAME "computing" //void proceed(struct registration com, int matric); //void again(struct registration com); struct registration { char code[10]; char subject[100]; int credit; }; int main() { int matric; char name; FILE *ECE; ECE = fopen(FILENAME, "r"); //struct registration com; puts("Welcome to pre-registration for sem 1 2008/2009\n"); puts("Enter your …

Member Avatar for abhikkumarbasu
0
108
Member Avatar for trick

Hi I'm just a newbie here and I hope someone might be so kind to help me with my stuff. I have a project regarding C. I'm already half-way done and all that are left to do are: 1. Parse a string into words and arrange these words in descending …

Member Avatar for trick
0
602
Member Avatar for Sh13

I am having problem in converting military time to standard. The task I have is to take time from different cities around the world, adjust it to eastern time, and then display it in standard format with AM or PM. For example: User gave time for london 23:40 I scan …

Member Avatar for Ancient Dragon
0
225
Member Avatar for nelledawg

I am seriously so bummed out right now, and I feel like a complete idiot. I have been sitting here for seriously 7 hours now trying to figure out how to do this program, and the book I have for the class has been of no help whatsoever. I posted …

Member Avatar for mitrmkar
0
159
Member Avatar for larry12720

keep on getting this error after I put my input file, the program compiles but when I try to use it it gave me Core segmentation error. I guess there is something wrong with the memory. plz help Goal: My program should take input string from a file and do …

0
53
Member Avatar for -genESIS-

Hi everyone. I'm new to the forums, as well a C programming as well, so bare with me for any noob mistakes. I have a homework assignment I am working on now, and am just completely stumped. The assignment calls for the following The user is to input 10 words. …

Member Avatar for -genESIS-
0
180
Member Avatar for ITbull

[code=c] int median (int numbers[], int length) { int i=0; printf("Please enter up to 10 integers.\n"); printf("Enter any letter to terminate input before 10 entries.\n"); for(i=0; i<10; i++) { scanf("%d", &numbers[i]); if(numbers[i]='ch') break; } } void sort(int numbers[], int length) { } void swap (int* n1, int* n2) { int …

Member Avatar for VernonDozier
0
101
Member Avatar for midimatt

I'm getting Linker errors when trying to compile my OpenGL code with Dev C++, the code compiles perfectly on the university machines using Visual Studio. I've visited several sites that explain how to get openGL to work om Dev C++, and i've followed the steps. -Installed the Dev Pack. -added …

Member Avatar for midimatt
1
351
Member Avatar for joshmo

hey...can anyone show me what am doin wrong here?? cant get this program to loop till the user enters a character other than "y"....it prompts the first time and its a succes. prompts the second time but does not wait for response.... [CODE]#include <stdio.h> #include <string.h> #define LEN 20 main() …

Member Avatar for joshmo
0
100
Member Avatar for nitsmooth

I made this program to create a binary search tree but it is not working properly ......could smbdy tell me whts the prob /* Creating a BInary Tree */ #include<conio.h> #include<stdio.h> struct node { struct node *lt; struct node *rt; int data; }*temp; void inorder(struct node* root) { while(root != …

Member Avatar for nitsmooth
0
271
Member Avatar for RexxX

If I have a struct defined as [code] struct node { char *data; struct node *next; }; typedef struct node* nodePtr; nodePtr newNode; ... int main(void) { newNode = (nodePtr *) malloc(sizeof (nodePtr)); //dynamically allocate memory if(newNode == NULL) { printf("Error: could not allocate a new node\n"); exit (1); } …

Member Avatar for sukhmal.sena
0
94
Member Avatar for fiz hafiz

Title : Student Course Registration System Every semester you will use the university course registration system in the early weeks of new semester. Assuming that the pre-registration process has not been exercised. Now, you will try to create a similar system that will have somewhat the same function of the …

Member Avatar for Ancient Dragon
0
163
Member Avatar for mmc18

typedef struct Individual{ int number_of_la; double cost; }Individual; void deleteIndividual2(Individual **ind){ if((*ind)==NULL) return; freeLists2(&((*ind)->MSC),1); freeLists2(&((*ind)->BSC),1); freeLists2(&((*ind)->LA),1); freeLists2(&((*ind)->BS),1); (*ind)->MSC=NULL; (*ind)->BSC=NULL; (*ind)->LA=NULL; (*ind)->BS=NULL; free((*ind)); (*ind)=NULL; } //LAList-LA-LA_BS ,if includeGroup=1 remove all LAList-LA-LA_BS otherwise List and element will be removed void freeLists(Network_Element_List *head,int includeGroup){ Network_Element_List *temp=head; while(temp !=NULL ){ Network_Element_List *x=temp->next; if(includeGroup) freeLists(temp->element->groupHead,0); …

Member Avatar for mmc18
0
114
Member Avatar for noble3ad

Hello all, I'm trying to write a program that will compute the real roots of the quadratic equation ax^2 + bx + c = 0 given by: x1 = (- b + sqrt (b^2 - 4ac)) / 2a and x2 = (- b - sqrt (b^2 - 4ac)) / 2a. …

Member Avatar for noble3ad
0
104
Member Avatar for ankitbullu

I was asked this question in an interview. Am looking for answers for this: A rectangular array of cells (say m*n) are selected in a spreadsheet (eg: MS excel). Assume that the cells contain only integer values. They need to be pasted to some location within the same spreadsheet after …

Member Avatar for Duoas
0
108
Member Avatar for noble3ad

Hello, I was wondering what the following error meant in Visual Studios: This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix this problem. I tried compiling a program that I wrote and then all of a sudden I get this error. It had …

Member Avatar for noble3ad
0
58
Member Avatar for Jellis58

I have a form that is used by say 250 employees right now but soon to grow company wide. This form has several line items listed down the page. Every few days I get several sheets in which right now I use tick marks (on a blank pcs of paper) …

Member Avatar for Jellis58
0
81
Member Avatar for msaenz

greetings, im writing that program that creates a 2 square matrices that need to be added. but the trick is i need to use pthreads in order to do it... for soem reason my output is just 0. Any help would be appreciated im almost done im just stuck on …

Member Avatar for Dave Sinkula
0
187
Member Avatar for SergioQ

The code below is taken from my DLL which is injected into a third party app via a hook. What I am trying to do is read another apps Tree structure. Going by the the first line below, the tree window (wOther) has 55 items, which is correct (I am …

0
57

The End.