15,551 Topics

Member Avatar for
Member Avatar for dipps

hi, could some one help me to make a calculator connected to a DSP? This is for my real time systems project. the software used to complile is Code Composer Studio. DSP used in TI TMS320C6711. keypad is 4x4 Matrix X,Y type. I could not understand how to make the …

Member Avatar for dipps
0
113
Member Avatar for programmer321

[code] Hello, In one of my C codes, I have written a function for logging into a files. When the size of the file exceeds 10 MB, I close that file and open a new file. But at run time my Code is crashing at times during file closing. This …

Member Avatar for programmer321
0
2K
Member Avatar for cd0712

I have a project. please help me...... Write a program in C that do the following. 1. Accepts 1 parameter. The parameter is the filename to be processed. If there are no parameters, or if there are more than 1 parameters, show an error message. 2. Opens the file and …

Member Avatar for jephthah
0
130
Member Avatar for wollacott

g.c:12: warning: passing argument 1 of 'fgets' from incompatible pointer type g.c:12: error: too few arguments to function 'fgets' g.c:14: error: 'sc' undeclared (first use in this function) g.c:14: error: (Each undeclared identifier is reported only once g.c:14: error: for each function it appears in.) [CODE] #include <stdio.h> #include <string.h> …

Member Avatar for jephthah
0
276
Member Avatar for knight fyre

I'm trying to create a function that will sort the contents of a file in alphabetical order. The problem I'm having is that the code doesn't seem to do anything. The only examples I could find have to do with arrays which I am not using but I tried to …

Member Avatar for knight fyre
0
1K
Member Avatar for rockmania

I need C code or program to save the output of the following program into a jpg file(any picture file)? i need to save the output of this program in to a picture file..i need to take printouts of those output..help me with the code that does the above thing... …

Member Avatar for Salem
0
148
Member Avatar for wollacott

need help with my program. it keeps repeating (NULL) instead of preinting hello backwards. if remove ca[5] i get bus error. any help please on how to fix it. [CODE] #include <stdio.h> int main() { char ca[10]; ca[0] = 'H'; ca[1] = 'e'; ca[2] = 'l'; ca[3] = 'l'; ca[4] …

Member Avatar for Luckychap
0
87
Member Avatar for electromania

Im codding a programm that has multiple functions. Once functions calculates the means of 2 sets of data and prints meanx and meany. Now another function will use those means to do some other calculation. I dont know how to get those values from one function and pass them into …

Member Avatar for Ancient Dragon
0
247
Member Avatar for wollacott

[code=c] #include <stdio.h> #include<string.h> main() { FILE * myfileptr; // a pointer declared to the file stream. char sc; // a character which will be input from the file. // main code... myfileptr=fopen("words","r"); //open the file hopefully while((sc=getc(myfileptr))!=EOF) //get a char { if(sc)printf("%c",sc); //dump it to screen } printf("EOF\n"); } …

Member Avatar for Aia
0
283
Member Avatar for wollacott

does anyone know how to give the characters of a string numeric variables? so when i can print the numeric variables in decending order so the word is read backwards? for example hello h=1 e=2 l=3 l=4 0=5 olleh your help would be very appreciated, a snippet would be awesome, …

Member Avatar for Aia
0
116
Member Avatar for knight fyre

I've created a program that writes info to a specific file and reading from it to generate an income report. The problem I'm having is that when I geerate my report, the last person that was entered is repeated twice, hence throwing off the grand total. Here's the bit of …

Member Avatar for knight fyre
0
106
Member Avatar for meliss1485

I need to write a C program that uses random number generation to create sentances. I need to use strcat to form the sentance and it should generate 20 sentances. What i have so far is below. however it is not working. I know that the problem is something with …

Member Avatar for meliss1485
0
73
Member Avatar for rockmania

I am using TURBO C++ IDE 3.0..i am able to execute the program that are related to graphics. but the problem i face is when i get the output i am not able to capture the output using print screen key.the output is a black DOS screen and is not …

Member Avatar for Salem
0
95
Member Avatar for wollacott

can anyone help me make my program work. after it capitalize i want it to reverse the new string. something like palindrome. [CODE] #include<stdio.h> #include<ctype.h> #include<string.h> /*program begins here*/ int main() { /**/ char string[100]; char *ptr = string; /*shws the user what to do*/ printf("Enter string and use a …

Member Avatar for jephthah
0
144
Member Avatar for kpnprakash

