15,539 Topics

Member Avatar for
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
190
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
157
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
151
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
121
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
152
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
185
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
206
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
85
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
68
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
59
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
102
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
82
Member Avatar for pro2105p

Hi, I am new in OS programming and I need some links for newbie OS programming. With detailed explanation of syscalls (I don’t ask for ready code , just explanation and some example code if exist ) I try google but I didn’t found match things (nothing for a newbie …

0
57
Member Avatar for boshkash1986

Please i want the code of the function which could get the serial number of the Hard-disk of any computer Please Can anyone help ?

Member Avatar for vegaseat
0
108
Member Avatar for neeraj
Member Avatar for Narue
0
62
Member Avatar for kimimaro

How do you limits employee display where you enter the department for all the employee within that department be displayed and if lets say they are 100 or so and you have to limits 10 employee per page before entering anything to display the next 10 again?

0
71
Member Avatar for coppernicus

Ok Yes I admit it I'm a student with a homework problem but I'm using this forum as a last resort. I've already written the code and I can't find the error no matter how many times I look over it so I really just need a second set of …

Member Avatar for frrossk
0
189
Member Avatar for galmca

hi guys...... i have a problem in writing a program of "how to delete the duplicate elements in an array" for example....if i enter an array like: 10 20 30 40 30 then it should print: 10 20 30 40 so could plz help me out????? :cry: i have attempted …

Member Avatar for alc6379
0
336
Member Avatar for jasweb2002

Hey Everyone, I need to write a program where the first half builds what is basically a file directroy tree. Files and their paths will come in from file in the form... /program/file/whatever ... and be read into a string. Problem is I don't know how to manipulate strings very …

Member Avatar for frrossk
0
94
Member Avatar for beanstalk

Hi... Does anybody know the CYK algorithm? If o plz help me out.. This is basically testing the accetpance of languages....

0
58
Member Avatar for nonconformed

[code] // function prototype - print accepted transactions void transAccepted(ofstream&, int&, string&, int&, float&); // function prototype - print rejected transactions void transRejected(ofstream&, int&, string&, int&, string&); //function call transAccepted(outputFile, count, accept, weight, cost); //function call transRejected(outputFile, count, reject, weight, fill); //prototype header void transAccepted(ofstream &outputFile, int &count, string &accept, …

0
79
Member Avatar for galmca

hi "this program is for adding 2 tables with 3 rows and 4 columns" .... so i have done like this...... #include<stdio.h> #include<conio.h> void main() { int a[3][4],b[3][4],c[3][4]; int i,j; clrscr(); printf("\nENTER AN ARRAY:"); printf("\n\nFIRST TABLE:"); for(i=0;i<3;i++) { for(j=0;j<4;j++) { scanf("%d",&a[i][j]); } } printf("\nENTER AN ARRAY:"); printf("\n\nSECOND TABLE:"); for(i=0;i<3;i++) { …

Member Avatar for galmca
0
102
Member Avatar for mattcplusplus

here is the code: [code] struct Vertex { Vertex(){} Vertex(float x, float y, float z) { _x = x; _y = y; _z = z; } float _x, _y, _z; static const DWORD FVF; }; const DWORD Vertex::FVF = D3DFVF_XYZ; [/code] firstly, does the word static in the struct Vertex …

Member Avatar for mattcplusplus
0
104
Member Avatar for Nyika

I need help writing a for-loop that will achieve the following pattern a certain number of times. In the example below, the number is 4 (determined by the leading | in pattern: *****************| 222222 *****************0 2 ****************0 0 2 ************| 222222 ************0 2 ***********0 0 2 *******| 222222 *******0 2 …

0
73
Member Avatar for beanstalk

:-| Hi I'm new to this daniweb... can anyone suggest me how to implement an ADT tree using pointers...or where i could find the code for it...

0
82

The End.