15,551 Topics
| |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
pls explain me about the storage class?and also their difference among them. | |
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 … | |
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 … | |
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 … | |
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); } … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
[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 … | |
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 … | |
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() … | |
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 != … | |
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); } … | |
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 … | |
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); … | |
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. … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … |
The End.