15,551 Topics

Member Avatar for
Member Avatar for subhashkataria2

hello i'm subhash n m persuing BCA IInd year n got an assignment of writing a program to create a binary tree n display the elements level wise ie i need to display in a form of tree. for example if elements are 6,4,8,3,5,7,9 then i need to display it …

Member Avatar for twomers
0
141
Member Avatar for alien2006.happy

This code is just handling the SIGCHLD signal, but as you can see, the parent process should ignore this SIGCHLD signal according to the signal function. But in fact, the parent process will omit the signal function, and handling the child process using "wait". I wonder why the parent do …

0
152
Member Avatar for desiguru

I have a file called file.dat and have to write a program called sdev.c which adds up all of the numbers in file.dat from each line. (Assuming that one number is per line) which has to open like this $ ./sdev < file.dat Now I can do all of the …

Member Avatar for Ancient Dragon
0
66
Member Avatar for neithan

Hi everyone. I am so confused in input and output! I'm following what it looked to be a nice tutorial from VTC and it shows how to use scanf and printf. But i'm seeing everywhere things like printf and scanf and getc, getch, puts, gets...wtf? I learnt the diff between …

Member Avatar for Narue
0
189
Member Avatar for vishme
Member Avatar for Ancient Dragon
-1
62
Member Avatar for wangatang126

Can someone help me edit this program. I am a begginer in C and suck at it somewhat. I can't figure out a way to make the function work since i have to initialize s to equal u and if i initialize it in the function it will always make …

Member Avatar for Grn Xtrm
0
187
Member Avatar for afnan1

Dear Sir Any one can help me in C language please here are 2 questions and i need th solution of them very simple question beginer level See Attachment file for the questions Regards

Member Avatar for Chilton
-1
133
Member Avatar for vishme

hi i want to pass excel sheet in linux C using libxls so lpz give me guideline

0
54
Member Avatar for Iam3R

Hello every one, i have written the following program for testing getch function behaviour. but, as soon as i run the program i am getting segmentation fault. i dont understand the problem. i am using GCC compiler on Linux Environment. i want to test the key scan program. [CODE] #include<ncurses.h> …

Member Avatar for Tom Gunn
0
979
Member Avatar for aalice

help me to implement a short C program that works with factorization of integers it is supposed to compute and print out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. if asked to sum all the natural numbers below 20 which are multiples …

Member Avatar for ithelp
0
77
Member Avatar for relinx

some one help write a program to calculate the sum of the first 20 integers

Member Avatar for ithelp
-2
74
Member Avatar for kingster113

A friend of mine is having problem with his C programming for his assignment. The question is as follows: THE QUESTION: RESTAURANT BILLING SYSTEM Write a program in C to computerize the billing system of a restaurant. The customer bill is charged based on the following information: • Assume that …

0
79
Member Avatar for Trueblue1234

I have to read a moviea database txt file(attached) into an array and then implement string search. I am using fgets() but problem is that I can read only part and not compelete text. Any anyone can help please ??

Member Avatar for eng16danbo
0
91
Member Avatar for arsh_arsh

