15,552 Topics
| |
Hello I wanna create an application that, inserted words an English and words an another one language will show you this in a random mode. Also you should be able to insert new words and carry on like this. I'm not smart enough so I got stuck. If someone would … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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] | |
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 … | |
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 .................... | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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: … | |
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 … | |
Hi guys, Is there a difference between these two: struct->variable struct.variable ? | |
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 , … |
The End.