19,876 Topics
![]() | |
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 :?: | |
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... | |
This is what I have so far, but I must incorporate the fgets, strtok, and strlen, to meet my professors requirements. [code] #include "stdio.h" #include "string.h" main() { char word[40], latin[40], temp[40], vowels[6] = "aeiou"; char *foundat, *i, *j; int where; printf("Enter a word\n"); gets(word); foundat = '\0'; i = … | |
Im writing a program that when given a date in the form of mm/dd/yyyy will calculate how old the person is in years... right now im stuck at getting the data as i cant figure out how to separate the data when it's entered in mm/dd/yyyy format... any suggestions? | |
I was wondering if anyone here knew, or could tell me where to find out....how much (estimated) would it cost me to get a professional software company who specializes in custom software to make me a piece of software (Chat program) with the following capabilities and specs: - Sign on … | |
I'm trying to understand how to write a function to fill an array of strings using gets(array_name[i]),i being the row index. Ihave no clue how to even start this I have created a driver that declares a 2-D array that is a list of strings with one string per row. … | |
hey buddies, plz help me in getting a new project idea for my college project...i wanna do sumthg with oracle at the backend of the dbase and asp.net in the front end...any senoirs or peers or even juniors have any good idea??? plz lemme know !!! | |
I have been given an assignment to calculate complex numbers being, added, multiplied, divided and subtracted however it is much more advance than the first assignment i was given, to calculate the surface area and volume of a rectangle. I don't even know where to start on this one as … | |
below is what im talking about: int d3d::EnterMsgLoop( bool (*ptr_display)(float timeDelta) ); i don't understand the bool (*ptr_display)(float timeDelta) bit i think its a function pointer parameter type, so that it must point to a function that returns a value of type bool, and it must contain a single parameter … | |
i've referred a couple of datastructure books and both give different definitions for width of a binary tree. one says its the no of nodes at a level,while another says its the longest path that can be traversed in a binary tree. can any one help me with a recursive … | |
:rolleyes: This is a program where the user enters how much they owe, then they enter how much they are gonna pay, like (30 dollars for a $25.63 amount), and their change is calculated back to them in ten dollar bills, five dollar bills, one dollar bills, quarters, dimes, nickels, … | |
hi below is my save function that is used to placed data from the C program to a text file for future usage. [code] [COLOR=Blue]void save() { FILE *save; int i = 0; save=fopen("employeerecord.txt", "a+"); do { if(strcmp(record[i].ID, "")!=0) { if(i!=0) fprintf(save, "\n"); fprintf(save, "%s %s %s %s %s ", … | |
Hi I got one assignment to submit within 2 days.I am suppose to build scanner(lexicle analyser) in c,which will take input from standard input stream and print its class. for example if I input + it will displya "plus",- "minus" I have to run this program in unix environment. program … | |
Everybody, post your very first C++ code up here if you still have it, heres mines with help from the book I am reading and Narue for the help of keeping the window open, thanks pal. [CODE] // // Program to convert temperature from Celsius degree // units into Fahrenheit … | |
Can someone out there help me with this prog. ?? I have been trying to get this for the past 2 weeks !! The question is: Write a program to input an array having n integers. Display the array. Input a number x. Perform the following functions: 1)Delete all the … |
The End.