15,539 Topics
|
|
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. … |
|
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 … |
|
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 ? |
|
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? |
|
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 … |
|
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 … |
|
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 … |
|
Hi... Does anybody know the CYK algorithm? If o plz help me out.. This is basically testing the accetpance of languages.... |
|
[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, … |
|
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++) { … |
|
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 … |
|
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 … |
|
:-| 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... |
The End.