15,539 Topics

Member Avatar for
Member Avatar for plike922

I am having a problem when i compile a program. What happens is that i would compile program, run it, see a problem, fix it, then try to compile it again and i get LINK : fatal error LNK1168: cannot open C:\Documents and Settings\Eric 22\Desktop\Exercises\celsFahr\Debug\celsFahr.exe(example file) for writing. I don't …

Member Avatar for plike922
0
114
Member Avatar for guardians

Hi, I can't seem to get my program to work. I'm using qsort to sort some keyboard-input strings, but I get segmentation fault. I tried 3 versons, and none of them works. Could someone pinpoint the error? [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> #include<search.h> int str_cmp(const void *prv,const void *vtor); main() { …

Member Avatar for guardians
0
233
Member Avatar for xlx16

[TEX][/TEX]/* I need some advice on program bellow,this program is text program in this program by pressing arrow key you can change your position in the text and by enter key you can break a line and move the rest of the line to a new line but this program …

Member Avatar for ssharish2005
0
125
Member Avatar for puma8085

My project is to receive data from MRI machine, which has a com port can send serial signals. The data come thru pin3 of the com port and we want to save and read them on a pc. I've check the data with a spectrum analyzer and found the signal …

Member Avatar for ssharish2005
0
203
Member Avatar for adewale1

You are required to design a control system for a car park. You should produce your own design, ensuring that you have enough features to allow you to demonstrate that you can programme multiple tasks with inputs, outputs, decisions, communication and sequencing. The system features may feature space control, entry …

Member Avatar for Salem
0
89
Member Avatar for raja289

[url]http://s3.supload.com/free/lastscan-...3716.jpg/view/[/url] up there is description of code and here;'s code [CODE=c] #include<stdio.h> #include<string.h> float avg(float); main() { FILE *p[2]; int k,students=10,subjects=4,i,j,id_number,date_of_birth,fail=0; float marks[100],total=0,avg; char name[30],course_enrolled[30],filename[10]; for(i=1;i<=2;i++) { printf("filename"); scanf("%s",&filename); p[i]=fopen(filename,"w"); printf("Enter Name of Student\n",p[i]); fscanf(stdin,"%s",&name,p[i]); printf("Enter Course In Which Student Is Enrolled\n",p[i]); fscanf(stdin,"%s",&course_enrolled,p[i]); printf("Enter ID Number Of %s Enrolled in …

Member Avatar for raja289
0
402
Member Avatar for plike922

I am wonder how do you make it that you have to letters = to one number with only typing it once? Here is my program. My problem is that the result printf("%d reversed is: %d\n",num , res); is 0 reversed is: (The number backwords). [ICODE]#include <iostream> #include <stdio.h> #include …

Member Avatar for dwks
0
247
Member Avatar for SwiftDeath

Pls Help me, i am nearing the deadline July 30 of this case study and the code is almost finshed it does sort the input elements the way my algo logic does however i am not able to display the correct number of passes to show the law of the …

Member Avatar for dwks
0
145
Member Avatar for ramukneevan
Member Avatar for Narue
0
56
Member Avatar for jackassplus

I'm trying to work out what this does: [code] ptr = input_string; dest = input_string; while( *ptr && *ptr != '\r' && *ptr != '\n' ) { if ( *ptr >= '0' && *ptr <= '9' ) *dest++ = (char) ( (*ptr) - '0' ); if ( *ptr >= 'A' …

Member Avatar for jackassplus
0
126
Member Avatar for hoticejin21

guyz im having hard time of making a program that could run like a simple ATM machine using turbo c(using conditional statement and looping)... I can't think will coz the dealine of submission is on next week... could you gave an idea of that program.. pls??? i will just change …

Member Avatar for Adak
0
171
Member Avatar for vijaysoft1

Hi , iam trying to develop a simple text editor on Turbo C , that will accept values from the keyboard and print on the screen . I want a scrolling function . when i entered th data and press enter button it will come to the next line . …

Member Avatar for Adak
0
116
Member Avatar for ishaanarora

[QUOTE]Only the stronger will survive.( Charles Darwin)[/QUOTE] As i posted my first fifo error problem which was a practice thing .Now i am doing what i m supposed to do. I m making this code first which is running is background.whenever any one will write on the fifo it creates …

Member Avatar for ishaanarora
0
150
Member Avatar for rakeshbk402

Hello All, I am a fresher in c, i need to know about how to find out the size of a function defined & size of stack memory allocated for c compilers

Member Avatar for Ancient Dragon
0
184
Member Avatar for ishaanarora

i m writing a practice code to implement select with fifo. i m posting two codes along with : [CODE] CODE 1: Help with Code Tags (Toggle Plain Text) #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include<fcntl.h> int main() { int fd,rc,i; /* Making A FIFO names as fifo2*/ char data[100]; …

Member Avatar for ishaanarora
0
164
Member Avatar for flecture

hi cld anybody explain me the concepts of continue,break,return statement with an example using c program

Member Avatar for Ancient Dragon
0
234
Member Avatar for sinkingships7

I'm having a bit of trouble reversing a string. Here's a code snippet of how I'm currently trying to do it: [code=c] index_s1 = strlen(num_s1); for (index_s2 = 0; index_s2 <= strlen(num_s1); index_s2++){ num_s2[index_s2] = num_s1[index_s1]; index_s1--; } [/code]

Member Avatar for sinkingships7
0
117
Member Avatar for sinkingships7

Does anyone know a good way to do it? I've heard of itoa(), but it's non-standard and isn't included by default with the GCC compiler. If you believe that's the best way, how to I get my hands on the function? Ideas? HUGE EDIT: I made a stupid mistake and …

Member Avatar for sinkingships7
0
116
Member Avatar for kuratkull

Hello, I am having a problem with a Glut function which is messed up, either by GCC or by OpenMP. I have GCC 4.3.1 20080626. The problem is, that I do not know which of the three is causing the "Segmentation fault" at the glVertex2f() function. The proggie works perfectly …

Member Avatar for kuratkull
0
220
Member Avatar for zubermohammad

hi friends i want to develope some software or any application using c but i m dont know what should i do because i dont have complete knowledge of it i just know upto the pointers and files and i m reading further about programming in windos and linux so …

Member Avatar for Salem
0
101
Member Avatar for plike922

I am trying to create a program that gets the min and max of a list. I so far have this but when I run the program and put in a list i get the max, but the min is 0 because you have to end it with zero. How …

Member Avatar for Ancient Dragon
0
88
Member Avatar for flipjoebanana

Hello, Is there is a way within C to trap stdout and prevent it from displaying. In my example I call a function that has the potential to print an error message to stdout. Is there a way to prevent messages to stdout from being displayed while my program calls …

Member Avatar for Ancient Dragon
0
96
Member Avatar for kv79

Hi all, I have a sample.bat file . I want to execute that file 10 times . I dunno command that executes bat files .

Member Avatar for Narue
0
118
Member Avatar for RaDeuX

So for my assignment, I'm supposed to fill ten strings from a file using an array of pointers. Now I know I'm doing this wrong since my compiler is telling me that there are errors on the levels of indirection. Pointers are so confusing... >_> [code] char* pStrings[10]; char** pWalker; …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for perfectlover09

Hi. Im new to programming and to this website and i need help with one of my assignments. The instructions for the assignment are to "write a program that uses an array of student structures to answer inquiries. Using a menu-driven user interface, provide inquiries that report a student's score, …

Member Avatar for Ancient Dragon
1
211
Member Avatar for flipjoebanana

Hello, I am having problem with strings within structs and was wondering if someone could help. I have a struct, i.e. [code] #include <stdio.h> #include <strings.h> struct feeling { char *emotion; char *emotion_options[20]; int num; }; [/code] which i then pass to a function via reference, i.e. [code] int main() …

Member Avatar for dwks
0
243
Member Avatar for java_girl

Hi. The objective os to open a file and print 55 lines of content at a time. Since I am still learning 'C', my code (thus far) may appear slightly neophytic ;) [CODE=C] #include <stdio.h> #include <stdlib.h> #define SIZE 1000 void pause( void ); int main( void ) { FILE* …

Member Avatar for dwks
0
122
Member Avatar for nnhamane

Is there any inbuilt function in C language by which one can directly access image contents?

Member Avatar for dwks
0
256
Member Avatar for fddrummer06

I'm working on a problem in the File Processing chapter of my C book, and I've run into a few problems. I'm sure they are probably minor but I've been playing for a while and can't figure out why they are happening. First: When printing a text file containing the …

Member Avatar for fddrummer06
0
123
Member Avatar for zubermohammad

hi friend i have a problem in coding a program it states that you have to take input of suppose ten players and their team with their batting average there may be all tn different team or any but less than ten and i have to sort them by their …

Member Avatar for Salem
0
77

The End.