15,551 Topics

Member Avatar for
Member Avatar for can_surmeli

Hi. I've a BST created for an address book application for my term project. When inserting into the BST, I insert items sorted by their first names in ascending order. The thing is that the user should be able to display the BST in the ascending form of last names …

Member Avatar for TrustyTony
0
706
Member Avatar for can_surmeli

Hi all. As a part of my project I need to get the address book information saved in a .txt file into a Binary Search Tree. The info in the address book is stored like the following: First Name, Last Name, Date of Birth, E-mail, Phone, Address, City, Zipcode So …

Member Avatar for can_surmeli
0
2K
Member Avatar for jenny666

hello...im new to visual studio 2008 How do i compile C in visual studio 2008? i have read this thread "[URL="http://www.daniweb.com/software-development/cpp/threads/16256"]Compiling C[/URL]" and its says to do this... ------------- Go to View Menu select Solution Explorer or CTRL+ ALT +L Then Select The project that your are developing and right …

Member Avatar for jenny666
0
380
Member Avatar for rpstata

Dear All, I am running C programs on DEV-C++. Its 32-bits compiler like MS visual.. Kindly go through the following program. Program: [code] #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <math.h> main() { char ch; unsigned char u_ch; int i; unsigned u_i; short int s; unsigned short u_s; long l; …

Member Avatar for raptr_dflo
0
114
Member Avatar for rockerjhr

Ok so i have to create a program that computes the convex hull of a bunch of random points but i have no idea where to start i mean i know how the program is supposed to work since you can just easily look up the pseudo code but i …

Member Avatar for raptr_dflo
0
225
Member Avatar for triple_A

Hello all. I am making my first hello world program in C, and I have already run into issues. [CODE]#include <stdio.h> int main() { printf( "Hello World\n" ); getchar(); return 0; } [/CODE] I am getting two errors when I try to run this. C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\firstproject.c|4|multiple definition of `main'| and obj\Debug\main.o:C:\Users\Wiseguy\Documents\CodeBlocks\firstproject\main.c|5|first …

Member Avatar for sergent
0
103
Member Avatar for rameshbadi

Hi.. I am learning C using Def c++. I struck at strcpy command. It giving error for a small exercise [CODE]#include<stdio.h> main() { char string[20]; strcpy("Hello", string); printf("%s", string); fflush(stdin); getchar(); }[/CODE] it giving error: `strcpy' undeclared (first use this function) Please help me that what can i do in …

Member Avatar for Ancient Dragon
0
433
Member Avatar for markfw

Hi I have some questions: I'm getting segmentation fault on print_clauses(...) function and I really can't figure it out why. But the bigger question is, am I doing something wrong in build_clauses(...) function? Am I using double pointers in right way? because the second #if ... #endif gives me N …

Member Avatar for markfw
0
121
Member Avatar for spiritsad

Write a C program to implement Queues using Singly Linked Lists. Hints: The operations to be performed are 1. Insert Front 2. Delete Rear 3. Display or 1. Insert Rear 2. Delete Front 3. Display i solve but there are error: [CODE]#include<stdio.h> #include<conio.h> #include<alloc.h> // Structure of each node in …

Member Avatar for zaraki
0
180
Member Avatar for rEhSi_123

Hi Guys, I am trying to do design a coarse grain algorithm in MPI for carrying out multiple pattern searches. For which I have created a function that does the main pattern searches as shown in the algorithm below called hostMatch. The code below, reads in the data and sends …

Member Avatar for rEhSi_123
0
192
Member Avatar for jeff4L

Code runs perfectly. I can enter the parameters and quit the program but when I try to calculate the number of cycles and print out the instructions it crashes. I looked over the nested for-loops and changed the condition (whether it should be [ICODE]<[/ICODE] or [ICODE]<=[/ICODE]) and it still crashes. …

Member Avatar for jeff4L
0
151
Member Avatar for gynmd

hello, can someone explain me how this printf inside the function works? [CODE] #include<stdio.h> #define SIZE 10 void function(int [],int); int main() { int a[SIZE]={32,27,64,18,95,14,90,70,60,37}; function(a,SIZE); return 0; } void function(int b[],int size) { if(size>0){ function(&b[1],size-1); printf("%d ",b[0]); } } [/CODE]

Member Avatar for gynmd
0
172
Member Avatar for jenny666

Hello, im new to stored procedure and never really used C. For a project i have to write stored procedures and execute them in C. I have written my stored procedures in MySql Workbench and I have Visual Basic 2010 express and Visual studio 2008 installed. How do i execute …

Member Avatar for Ancient Dragon
0
177
Member Avatar for ruku ruku

