199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for red_evolve

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 …

Member Avatar for red_evolve
0
281
Member Avatar for Tengu

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 …

Member Avatar for Tengu
0
919
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
82
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
159
Member Avatar for skamen

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 …

Member Avatar for skamen
0
134
Member Avatar for hill0ster

[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 …

Member Avatar for alc6379
0
152
Member Avatar for Tresa

hai can anyone please tell me whether it is possible to make graphics work in borland c++? thanks Tresa

Member Avatar for Narue
0
119
Member Avatar for N3wbi3C0d3r

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 …

Member Avatar for N3wbi3C0d3r
0
139
Member Avatar for JoBe

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 …

Member Avatar for JoBe
0
399
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
131
Member Avatar for usha

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.

Member Avatar for usha
0
170
Member Avatar for hopeolicious

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 …

Member Avatar for vegaseat
0
283
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
157
Member Avatar for skygod

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". …

Member Avatar for skygod
0
187
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
191
Member Avatar for mdos

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 …

Member Avatar for Narue
0
371
Member Avatar for rudysplif

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

Member Avatar for fpepito
0
304
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
215
Member Avatar for onsbomma

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 …

Member Avatar for Narue
0
132
Member Avatar for KEO

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 …

0
105
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
90
Member Avatar for sweety

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 …

Member Avatar for sweety
0
89
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
63
Member Avatar for rajistephen

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 …

Member Avatar for rajistephen
0
112
Member Avatar for aphex23

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 …

Member Avatar for aphex23
0
134
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
106
Member Avatar for Flawless

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 …

Member Avatar for Chainsaw
0
142
Member Avatar for hill0ster

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> …

Member Avatar for Chainsaw
0
137
Member Avatar for tushark

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

Member Avatar for Chainsaw
0
126
Member Avatar for Alfy

[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 …

Member Avatar for Narue
0
147
Member Avatar for andyseaton2003

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 …

Member Avatar for billah_norm
0
127
Member Avatar for vegaseat

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 …

Member Avatar for vegaseat
0
301
Member Avatar for hopeolicious

[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 …

Member Avatar for Narue
0
168
Member Avatar for mister-fett

[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 …

Member Avatar for mister-fett
0
138
Member Avatar for Behzad Oskooi

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? :!:

Member Avatar for Behzad Oskooi
0
187
Member Avatar for Nneedofhelp

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 …

Member Avatar for Nneedofhelp
0
127
Member Avatar for shantuli

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 …

Member Avatar for Narue
0
149
Member Avatar for kamui

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 …

Member Avatar for kamui
0
126
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
116
Member Avatar for ze_viru$

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; …

Member Avatar for Narue
0
139
Member Avatar for jigvesh

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

Member Avatar for alc6379
0
118
Member Avatar for tsverrir

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

Member Avatar for vegaseat
0
234
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
192
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
352
Member Avatar for lost_c++_dude

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 …

Member Avatar for frrossk
0
422
Member Avatar for coolmel55

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 …

0
148
Member Avatar for onsbomma

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

Member Avatar for onsbomma
0
383
Member Avatar for bsunkel

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 …

Member Avatar for bsunkel
0
107
Member Avatar for billah_norm

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?? :-|

Member Avatar for chunguy
0
347
Member Avatar for sweety

[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; …

Member Avatar for Stack Overflow
0
195

The End.