19,876 Topics

Member Avatar for
Member Avatar for rmerchan

When I try to scan in the selection the program will not then let me scan in the string to encrypt. If i take the selection function out then the program does exactly what it is suppose to do. Any help would be great. Thanks alot Ryan [code] # include<stdio.h> …

-1
73
Member Avatar for nowmn
Member Avatar for anderton

The program to be done; > Team Wins Losses Ties PF PA +/- > Blue 0 0 0 0 0 0 > White 0 0 0 0 0 0 > Red 0 0 0 0 0 0 > Black 0 0 0 0 0 0 > Green 0 0 0 …

Member Avatar for jwenting
-1
79
Member Avatar for muraya

Hi, guy how do I generate a code to print all combinations of a 4 digit code betwwen 1 and 13

Member Avatar for harshchandra
0
116
Member Avatar for Moo The Cow

Hi, this is the first time that I've used C. Anyway, I downloaded a C compiler (dev-C++), and I typed in this: #include <stdio.h> main() { printf("Hello, world!\n"); return 0; } When I run the program, it doesn't print the "Hello, world!", but I just see a dos window quickly …

Member Avatar for harshchandra
0
156
Member Avatar for Asif_NSU

I want to take integer inputs separated by spaces and terminated by newline character. suppose the user will be inserting integers this way 123 566 789 45 34 8999 341 57 67 and then the user presses enter. so the program will read all the integers when the user presses …

Member Avatar for Asif_NSU
0
165
Member Avatar for walljoshua

I have a program that outputs the first 30 numbers of the fibonacci sequence. My declaration to hold the integers works and the loop to calculate them works but I am trying to output them 5 elements per line with a field width of 10. I have the field width …

Member Avatar for big146
0
108
Member Avatar for loveboy23

can anyone explain this programing codes? proc1.c #include <stdio.h> int main() { int fork_return; fork_return = fork(); printf("PID=%d, PPID=%d, fork_return=%d\n", getpid(), getppid (), fork_return); sleep(10); /* wait for 10 sec */ return 0; } proc2.c #inlcude <stdio.h> int main() { int chpid=fork(); if (chpid < 0) { printf("ERROR\n"); exit(1); } …

Member Avatar for vegaseat
-1
116
Member Avatar for gagaouz

Write a program that will read the file, Address.txt, which I have provided. It contains names and numbers with no spaces between. Write the same data to a new file with the numbers right justified in 12 spaces and with 3 decimals. (file): Pete Moss25.33 Sara Bellum78.45 Harry Legg 76 …

Member Avatar for alc6379
0
100
Member Avatar for jifiii

I am trying to make a command line calculator, and I made up a partial code for it, just for adding numbers, I am jsut taking it one step at a time. But I am suppose a number then a space then the math function then a space then the …

Member Avatar for Dave Sinkula
0
127
Member Avatar for AussieBob

I want to create labels from strings in the following manner: for(j = 0; j < 5; j++){ for(i = 0; i < 5; i++){ myLabel->Caption = CHAR(j + 65) + (i + 1); } } This is to give me A1, A2, A3, A4, A5 B1, B2, B3, B4, …

Member Avatar for Dave Sinkula
0
93
Member Avatar for JoBe

Hello ladies and gents, I have tried to write my sorting function but keep on getting error messages. Ive been reading the tutorials on this forum wich explaines alot but I'm still having lots of trouble in comprehending how pointers work and more important, how that I can correctly write …

Member Avatar for Dave Sinkula
0
431
Member Avatar for Asif_NSU

I need to add a recursive function, called [B]findaverage()[/B] into BST class that takes as input the root of the BST and returns the average of the entire integer items stored in that BST of integers. Plz help me with this function especially without using any static variables.

Member Avatar for Asif_NSU
0
2K
Member Avatar for nowmn

sorry my bad english and maybe if u can write this source so give me ? (use a stack and tree) :cool:

Member Avatar for alc6379
0
90
Member Avatar for liliafan

