18,490 Topics

Member Avatar for
Member Avatar for scl84

Hi! I want to know if it is possible to display a binary tree using double linked list as follows: A / \ B C / \ / D E F I tried some possibilities but i think it is impossible since there are lots of parameters to take in …

Member Avatar for Prabakar
0
101
Member Avatar for jhuyenh

Hi, i'm very new here and very new to C. I'm trying to figure out how to encode and decode in my C class. i was given a two txt files to use. one is the decoding symbols and the other are the codes i need to decode. i started …

Member Avatar for ajay.krish123
0
449
Member Avatar for robinsonj

We’ve searched inside and out, upside and down but we are still blue :( , because it seems that Bluetooth developers only come out once in a blue moon. We need to find someone who is interested in working with current and cutting edge technology. Is there anyone out there …

Member Avatar for r21m9
0
218
Member Avatar for atman

Hello, Im taking C in school, and i have a problem with my code, nothing happens at all when i run the program. The task is: A program is required that prompts the user for a number. The program will then print a series of asterisks to represent the number. …

Member Avatar for Aia
0
179
Member Avatar for thanatosys

First here is my header file [code=c] /* @source Simplespell Program * * @author: Chris King([email protected]) * @@ * * node.h * CSC 230 Fall 2008 * * The @ signs along with the word denote specific information about * the program. Using the standards described in: * http://emboss.sourceforge.net/developers/c-standards_new.html */ …

Member Avatar for Aia
0
318
Member Avatar for atman

Hello., I'm working on my school assignment and the condition is to use post-test loop trying to get following result: --------------------------------------------------------------- Enter the Section Code: 0 Invalid value entered. Must be 1 to 4, please re-enter: 1 Enter the Student's ID: --------------------------------------------------------------- this is the assignment condition: When the program …

Member Avatar for Aia
0
258
Member Avatar for yuvaraj.tr

Hi friends i am new to embedded domain. I would like to learn embedded C ,.. Where i get free books to learn embedded C.......... and whre i get free compilers to execute embedded c programms.......... I am using linux os.............. please help me................. Advance Thanks for helping

Member Avatar for yuvaraj.tr
0
75
Member Avatar for yinfu89

Sorry , Newbie here i have no clue on how to do "Write a complete C program to read twenty (20) integer numbers. Then count and display the number of even and odd numbers among the twenty (20) integers read. Use a while loop to perform the repetition task." is …

Member Avatar for ddanbe
0
147
Member Avatar for blackrobe

I've been reading an article but the code is written in C language which I don't get at all... The code is: [CODE]void traverse(Tptr p) { if (!p) return; traverse(p->lokid); if (p->splitchar) traverse(p->eqkid); else printf("%s/n", (char *) p->eqkid); traverse(p->hikid); [/CODE] Someone please translate it to python...

Member Avatar for tyincali
0
173
Member Avatar for kymarscheng

Just want to say [B]HI[/B] to everyone on DaniWeb~ I am learning C and I think pointers and addresses are quite difficult...

Member Avatar for Doctor Inferno
0
61
Member Avatar for paynegm

So i need to use scanf() to get input of positive ints from the user and then print the number out and then ask again and keep doing this till the user enters a negative number. with what i have it prompts the user to enter a number then prints …

Member Avatar for Dave Sinkula
0
48
Member Avatar for carlos_lopez_m

Hi everyone: I'm calling an Excel file from C#; now, because I Want to run automatically a Macro, I've added to my Workbook code, Private Sub Workbook_Open() the name of the routine I want VBA to execute as soon as the file is open. The problem is that C# is …

Member Avatar for carlos_lopez_m
0
161
Member Avatar for ahfan_85

I hv This Question here: User will be prompt for number of quiz that has been taken. User has to input their marks for each quiz. Your program will calculate the average of the marks. Find the lowest mark of those quizzes. Find the 3 highest mark of those quizzes. …

Member Avatar for ahfan_85
0
306
Member Avatar for manjuptm

Hi, i want to store a hex values 01 00 A8 E3 56 E1 into a byte array and send it through socket can anyone suggest a way to store this thanks,

Member Avatar for Narue
0
78
Member Avatar for richardmatthews

Hi all, I run a really small outfit producing warehouse management software. I've been in computers for many years and something must have rubbed off because I have some knowledge of C, PHP, HTML, SQL . I write my company's software in Alaska <snip> I've never really got into VB/Access. …

Member Avatar for Denniz
0
24
Member Avatar for Member #432999

Use the given void function. This function will find the flight whose departure time is closest to desired_time(expressed in minutes since midnight). It will store the departure and arrival times of this flight (minutes also) in the variables pointed to by departure_time and arrival_time, respectively. Here's what I've gotten so …

Member Avatar for devnar
0
161
Member Avatar for happy8899

Can anyone show me how to solve the 8 puzzles either using the heuristic search thank you. if u can , u may attach the sourcecode too. thank u :cheesy:

Member Avatar for ahyeek
-1
185
Member Avatar for rock_climbr

Hey everyone, I'm currently trying to use LabVIEW for pattern recognition to find the angle of a product using one version of the hough transform for circles. I'm having a problem and I'll do my best to explain it. I have my code working for all test images (or at …

Member Avatar for ArkM
0
114
Member Avatar for StainlessSteelR

For my homework I have to create a program with functions and nexted while loops. I have got most of the program written but it's not executing how I want it to. The program is setup as a football program, (RB = Running Back it's a football playing position) it …

Member Avatar for ndeniche
0
238
Member Avatar for kidd218

This is about the arrays...I thought a lot...but I couldn't get any ideas from that...please help me.. thanks!! the question: A series of numbers can be read from the keyboard and put into an array of integers. You will then need to call a function to invert the values (1/x) …

Member Avatar for Aia
0
139
Member Avatar for jkun2

For my second project in C we have to write a program to take in 2 arguments, one being a directory path and another being an int level_val. If level_val is -1, files in the parent directory are to be listed, and so on up the directory tree for -2, …

Member Avatar for Ancient Dragon
0
211
Member Avatar for thanatosys

I am still working on the lovely trie project, now I am working on file input that will be passed into the trie. I receive the following errors when I compile this code. [code] $ make gcc -Wall -g -c -o spellback.o spellback.c spellback.c: In function ‘main’: spellback.c:36: warning: implicit …

Member Avatar for thanatosys
0
151
Member Avatar for Tshiamo

Hi! can someone send me a link where i can download a free c And c++ compilers!

Member Avatar for Code Shark
0
112
Member Avatar for naeem1986

Dear all, I am trying to build a code which finds a string from an opened file ,, but in order to find it it must tokenize every line first.. here is the code segment, If any of u can help plz.. [CODE] #define MAX_MSG = 100 int main (int …

Member Avatar for naeem1986
0
152
Member Avatar for theausum

[code=c] #include<stdio.h> #include<conio.h> #include<string.h> void permute(char *str,int l,int pos,int r); void swap(char &a,char &b); void print_string(char *str,int r); int main() { char str[10]=""; int l,r; printf("Enter The String : "); gets(str); l=strlen(str); printf("Enter The Number Of Places To permute on : "); scanf("%d",&r); printf("The Following Permuations are possible : \n\n"); …

-1
50
Member Avatar for Boudou

#include <stdio.h> #define SIZE 16 int* biggest(int *a, int count); int main(void) { int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 }; int *p; p = biggest(values, SIZE); printf("the biggest element in the array is %i\n", *p); return …

Member Avatar for skatamatic
-1
117
Member Avatar for unleashedvigil

I am needing to have this program choose between two options randomly. The program all works except that when I use this line of code: int x= rand() % 2; it seems that it's not random but rather follows the same pattern every time. I have searched and found things …

Member Avatar for unleashedvigil
0
102
Member Avatar for sudokusolver

i designed this tic tac code in c bt there is sum prblm wid the part where program has to decide the winner it dosent seem 2 workin im posting the code any help is greatly supported #include<stdio.h> #include<conio.h> void main () { int go=0; int i =0; int player; …

Member Avatar for WaltP
0
130
Member Avatar for randika2000e

hay dear i need help for c prog... i used <textcolor (14+128) ,cprint> commands to blink some text. befor i drow rectanngel and some circle as back image. but the text is not apper. if i closed the graphic mood, then it'll show. but i need kept the graphic back …

Member Avatar for WaltP
-1
162
Member Avatar for akbar002426

You are to implement a very simple distributed text editor. For this purpose, each user must be provided with a simple workspace where she can either read or write plain text. You must implement the system in such a way that, at any given point of time, only one user …

Member Avatar for thanatosys
0
124
Member Avatar for thanatosys

I have a homework assignment for a c class I am in currently, the assignment is to write a simple spell checker. I am having a bit of trouble understanding how to write a trie in c. A trie would be composed of nodes, which contain the following I believe: …

Member Avatar for thanatosys
0
293
Member Avatar for volscolts16

Hi all, I have been pulling my hair out in this one. I am using logisim to build this for lab. I have combined a half adder (a,b inputs and s, c outputs) with the carry coming out to represent z that goes into the full adder(xyz inputs and s2, …

Member Avatar for shrughes
0
209
Member Avatar for dhandb01

hi there guys!!!! Could u plz help me with this program. I hav done quite a lot but there still are some problems. here is a brief overview of ma project The aim of this project is to design and develop a useful utility program, named duplicates, to locate and …

Member Avatar for dhandb01
0
173
Member Avatar for jianna

Hello all I have been learning C for about 3 - 4 weeks now and I'm in need of some help. I am trying to write a function that will give you the sum of selected integers in an array with a value of 20. I can make it give …

Member Avatar for jianna
0
479
Member Avatar for narayananec1987

I want aprogram to enroll my school time table... i have five days of school with six hour each day .,..please help me out to solve with swtich statement.,,,.

Member Avatar for ddanbe
0
49
Member Avatar for blackslither

I will give a simple example inspired from my problem : void change(int *x, int *y){x=y;} int main(){ int *xx,*yy; yy = (int*)malloc(sizeof(int)); change(xx,yy); if(xx == NULL)printf("is null\n"); else printf("---- %d ----\n",*xx); .................................................. ......... xx doesn't point to the value of yy (*yy) , the program prints "is null" . …

Member Avatar for Aia
0
155
Member Avatar for unleashedvigil

Hi Everyone, This is my first post and I hope I followed all the guidelines correctly. This is an assignment for a class. I am supposed to read integers from a file, enqueue or dequeue them and then write them out to another file. The main method calls this Work …

Member Avatar for unleashedvigil
0
96
Member Avatar for Barefootsanders

Hey all, I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this: [CODE]array[2] = array[1]; array[3] = array[2]; array[1] = result;[/CODE] However, …

Member Avatar for ddanbe
0
123
Member Avatar for Srynx

Hi I'm trying to generate a random number betwen any numbers (eg from 1 to 100) and I've tried this code: [CODE=c]#include<stdio.h> #include<math.h> #include<time.h> #include <stdlib.h> int NumAleatori(int max) { int num; num=((int)ceil(((double)rand()/RAND_MAX)*(max+1)))%(max+1); return num; } void main () { int N,a; srand( (unsigned)time( NULL ) ); printf(“Enter an integer:\”); …

Member Avatar for nucleon
0
148
Member Avatar for bemo55

I am having a problem with this project I am working on. The assignment is to create an application that will give a user the choice of displaying the roman numeral equivalence of a number between 1 and 10 or displaying a count of roman numerals from 1 to 10. …

Member Avatar for ddanbe
0
107
Member Avatar for rstkw

I have a degree in engineering. I spent 16 years in the military. I never liked computers until I built one. (Remember DOS 2 and the NEC V-20 processor chip?) I spent 10 years as a controls systems engineer, which, in my case, meant programmer. Visual Basic was forced on …

Member Avatar for jbennet
0
92
Member Avatar for rohan.raizada1

void function(int a, int b, int c){ char buffer1[5]; char buffer2[10]; int *r; r = buffer1 + 12; (*r) += 8; } int main(){ int x = 0; function(1,2,3); x = 1; printf("x = %d\n", x); } Hi, I am new to this community and have joined recently. I am …

Member Avatar for C-er
0
143
Member Avatar for voldemarz

I`m working on c program which is working in graphical mode. I use Turbo C 3.0 IDE. Until recently everything was ok, but then i gave my laptop away to the service. So I temporary borrowed one and problems apeared. Before starting the work I had to install Windows XP …

0
55
Member Avatar for En-Motion

Im trying to write a program to count characters and words when type a sentence but i keep getting "syntax error : missing ';' before 'type'" as an error. Anyone see where I'm going wrong? Thanks [CODE]#include <stdio.h> #include <ctype.h> int found_word(void); int main() { int c, nw=0, nc=0; printf("Enter …

Member Avatar for WaltP
0
356
Member Avatar for J-son

Hi there again :) Could someone tell me what is the difference between function declare in main() and outside main() ? Because I don't see anything wrong. Thanks so much in advance. Here is example, [CODE=c] #include <stdio.h> //void fun(int x,int y, int z); int main() { void fun(int x,int …

Member Avatar for Denniz
0
11K
Member Avatar for panpanf
Member Avatar for gmdune

Hi All, Thanks for all your help and suggestions...I am re-posting my code, with proper formatting for your review. The code runs correctly, but the ending balance, after all the withdrawals, is incorrect and I can't find where I messed up. Any help would be most appreciated: [code] #include <stdio.h> …

Member Avatar for Salem
0
217
Member Avatar for ambarisha.kn

I wrote the following function and it is working fine, but my problem is i want to write forward pointer address in present pointer field. I will explain in code. please check line numbers 10, 11, 12, 13 in the following code.. [code=c] void create_fbeCodeDat() { int checkSum=0; fwrite(&signature,1, 4, …

Member Avatar for ambarisha.kn
0
222
Member Avatar for hikaru1239

Hi, I was practicing for our hands on exams tomorrow when I encountered a problem in my code. Here is a part of my code: [CODE]void interactive(){ //if argument is 0, program will enter the interactive mode. int choice; int year, month, day; char div[40]; char tags[WORD_COUNT]; char entry[WORD_COUNT]; printf("\t\t....................................................\n"); …

Member Avatar for Aia
0
103
Member Avatar for phuanon

Hey i have a home work TSR program anyone can help me >> Write a progam TSR use C to turn off sound of all aplication on computer. >> If have Sound turn off it nice if u can write code THk

Member Avatar for jbennet
0
110

The End.