15,551 Topics

Member Avatar for
Member Avatar for kxh29

Hello Team: I have users who use Reflection-X (we are on AIX 4.3)when execution our application software. If they do not "back out" of the application (... Select X on the various menu screens...) gracefully, and just "click" on the "RED X", in the upper right hand corner of the …

Member Avatar for krisoccer
0
133
Member Avatar for jodyf1717
Member Avatar for ahamed101
0
79
Member Avatar for hajjo

I have this code [CODE]#include <stdio.h> int addthree(int x); int main() { int num; int d = 0; printf("enter ur num"); scanf("%d", &num); d = addthree(num); return 0; } int addthree(int x) { int s = 0; s = x +3; return s; } [/CODE] Okey I want this code …

Member Avatar for Narue
0
107
Member Avatar for jodyf1717

anyone kno any simple example of the quick sort merge sort and shell sort? i cant come across any in C.

Member Avatar for Narue
0
53
Member Avatar for IrishUpstart

So I need to create a set of data points for the function v*t+.5at(squared). The data points need to be every .02 seconds from 0 to 2.0 seconds. How do I set up the counter for that? Also, all of these points need to be wrote to a location so …

Member Avatar for ArkM
0
148
Member Avatar for jodyf1717

what is meant by "divide and conquer in programing? can anyone give any examples of this?

Member Avatar for Salem
0
34
Member Avatar for JpegUser

Hi, I'm trying to figure out how to scale down a jpeg image in the jpeg library. From the documentation, i've come across these two variables "int scale_num, scale_denom". I've changed the value of scale_denom to 8 but my image could not be displayed. In my jdapimin.c, cinfo->scale_num = 1; …

Member Avatar for JpegUser
0
84
Member Avatar for vkiller

I have a program to write that can binarize a gray-level image based on the assumption that the image has a bimodal histogram. The code should report both the binarized image and the optimal threshold value. Assume that foreground takes a value of 1 and the background a value of …

0
75
Member Avatar for sankari27

Hello, I have one application that reads and writes from the serial port. Sometimes the function read(): "read(fd,buffer,numbytes)" returns before than read bytes reachs numbytes. (Because there are more data in the serial port buffer) I mean. if numbytes is 32, sometimes read returns 12, and in the next read …

Member Avatar for Ancient Dragon
0
89
Member Avatar for rob_xx17

hello, I'm trying to import data from external file (it's a text file with fractions separated by space) and manipulate that data as a floating point. I've tried using 'fget' and 'getstring' and 'readline' and I'm getting an error that says that I'm trying to make a data out of …

Member Avatar for ArkM
0
280
Member Avatar for Superstar288

Hi there people i have a problem i have been asked to Accept characters from a data file. Convert all the characters to upper case,Save the characters to a new data file which i have done. But for some reason im stuck on trying to get the following to work: …

Member Avatar for ArkM
0
107
Member Avatar for Madd0g17

I have searched many a site to find an answer to this question, so here goes: I'm doing a hangman program that needs to pull different quotes from a text file named quotes.txt. Each quote is on a different line. I have the entire hangman program written (I can post …

Member Avatar for Madd0g17
0
91
Member Avatar for marcosjp

Hello there! How can I convert an INT value into a string? I used the itoa function successfully in Windows: [code=c]itoa(the_int_number, the_string, 10);[/code] It worked fine in Windows (DevC++) but Linux did not recognize this function. Does anyone know another way of converting INT into char[n] in C that Linux …

Member Avatar for ArkM
0
9K
Member Avatar for msundastud

can't figure out what I'm doing wrong....Im trying to write a program that can convert a sequence of positive integers from base-10 (decimal) to base-2 (binary), but I can't use the pow function [code] #include <stdio.h> #include <stdlib.h> void input_check (int start, int stop) { if (( 0 <= start) …

Member Avatar for devnar
0
160
Member Avatar for chaba

[url]http://www.sendspace.com/file/do7486[/url] Can someone please explain the assignment & give me some hints. The way am thinking to do is like this.. enter ur input: 1024 i take 1024 and do a loop, divide it by 8 until the number is less then 8. when its less then 8. thats power3: …

Member Avatar for Salem
0
102
Member Avatar for Superstar288

hi there people i was hoping i could get some help please as im kinda stuck. ive have been asked for my uni portfolio to "accept the characters from a data file rather than from the keyboard. Extend the program to convert all the characters to upper case (excluding numeric …

