15,552 Topics

Member Avatar for
Member Avatar for dats

I need help ... I think I know what I'm doing one min. then the next I'm lost :o . Please help ... #include <stdlib.h> #include <conio.h> #include <stdio.h> #define SIZE 5 void quickSort(int[], int ); void q_sort(int[], int, int ) ; // ***** Main program ***** int main(void) { …

Member Avatar for dats
0
88
Member Avatar for Robin Low

I'm a fresh in writting C program... still learning n hav struggling with it~~ could anyone give me some hints to complete it? -------------------------------------------------------------------------- Create an application, which helps manage the in-course assessments of an intake in COLLEGE X. This program is meant for lecturers to key-in and view, the …

Member Avatar for Narue
0
144
Member Avatar for wonderboyshp

I am programming a robot, and I was wondering if there was code to cause the robot to stop whatever it was doing if a bumper was activated. Right now I am using a while loop but the combination of the slow processor, fast motors and complex functions executed while …

Member Avatar for wonderboyshp
0
237
Member Avatar for ravi_techinc

Respected Sir, I request you to tell me the program for restarting the computer system by using C program.

Member Avatar for Narue
0
93
Member Avatar for WrEcK

heres a problem for u write a program that reads a list of integers from the keyboard and closes the following: a. Finds and prints the sum and the average of the integers b. Finds and prints the largest and the smallest of the integers c. Prints a message if …

Member Avatar for WrEcK
0
145
Member Avatar for dusan83