i have two func from one i am passing address of a matrix and in another function getting elemts in matrix. getting coredump on entering first value fn1() { int aiMat[MAX_ROW][MAX_COL]; int iNoOfRows,iNoOfCol; /* calls the function to get matrix from user*/ fnGetMatrix(aiMat,&iNoOfRows,&iNoOfCol); ............ .............. } void fnGetMatrix(int **aiMat,int *iNoOfRows,int …

Member Avatar for arsh_arsh
0
83
Member Avatar for kat_stephens

i know that this is a simple code but i'm having problems with it. Problem to be solved Get two sets of 10 integers from the user and store each set in a separate array. Find the set representing the intersection of the two sets entered and store the intersection …

Member Avatar for kat_stephens
0
78
Member Avatar for ylchen

Hi all, I'm looking for a function that releases the CPU for the current executing thread. What I'm doing is implementing a multi-threaded approach to sum table calculations, and using OpenMP for multithreading. Here's the problem: I have a thread that depends on a number of other threads to finish …

Member Avatar for Ancient Dragon
0
83
Member Avatar for gebbit

Hello, I'm new to C and having this problem. What I need to do is add a single integer (0-9) to an (obviously char) string. More specifically, I want to add the value of a function that returns an integer (0-9) to a string. I don't want to change the …

Member Avatar for themoon49
0
2K
Member Avatar for raigs

N00B. I keep getting a segmentation fault when I try to substitute a word with another. I'm using this tutorial as an example but don't seem to get it right: [url]http://www.cplusplus.com/reference/clibrary/cstring/strstr/[/url] [CODE]#include <stdio.h> #include <string.h> void REPLACE(char STRING[]) { char *MONTH[] = {"January","February","March","April","May","June","July","August","September","October","November","December"}; char *MES[] = {"Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"}; int B = …

Member Avatar for Aia
0
95
Member Avatar for clarence_cool03
Member Avatar for ravishkkumar
0
135
Member Avatar for chetangudi

hi, can anybody help me how to represent queue of stacks. if anybody gives me some idea then i would be greatful to them. thank you.

Member Avatar for Ancient Dragon
0
26
Member Avatar for ankur_

I want to check by a c program that in a system Microsoft Visual studio Runtime is present or not. The system might not have complete package of Microsoft Visual studio but we can run a c or c++ program using Microsoft Visual studio Runtime(MVSR) I want to know that …

Member Avatar for Ancient Dragon
0
200
Member Avatar for j_cart007

hi! i'm trying to write the code to open the file and read the contents and write to another file with uppercase but the problem i'm having is path problem everything seems pretty fine but it says Steam != NULL , as long as i know its could'nt locating the …

Member Avatar for j_cart007
0
136
Member Avatar for ankur_

Please mark the thread as solved after it gets solved It helps the onlooker and the members to know which threads are solved ad they can look into those problems if they have a similar query. But in many occassions it happens that even after the problem is solved the …

0
60
Member Avatar for Ismailworking

Hi . i am using C++ editor to write my C code. when i press Ctrl+F9 , the output screen comes and goes without stopping for a while. Please note that i have included "#include<stdio.h>" and i am using "getchar()" function do stop the screen.

Member Avatar for ankur_
0
9K
Member Avatar for alvalany

Please someone help me regarding the differencec b/w Structures and Unions.I know the differnce in the memory management but what is itz advantage .Also why are unions specifically used in mouse programming and similar stuff..

Member Avatar for ankur_
0
134
Member Avatar for Ineedhelpplz

So I have written a reverse polish notation calculator: [CODE] #include <ctype.h> #include <stdio.h> #include <stdlib.h> #define NUMBER '0' #define MAXOP 100 int main () { int type; int op1, op2; char s[MAXOP]; while ((type = getop(s)) != EOF) switch (type) { case NUMBER: push(atoi(s)); break; case '^': push ((unsigned …

Member Avatar for Ineedhelpplz
0
206
Member Avatar for ankur_

I am running a program(client) that creates about 20000 sockets. After closing this exe when I again want to run than some of the sockets still remain alive and are not closed. Is there any mechanism that I can close these socket just after my exe terminates. I am using …

0
64
Member Avatar for LostnC

I need to convert seconds to Minutes, hours and seconds. I must use pass by reference in variables. I know I need to use the modulus to deal with the remainders when I'm converting to Hours, minutes and seconds. I am really having a difficult time with the code.

Member Avatar for yellowSnow
0
1K
Member Avatar for MrNoob

hey i got something again i got confused by in PE files and they don't rlly explain why happens oke so what im confused with FileAlignment and SectionAlignment files must be aligned or sections to whatever count is right ? like if the it's less than the number (x) then …

Member Avatar for MrNoob
0
101
Member Avatar for production.

Hi I am facing one small problem please send me suggestion for that Problem as follows I have written one code in C for 8051 to use one port as input port & other one as out port.This is done by push button.For example I use P1.0 as in put …

Member Avatar for wildgoose
0
102

The End.