199,114 Archived Topics
Remove Filter ![]() | |
Greetings. I've done a search regarding the above subject. I came across this page: [URL=http://www.devx.com/vb2themax/Tip/19230]CreateFileAssociation[/URL] I'm on my way in developing a desktop application and I need to implement my own file format to store data in the way I want it to be. I'm quite uncertain as to how … | |
I am making a VB.NET web application in VS.NET 2003. I am using streamreader to access a text file for reading. I am able to access it without any problems using the full path (ie. C:\Inetpub\wwwroot\<projectname>\bin\file.txt). But I want to use a relative path (ie. .\file.txt). If I use something … | |
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 … | |
Hi, I'm working an a project that must take a text file (provided to us, in.txt) that has the scores of students from different sections on different labs. You can view the assignment page at: [url]http://www.cs.wmich.edu/~nelson/CS111FALL04/lab06/index.htm[/url]. The problem I'm having is that I can't think of how to make a … | |
[QUOTE]I am having two problems with this code. #1) The user is to enter a three digit number for their employee ID. No problem there. But if the user enters a negative number, such as -1 the program is to end and display the total payroll for the month, total … | |
hai can anyone please tell me whether it is possible to make graphics work in borland c++? thanks Tresa | |
I learn faster when i have a motive to learn. Well if i have a project that uses all of the tutorial i use, i will be motivated to read sections and use it and make a full on project. I use [url]http://www.cplusplus.com/doc/tutorial/[/url]. If anyone can conjure up a HUGE … | |
Hi, I just wanted to ask if someone could give me a name of a good book in wich the mathematical formulas are written down with some explanation about them :?: Reason I ask is, I'm going to evening school to learn C++ but in using C++ I encounter very … | |
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 … | |
I am writing a program in java for the Shortest Job First Scheduling , have generate the Process ID and Process Time separately but i have to put both in an array and would like someone to help me please. | |
I dont know what they mean by undetermined character constant [code] #include <iostream.h> #include <stdlib.h> class student { char st_name[25]; char st_major[25]; int i_test1; int i_test2; int i_test3; int i_average; char ch_grade; char ch_option; public: void getdata(); void processdata(); void putdata(); }; int main() { do{ student.getdata(); student.processdata(); student.putdata(); cout … | |
[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 … | |
My task is to code an applet that should take 2 fractions and either add, subtract, multiply, or divide them (depending on which JButton the user uses). Then, the fraction is to be converted to lowest terms. Also the fractions will be entered in in terms of 2/5 for "two-fifths". … | |
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 … | |
I was recently given a list of possible C++ interview questions by a recruiter for a firm on Wall St. One of the questions was: [b] How would you generate a compile time error if the sizeof(int) is not equal to 4? [/b] I was thinking along the lines of … | |
Hey, I have a USB barcode scanner and would like to make a php based program to interface with it. How can I read from the USB port using php (Mac OSX). thanks Dan | |
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 … | |
Hello I know this is not good code, but i was wondering why dubble delete gives an error (not an exception!!) and dubble free doesn't?? If new/delete works like malloc/free. Is the error caused by the destructor?? and if so why??? [code] Integer *m = (Integer*)malloc(sizeof(*m)); free(m); free(m); Integer *m … | |
hi my name is KEO and i need help with my programming project my project states that to write a program that requests taxable income and calculates federal income tax. Use sub procedure for the input and a fucnction for procedure to calculate the tax. they given me a table … | |
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 … | |
Hi..this is a program to find if the no. is prime and to find the factorial of a given no. i have validated this program ..so that it gives an error message and [U]exits[/U] when negative nos. or zero are given as input. Instead of exit..i want to display the … | |
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 … | |
hai friendz, I am a Bioinformatics Masters degree student. I am doing my final semester project in the topic Molecular Docking on C++ in Linux platform. During the programming I felt a problem in calling/executing a progam in to my program. I have to call a program which accept a … | |
I am very, very new to this whole php thing, so i am sorry for being so dumb, i am trying to learn, and i am going crazy! I am trying to get several scripts working but keep getting similar errors for them.. looks something like this Warning: Division by … | |
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 … | |
How can i declare an array with variable size? i dont want it to be dynamic array, it have to be static. I mean the following: [code] int size; cin>>size; float array[size]; [/code] the previous code when compiled gives me that a constant expression required for the array declaration, although … | |
I can't seem to get this code to displayEmployeeInfo if the user enters a negative number for ID. Also I can't seem to get a total of all wages to display. Any helpful hints would be greatly appreciated. Thank you! [code] #include <iostream> #include <iomanip> using namespace std; #include <string> … | |
Hi all, when does the memory gets allocated to the function i.e. at compile time or at run time. If its at compile time the how is it? Thanks Tushar | |
[code] #include <stdio.h> int i,type; int buffer[100],line[50]; struct student { char name[20]; int age; int id; }; struct student students[3]; int main() { for(i=0;i<3;i++) { printf("please enter your name:\n"); fgets(students[i].name,sizeof(students[i].name),stdin); printf("please enter your age:\n"); fgets(buffer,sizeof(buffer),stdin); sscanf(buffer,"%d",&students[i].age); printf("please enter your id:\n"); fgets(buffer,sizeof(buffer),stdin); sscanf(buffer,"%d",&students[i].id); } while(1) { int *ptr=students; printf("Please enter the … | |
Hi all, This is my first post and first attempt at PHP so sorry if this sounds daft. I'm about a fifth of the way through the php bible and a quarter through php/mysql for dummies, so it can only get better. Anyway I'm getting this error when I try … | |
I found this neat little GUI calculator program on the net. It uses a function called _gcvt(double val,int limit,string cBuf), which seems to be used to convert a double val to a string cBuf, with some formatting and limiting. I replaced it with sprintf(), but the output looks rather crude … | |
[code] #include <iostream.h> #include <string.h> #include <stdlib.h> #include <iomanip.h> class hope { char st_title[25]; char st_website[35]; char st_star[25]; char st_maker[25]; char st_rating[5]; int i_minutes; int i_year; float f_cost; int i_age; char st_status[6]; char st_response[20]; char ch_option; void getdata(); void processdata(); void putdata(); public: void run(); }dvd; void main() { char … | |
[B]I need some help finding a windows tutorial for C, not C++.[/B] (I am trying to learn C, compile about fifty pages of reference notes on it, and THEN learn C++. That way I dont have to worry about mixing things up, I will have notes and can forget about … | |
need help my program has a table and when progrm run , if for any reasen the power went off i missed last records that i post to table any body can tell me what can i do? :!: | |
I'm writing a program that reads a text file and puts it into an array of structs. There can only be one transaction per line in this format: custNumber firstName lastName numItemsPurchased amtSpent What I dont understand is how do you put the data in the file into an array … | |
hi, i am new in java, pls anyone help me to find out the error of my code. 1)Q- Write a java program which implements a simple sequential search algorithm for finding the position of a number in an array. My code is : [code] public class linearsearch { public … | |
Im new to PHP so please be gentle... Im trying to make a script that allows a user to enter a user name and pass, but no path, the path should be hidden from the user. I want them to only be able to view whats in the folder I … | |
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 ? | |
hi guys, Below is my program and it is giving me turf time.I want it to read-in 1-for counting cars,2-for counting money and Esc-key for displaying totals.Pliz give me ideas.(i'm using Microsoft-visual c++) [code] #include <iostream> using namespace std; #include <conio.h> class tollBooth { private: unsigned int cars; double money; … | |
I was just thinking if it is possible to determine ones own ip address with the help of C++???Can someone please clear this query of mine | |
Hi there. Im new to C++ programming, but I know my way around Delphi. I'm doing a project that must be made in Borland C++ Builder. My problem is right aligning items in TListBox and TComboBox. Any help would be appreciated. kv.TSverrir | |
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 … | |
I've been working on this for hours I know the errors are staring me in the face but I just can't see them. Any help would be greatly appreciated. //prb01-1.cpp //This program calculates the total surface area of a pool #include <iostream.h> #include<iomanip.h> //using namespace std: int main() { const … | |
Need a bit of help formatting my output. I'm not even sure that this can be done. The output from the following code looks like this: Here is your output! ******************** rval = 0.954316 tval = 9.03351 p = 0.999997 Two tailed value = 5.716140e-006 Ok is there anyway I … | |
Where can i find more info about the inner implementation of new/delete?? There is a lot of info about the different kinds of malloc but i can't find anything about new/delete. IS this compiler specific or defined by the standard?? thx in advance | |
HI I'm very new to java. I have multiple JTextfields(about 11) on my JFrame. They are arranged in 1 column down my Frame. I would like to know how to move from the first JTextfield to the JTextfield of my choice(eg.It must move from 1st JTextfiled to the 5th JTextfield … | |
I am a beginer of PHP. Which Version of apache is compatible with php 5.0?? which one for php 4.0?? I want to setup manually php for apache both of these versions. How can i proceed?? :-| | |
[code] // PROGRAM TO FIND THE NEXT DATE OF A GIVEN DATE #include<iostream.h> #include<conio.h> class udate { int day, month, year; public: void read() { cin>>day>>month>>year; } void write() { cout<<day<<"/"<<month<<"/"<<year; } friend int valid(udate); void operator++(); }; int valid(update D) { int d = D.day; int m = D.month; … |
The End.