hi, i have to read from emulated FAT12 and write to real FAT file system.. a have read something about FAT(e.g. here [url]http://home.freeuk.net/foxy2k/disk/disk1.htm[/url] but I realy don't know how to implement it... if you have some source code please give me some link or send me an email pleeeeaaassseee...... or …

0
86
Member Avatar for stoov

I'm wondering if there's any sort of interpolating function in C. I'm trying to rewrite a MATLAB script in C. I saw the name interp somewhere but i haven't been able to find a full description of the function. thanks

Member Avatar for Narue
0
95
Member Avatar for idr1978

Quick question: I have a 2-D array called Training[693][19] of characters 0, 1 or 2 (yes characters, not integers). I'm trying to run an IF statement similar to this: if (strcmp(Training[0][0], "1")==0) { printf ("Successful case \n "); } BUT, apparently the IF statement is wrong. I'm trying to determine …

Member Avatar for idr1978
0
132
Member Avatar for Stack Overflow

Greetings, Pointers are facile, yet confusing. Thinking in the programming world isn’t easy, and comprehending everything read, intricate. This tutorial leads from the previous, which may clarify many doubts in the previous segment. You have learned most, if not all, of the basics pertaining pointers in the previous tutorial. Here, …

Member Avatar for Dave Sinkula
0
255
Member Avatar for jaeSun

is there a generic way of outputing to the screen (or maybe file) a tree? i have a programmng assignment of which i have to choose 1 out of 4 possibilites for my HTML Web Design class .... 1 of them that im thinking is taking a html file (that …

Member Avatar for Narue
0
91
Member Avatar for five2nd

i am doing the table,searching and sorting using 2d arrays with my understanding. So the coding that i make it, its too long. Anyone there know how to make it simple...especially to make it a table structure in 2d arrays.. tq

0
80
Member Avatar for wangstarr

Hi, I seem to have erased one of my .cpp files and I only have the .exe file left.. Is there any way to convert my .exe file back to a .cpp file ? Thanks.

Member Avatar for Narue
0
73
Member Avatar for dalaharp

hi, i am writing an image into an array. well i want to know the difference of having this command 'fprintf(fp1,"\n");' in the following code.. fp1=fopen("f16.raw","w"); for(m=0;m<100;m++) { for(n=0;n<100;n++) { fprintf(fp1,"%c",i[m][n]); } fprintf(fp1,"\n"); :?: } fclose(fp1); how does the statement change the process :?:

Member Avatar for Narue
0
97
Member Avatar for kimimaro
Member Avatar for Narue
0
75
Member Avatar for Dark_Omen

Hi, I am new to programming. The program I made reads a list of points from a text file. Then it finds the standard deviation and how many sets of points are in the file. Now I want to find the highest x value from the list and the highest …

Member Avatar for Dark_Omen
-1
193
Member Avatar for kimimaro

Yo guys, I am doing a function to display selections of department for the user to input and if the department is chosen, it will then match the department with the department in the database allowing only employees within that department to be displayed, but the employees can be as …

Member Avatar for frrossk
0
159
Member Avatar for wonnydonny

I have to write a program that reads in from a data file. Then, it is supposed to pick out the words of a certain length. Once it finds these words, it places the words in two lists. One lists contains the words and the number of occurrences sorted alphabetically, …

Member Avatar for wonnydonny
0
79
Member Avatar for motswana

PLEASE HELP ME, I WANT TO WRITE A C PROGRAM TO EMULATE THE Is -L -A -F UNIX COMMAND THAT WILL DISPLAY ALL FILES IN THE CURRENT DIRECTORY INCLUDING INVISIBLE FILES, THEIR ACCESS PRIVILEGES, AS WELL AS IDENTIFYING WHICH ARE FILES AND WHICH ARE SUB-DIRECTORIES. but i dont want to …

Member Avatar for jaeSun
0
155
Member Avatar for jifiii

Here is my code I am trying to figure out what is wrong with it, can anybody help me. [code] #include <stdio.h> #include <stdlib.h> #include <string.h> int GetBuffer(char* buffer[]); int ParseArgs(int argc, char* argv[], int* canonical); main(int argc, char* argv[]) { int canonical=0; //If it is true, print the ascii …

Member Avatar for Narue
0
124
Member Avatar for Alfy

[code] int ans, guess, random, type, counter, num, i; char option[20], numb[10], input[5]; int power(int num) { ans=2; if(num==0) { return(1); } if(num<0) { printf("incorrect input, please input a positive integer:"); return(0); } else for(i=1; i!=num; i++) { return(ans=ans*2); } return(0); } int main() { /*before this there is all …

Member Avatar for kunal_ktr
0
155
Member Avatar for jifiii

Hello, I am in a C+ programming class at my college where I am at, and for one fo my labs I have to create a program similar to hexdump of linux, I can do everything it asks me to do, but I can't figure out how to do the …

Member Avatar for Narue
0
188
Member Avatar for Dark_Omen

Hello, I need help trying to make a MP3 Player. I want to program a pic microcontroller to be able to do this. This is a hard project that I am trying, where do I begin? I want to program it in c since I am familiar with it. Thank …

Member Avatar for Dark_Omen
0
70
Member Avatar for jaeSun

man, this might be hard for me to get across the question i have .... i have this project that requires using semaphores to do a project. (i have it attached). i am just looking for help on how to start it, or whatever. im just trying to understand where …

0
75
Member Avatar for sweety engineer

hello every body iam very lucky and happy to be here iam very very happy and iam really need this site because iam studying comp. eng. and i have some problems, i hope and i think you will help:) my ques. here is how I write aprogram that read a …

Member Avatar for Dani
0
212
Member Avatar for hamsa

i have a error in two dimentional array.when i executing the program in middle of the array it will show the one garbage value.

Member Avatar for frrossk
0
78
Member Avatar for mar666

i am just doing the finishing on my project and i was wondering if anyone can help me, i cant figure out how to line up the output at the decimal place. i know it is something to do with the " %.2lf " in the printf statement but i …

Member Avatar for frrossk
0
87
Member Avatar for unicorn7

ok-ive been looking at this program for 2 hrs,trying to get it to compile with vi. no luck. im a beginning student with c programming. int sum -0, x-1 sum +=x; sum = sum + 5%2 printf("The sum is %d/\n",sum); ---------------------------------------------------------------- #include <stdio.h> /* int main(void) { int sum = …

Member Avatar for frrossk
-1
69
Member Avatar for mar666

Hello, i have a question, im in first year university and i have to add Long term benefits to my program, here is the function that i have to add Long term benefits are charged at $2 per every full $100 of gross weekly earnings to a max of $100 …

Member Avatar for mar666
0
60
Member Avatar for rmerchan

I need to write a function that opens a DAT file and calculates the average number of characters per line. Heres what I have so far... [code] # include <stdio.h> int main (void) { FILE *fp; int i; int counter; char ch; fp =fopen("TEST.DAT", "r"); for (i = 1; i …

Member Avatar for Chainsaw
0
103
Member Avatar for ray96

Hi all, please bear with me, as I don't fully know all of the C language, nor it's concepts. But here is my question: Can you use a picturebox in C? I'm not talking about a standard image here, I'm talking about the picture box you can [B][I][U]draw[/U][/I][/B] images in. …

0
83

The End.