Member Avatar for Narue
0
88
Member Avatar for ambarisha.kn

I wrote the following function. i want to return fbCodeAddr and tmpAddr to the main function. How to do this? Function is as follows; [code=c] void fbExeCode(int BldCnt) { // for(int BldCnt=0;BldCnt<fbdStepno; BldCnt++) { char *fbCodeAddr; char *tmpAddr=0; char *buffer; int n; fbCodeAddr=(char *)malloc(1024); int stack=0; int totalPin=0; for(int fb=0;fb<fbnodeLst.size();fb++) …

Member Avatar for Ancient Dragon
0
144
Member Avatar for MyRedz

how can this be done? do i have to pointer the database in the structure first to make it able to be use from a text file for some C program ..example.. a measurement converter??

Member Avatar for MyRedz
0
130
Member Avatar for kinger29

I am trying to convert an int, a char, and a short into their binary values and display it. int a; char b; short c; I understand how to convert an integer to a binary value bit by bit, I just don't understand how to store it as a varible …

Member Avatar for devnar
0
179
Member Avatar for ahfan_85

Hi,dear all... Im new to C and to this discussion forum. i hv a problem here,which is an array passing problem. int calAge(]) doesnt work well. i tried to look from the internet for reference but get nothing. can u all help me to check it out?coz im not familiar …

Member Avatar for ahamed101
0
106
Member Avatar for Ninad16

Hi all, Just started learning C.I have some basic queries.They may sound silly to you.But please bear with me. -What is the difference between Linking,Runtime and Compilation Error? -What does getchar() actually do? -How do turbo C++ and Visual C++ compilers differ from each other?I mean...in what aspects?Do C functions …

Member Avatar for Narue
0
388
Member Avatar for jared_masc

just having a bit of an issue on a simple problem, m meant to read in a string and return the characters using the fgets method, this is what i have come up with, i get wierd outputs, ex commas, etc, cn sum1 help me plz [CODE] #include <stdio.h> #include …

Member Avatar for HiHe
0
153
Member Avatar for staufa

I'm getting an unexpected error for my piece of code. It seems like a new line character is added into the string once is it called. Well the purpose of my lil code is to read characters from the keyboard using the fgets function and then convert it into pig …

Member Avatar for HiHe
0
188
Member Avatar for kyeong

This project is mainly GCD and validating the error from user input. I got the GCD working correctly, but not the errors. Here's guidelines to validate the errors. [QUOTE]-Provide a function to get a nonzero positive integer from the keyboard and return it to the caller. int get_input() -If input …

Member Avatar for Aia
0
155
Member Avatar for FrawgLips

/*this program has been condensed from over 2400 word combinations down to 27 It is for arranging the meanings of words in the order the words were written. Many words have several meanings (descriptions). */ [CODE] #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <ctype.h> #define TRUE 1 #define FALSE !TRUE …

Member Avatar for FrawgLips
1
109
Member Avatar for En-Motion

I'm trying to write a program to calculate a bill for a user after they enter in some details. It doesn't allow the user to enter in a value for the 'use code', instead skipping that step. Below is only a rough draft of the program, there's plenty still to …

Member Avatar for WaltP
0
144
Member Avatar for MyRedz

about this program which wants only 0 and 1 integers in its input...if other digits it will say error/// how to determine it?? i don't know is it printf("enter a value\n"); scanf("%d",&value); if(value2=0; value%2=1,value++){ printf("error\n"); } else continue. how to do it..? i dont get the idea for geting only …

Member Avatar for Aia
0
103
Member Avatar for anny**

hi to all it is a circle program not running , giving erorrs on my c language but it is working on my friend computer (c language) here is code ; [ICODE]#include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> int main () { int driver,mode, i; detectgraph(&driver,&mode); initgraph(&driver,&mode,"...\\ bgi"); setcolor(8); for(i=10;i<201;i++) { sound(i); circle(300,200,i); …

Member Avatar for devnar
0
224
Member Avatar for MyRedz

if i want to search a target which is the same as my input in a array that is 2D.. what methods is more efficient?? binary search or linear search.. which is highly recommended? help me because i have to use it?

Member Avatar for Sci@phy
0
133
Member Avatar for Somersett

My program uses a buffer to store data as entered by the user, so that the size of the buffer depends on them. The first thing that came to mind is that I would reallocate memory each time more storage is needed, but that doesn't seem reasonable as the data …

Member Avatar for Somersett
0
100

The End.