15,552 Topics
| |
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) { … | |
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 … | |
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 … | |
Respected Sir, I request you to tell me the program for restarting the computer system by using C program. | |
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 … | |
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 … | |
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 | |
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 … | |
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, … | |
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 … | |
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 | |
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. | |
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 :?: | |
How many ways are there to exit your prgoram using a pure C language? | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 = … | |
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 … | |
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 … | |
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. … |
The End.