Hi guys It has been quite a long time since my last post, but I am having some very weird behaviour on a program I am writing and I was hoping to get a little community feedback ;) I am writing a class that basically opens a pipe to ksh …

Member Avatar for liliafan
0
885
Member Avatar for mattcplusplus

Hi i need an explanation of the following array declaration: GLfloat colours[][3] Why are the square brackets empty, does it imply a default value? so it has say 1 row and three columns? Thanxfor your help in advance it is much appreciated

Member Avatar for Chainsaw
0
159
Member Avatar for harshchandra

In easy to understand language can someone explain the premise behind Big O notation ? :rolleyes:

Member Avatar for Jpowers22
0
138
Member Avatar for jifiii

I got a question one of my friends asked me to make a program that you type in the number 1-27 on the command line, and get the corresponding letter for it. Like if you enter 1 as the arguement you would get an A as an output, and if …

Member Avatar for harshchandra
0
113
Member Avatar for Alfy

[code] struct student { char name[20]; int age; int id; }; struct student *sp, st[3],temp ; void sort(struct student *p) { *sp=st[0]; p->age; for(i=0; i<3; i++) { if(st[i].age<st[i+1].age) continue; else if(st[i].age>st[i+1].age) { temp=st[i]; st[i]=st[i+1]; st[i+1]=temp; }break; } } /* switch case junk */ case 1: /* sort by age */ …

Member Avatar for Alfy
0
147
Member Avatar for naya

[COLOR=DarkSlateBlue]undefined[/COLOR] hi, i m naya.i m student of telecommunicatin engineering.i have a lot problems in "C PROGRAMMING".plz tell me the codes to find max,min values....to print factorial of a number...how copy an array to other.....to print tables of numbers....n how to swaps in array.. plz they all codes should be …

Member Avatar for harshchandra
0
123
Member Avatar for missy

how do you convert to binary. i have to write a program that will prompt the user to enter an unlimited(user defined) number positive intergers, the program will convert each positive interger(base 10 value) into its equivalent binary representation and displat each conversation. to exit the program, the user is …

Member Avatar for Narue
0
117
Member Avatar for dcving

[COLOR=Red]How do I get the student names in all lowercase chars except the first letter which is capitalized?[/COLOR] [code] #include <fstream> #include <stdlib.h> #include <time.h> using namespace std; int main() { // Step 1: Declare ofstream OutFile; int NumStudents; int NumChar; int NewScore; char NewChar; // Step 2: Initialize OutFile.open("C:/Scores.dat"); …

Member Avatar for Chainsaw
0
118
Member Avatar for rishiraj_bayerd

Hi all, i want to read a dat file (vedio file) by a C program. But how it possible ? Help me with some basic tutorial. I am waiting for reply. Thanking you... regards rishi

Member Avatar for jwenting
0
72
Member Avatar for idr1978

Can anyone help? Instead of outputting the decimal 1.75, C outputs 7/4 as 1.0000. I very much need to obtain the exact decimal product of integer ratios to 2 decimal places and then compare it to another decimal number. For example, if (7/4 > 1.25) printf("Yes\n"); else printf("No\n"); --> So …

Member Avatar for idr1978
0
146
Member Avatar for Gingras_Man

These two programs: I would like to combine them. I wish to have an image shown under one of the menu choices. :D

Member Avatar for Gingras_Man
0
45
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
146
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
103
Member Avatar for jcr1
Member Avatar for alc6379
0
464
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
178
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
100
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
174
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
162
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 Young Teck 06

I need some help, what would everybody out there recommend for a C++ Compiler. I am thinking about paying $110 for Visual C++ "Standard". Does anybody know if this software is great and what are the best features of it. Other recommendations are also welcome.

Member Avatar for vegaseat
0
371
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
103
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
100
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
178
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
90
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
78
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
142
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
84
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
96
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
93
Member Avatar for airshot

My C drive thinks it is called C:\Documents and Settings\Mike Swindlehurst> can anyone tell me why?

Member Avatar for alc6379
0
103
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
153
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
238
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
96
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
148
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
88

The End.