15,539 Topics

Member Avatar for
Member Avatar for missy

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

Member Avatar for Narue
0
141
Member Avatar for see_moonlight

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 …

Member Avatar for frrossk
0
100
Member Avatar for jcr1
Member Avatar for alc6379
0
460
Member Avatar for Domainstop

Can someone please tell my why the following won't compile? } void main() { I'm pulling my hair out! Kevin

Member Avatar for Tresa
0
176
Member Avatar for monicaden

`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 …

Member Avatar for Narue
0
95
Member Avatar for Alfy

#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() …

Member Avatar for jwenting
0
164
Member Avatar for SelArom

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 …

Member Avatar for Chainsaw
1
160
Member Avatar for kiki021600

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. …

Member Avatar for Narue
0
1K
Member Avatar for toadie2004

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 …

Member Avatar for jasweb2002
0
99
Member Avatar for winds

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??

Member Avatar for jwenting
0
98
Member Avatar for zack_rage

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!!!!!

Member Avatar for zack_rage
0
173
Member Avatar for Jessicaal2004

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

Member Avatar for Narue
0
86
Member Avatar for Asif_NSU

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 …

Member Avatar for Narue
0
3K
Member Avatar for Programming sta

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!!!!

Member Avatar for jasweb2002
0
76
Member Avatar for souphmars

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

Member Avatar for Narue
0
138
Member Avatar for jaeSun

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, …

0
81
Member Avatar for lizzywebs

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 …

Member Avatar for alc6379
-1
94
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
86
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
134
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
234
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
84
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
130
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
252
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
79
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
72
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
96

The End.