hi i m learning stage for c language how can i create round circle in c language can u pls do need ful help for me ....................

Member Avatar for Ancient Dragon
0
48
Member Avatar for darkdai

hey everyone, i was wondering if anyone can tell me how to prompt the user the enter the filename to be searched for using FindFirstFile. and if there a way of setting a default path to search in

Member Avatar for Ancient Dragon
0
107
Member Avatar for jeff4L

When I declare my variables, should be it be like [B]int delay = 0[/B] then initialize to [B]int delay = 0[/B] or [B]int delay[/B] then initialize to [B]int delay = 0[/B]? I'm a bit confused about initializing my variables... [CODE]void calc_pipe() { /* Declare local vars */ int i; int …

Member Avatar for jeff4L
0
182
Member Avatar for peponas

Hey! I'm new to the forum and also a new developer. I'm trying to build an numerical solution for an equoation and my parameters are in an ascii file where I already know their position The file is structured like the example: #Parameter 1 parameter value #Parameter 2 parameter value …

Member Avatar for peponas
0
144
Member Avatar for MooCrow

I'm trying to write a program which reads in a string of defined size from the keyboard and displays how many times each letter appears and also displays how many non-alphabetical characters appear. So far, it successfully counts the number of letters. However, I'm really struggling with getting the string …

Member Avatar for Narue
0
150
Member Avatar for tubby123

Guys, can u tell me a good programming practice to stop iteration inside a for loop based on a condition, that is, something equivalent to a break in a while loop suppose i am iterating inside a for loop, looking for the first number divisible by 2, i would do …

Member Avatar for Arbus
0
189
Member Avatar for DNHK

hello everyone umm I'm having trouble in printing a structure in c... is a program to calculate benefits of employees in a company when they are fired.. getting trouble when printing the hired date of an employee here its the code [CODE]#include <stdio.h> #include <conio.h> #include <stdlib.h> void menu(); struct …

Member Avatar for TrustyTony
0
236
Member Avatar for MooCrow

We've started learning about arrays, but our lecture notes are really not helpful at all and we don't have a book. I'm struggling to understand this question and I honestly have no idea what to do or where to start. I've tried to read tutorials and things but I'm just …

Member Avatar for MooCrow
0
798
Member Avatar for Roelof Wobben

Hello Im trying to learn C rfrom the C book. Now I have this exercise : [code] Write a function that returns an integer: the decimal value of a string of digits that it reads using getchar. For example, if it reads 1 followed by 4 followed by 6, it …

Member Avatar for jl.lakhnai
0
221
Member Avatar for ssaleem1992

i'm a beginner with c... and i need a simple c code to read all the files from a folder in a windows platform

Member Avatar for Narue
0
31
Member Avatar for kirtics344

You’ve been given an assorted set of gears. Each gear has a different number of teeth – the notches on a gear that interlock with notches on another gear to transmit speed. You have a couple of belts one coupled to an input and the other for the output. You …

Member Avatar for maqsood8797
1
165
Member Avatar for asilter

let's say we have a unsigned char pointer with allocated memory of 1 million bytes. Could you give a little code sample which shows how to eliminate first 1000 bytes? the little similar situation is like below: unsigned char array: 12,34,67,99,215,250,123,67 i want to make it: 215,250,123,67 I want to …

Member Avatar for IcantC
1
176
Member Avatar for rEhSi_123

Guys need some advice. I am working on a algorithm for multiple string searching using OpenMp. So within my program I am trying to [U]initialise[/U] each elements of an array to a value of a variable. What I mean by is say if I have array intialised as shown below: …

Member Avatar for Narue
0
103
Member Avatar for Roelof Wobben

Hello, I have this problem. [code] Use the function that you just wrote to read a sequence of numbers. Put them into an array declared in main, by repeatedly calling the function. Sort them into ascending numerical order, then print the sorted list. [/code] So I thought this can work …

Member Avatar for WaltP
0
122
Member Avatar for d_panayotov
Member Avatar for rockerjhr
0
203
Member Avatar for tubby123

guys, we use like a 2-d array very often. But what exactly is the use of a 2-d array ? Now when i look at it, i feel everything can be done using a 1-d array and incrementing the pointer appropriately. Is the only advantage of a 2-d array , …

Member Avatar for rockerjhr
0
150
Member Avatar for batchprogram

I'm doing some homework for a computer systems class and all is well except this one problem that I can't seem to find a solution to due to the limitations. The problem requires me to write a function that performs addition on 32-bit signed integers but saturates the result to …

Member Avatar for rubberman
0
2K

The End.