15,539 Topics
|
|
Write a program that will prompt a user to enter an integer between 2 and 999, inclusive. As output, the program will display all prime integers between 2 and the user-input value. This program will use a process of “cancellation |
|
I just want to print my data to a jpg or bmp control on UI , e.g. i got data: x y 1 20 2 10 3 30 How to print data in JPG or BMP by C? not only can be used in windows, but also can be used … |
|
|
|
Can someone please tell my why the following won't compile? } void main() { I'm pulling my hair out! Kevin |
|
`vector <point> polygon;` this is my prototype for a class called polygon: `polyg & operator=(polyg& pg);//5` here is the directions: > make An overloaded operator = with a reference parameter of type polyg and a return type of reference polyg. > First make sure its not the same object because … |
|
#include <stdio.h> #include <string.h> int i,k,type; char buffer[100],l,line[50]; struct student { char name[20]; int age; int id; }; struct student st[2],temp,*sp; int sort(struct student *p) { *sp=st[0]; p->age; for(i=0; i<l; i++) { if(st[i].age<st[i+1].age) break; else if(st[i].age>st[i+1].age) { temp=st[i]; st[i]=st[i+1]; st[i+1]=temp; }break; } printf("\t\tsorted student information\n--------------------------\n"); printf("%d",st[i].age); return(0); } int main() … |
|
it's really frustrating to be looking in my textbook and see something like [CODE]void apd(vector& a, int j, int n) for (j = vector[a]; n > j; j--) j++; [/CODE] I would change it to something like [code] void functionName(vector& theArray, int position, n target) [/code] that way I know … |
|
hi I am trying to write a simple cat program in C but am getting very confused. I thought i knew where to start but I dont. the assignment says: You will be writing a simple version of the program "cat". It must accept as arguments any number fo filenames. … |
|
This is my project: Read the data one line at a time and store them in two different arrays. Pass the first array to a function that sorts the array in ascending order using selection sort. Pass the second array to a function that sorts the array in descending order … |
|
i'm try to do a fingerprint verififcation system with minutiae matching, function include threshold, thinning, and ridge detect. can any1 help and giving sample code?? |
|
im studying programing fundamentals. I dont know what is the commands and syntax of c language..can u give me some information and tutorials about this c language....coz, i can't find any website about c language, is there any tips on creating basic programs..thnks!!!!! |
|
The program I'm writing has an opening screen explaining what it does. I need to display the square root symbol to show the equation the program is using and I have no idea how to. Could someone explain how to |
|
I have a weird situation. Suppose a string will be entered as an input. using the getchar() function i count the number of characters the string contains until a new line character is encountered. So i know the size of the string. And then i try to allocate enough memory … |
|
i have been asked to write a program to detect 3 classes of virus and remove them in any language of my choice but i do not have an idea how to do this and would much appreciate if some one please advise me!!!! |
|
here is the class i am using, and my main program that i have started-i need to use the LltC class as u can see-i keep gettin an error sayin list1 undeclared identifier-somebody please help-thanks |
|
ok, im trying to figure out this simultaneous process assignment ... i got it finished, runs fine for the most part, but 2 of the processes dont process.... the code: [code] #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> int numof_bridgecars = 0; int northID, southID; //semaphore declarations sem_t north_s, … |
|
COMP 1105 – Computer Programming I Semester 1 2004-5 1 Assignment 2 (10 %) Weather Prediction System Early detection of hazardous conditions, such as hurricanes (as you might have experienced recently) is important to save lives and property. Using a simplified version of the formulas typically used, the aim of … |
|
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 :?: |
The End.