hello, i am developing a c coding for comparing two txt files(one key file with the transcripted or duplicete file) to figure out the wrong text in the transcripted file.Can anyone help me that how to develop the codes.

Member Avatar for Ancient Dragon
0
127
Member Avatar for bswapnil

[code=c] #include <stdio.h> void stripnl(char *str) { while(strlen(str) && ( (str[strlen(str) - 1] == 13) || ( str[strlen(str) - 1] == 10 ))) { str[strlen(str) - 1] = 0; } } int main() { FILE *infile; char fname[40]; char line[100]; int lcount=1,i=0; char mean[100]; /* Read in the filename */ …

Member Avatar for Ancient Dragon
0
130
Member Avatar for programmer321

[code] Hello, I need my C code Exe to exit only using Cntrol + C and the cross should be disabled. Can anyone help me with this. Regards. [/code]

Member Avatar for programmer321
0
145
Member Avatar for Majestics
Member Avatar for jephthah
0
110
Member Avatar for rohit83.ken

I have a C file of the following .When I execute this in Fedora 7 version 2.6.21-1.3194.fc7 and arch =i686 I get following errors [root@kwi-11156f06184 Desktop]# cc test.c test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: …

Member Avatar for jephthah
0
573
Member Avatar for Indianblues

Hi all, In C, is it possible to write a program that will read the data from database(like oracle) and inserting the data to database and some doing manipulations on the data. If yes,pls provide me information to write the program and some sample code.I am posting the same question …

Member Avatar for jephthah
0
85
Member Avatar for wsn

Hi, I'm practicing for my test and I'm really confused on this question This is the content of make file assuming that part1 and part3 has been modified. list the sequence of command activation in the correct order for make to run I understand it looks at the target then …

Member Avatar for Salem
0
111
Member Avatar for dv1r

how do i use a .txt file in C like read and save form and into it... any help will be good thenks :)

Member Avatar for dv1r
0
127
Member Avatar for wsn

Hi, I'm trying to get two small programs that use macro to work but neither of them is doing so the first macro selects the least significant bit from an unsigned char [code] #include <stdio.h> #define LBIT(X) (((X)&1)?1:0) int main() { unsigned char a; printf("Enter a character:\n"); scanf("&c",a); printf("Least signficant …

Member Avatar for wsn
0
99
Member Avatar for lemichelle

I'm trying to get a program to print out two strings that I input. I can't figure out why its not working! [code] #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE 30 int main() { char s1[ARRAY_SIZE]; char s2 [ARRAY_SIZE]; printf("Enter a String:\n"); scanf("%25s\n", s1); printf("Enter string 2:\n"); scanf("%25s\n", s2); printf("String 1: …

Member Avatar for Aia
0
76
Member Avatar for wsn

What does the following code do when the input is 56789 1234 45a72 int i; float f; char name[50]; scanf("%2 %f %*d %2s",&i,&f1,&name); When I ran the code in the compiler and used printf to check the results i got 56 789.000000 45a72 I understand that it didn't 1234 because …

Member Avatar for wsn
0
97
Member Avatar for awoc

[code] /* while readAccuracy returns a 1 { call readLimits call printInputs call printArea } */ while (readAccuracy == 1) { calcArea (readLimits, printInputs, printArea); } [/code]

Member Avatar for awoc
0
87
Member Avatar for lemichelle

Hi everyone, I just started C and I'm trying to understand some conceptual things. If anyone can help me with any of my questions It would be appreciated! I just want to hear it from something other than a book. 1. So, if macros can hold arguments, why would you …

Member Avatar for Aia
0
74
Member Avatar for DoctorBob

Hello, I'm learning to Program in C and I have to create a math quiz. The user is supposed to enter the amount of questions they want to answer. I'm trying to get a Random number generator to produce two random numbers and then a random sign (+ - * …

Member Avatar for WaltP
0
109
Member Avatar for bhaltulpule

Hi ! I am new to C. I am developing C for an Assembly and C combined code for a project. I need to display simple messages to the Hyper terminal using C. To be specific, (See attached snippet of code which I am trying to run on Keil toolset) …

Member Avatar for Narue
0
209
Member Avatar for alsoumhi

Hi gys how are you, I really need your help to understand the idea for putting some parameters with main function, it is like this ( int main ( int a , int b , char* c) ) what is this and when we use it and how!!! ... I …

Member Avatar for Narue
0
261

The End.