132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sam Lehman

hi, i've got a bit of a roadbump in my work. I need to set all of the money values to have two decimal points on the end, but my current program only adds two places if there are more than one. right now, i am multiplying the value by …

Software Development c++
Member Avatar for Sam Lehman
0
206
Member Avatar for supersonic

I am now trying to add 2 strings together. But I dont understand where my compiler is pulling the reference to an int from. This is my code [code] #include <iostream> using namespace std; class String { char *str; //pointer to character block public: String(); //default constructor String (char *s); …

Software Development c++
Member Avatar for Siersan
0
104
Member Avatar for joejoenyc718

hi guys, i must right this program in c++ as 50% of my final grade and i have no clue how to do it because im a math major and im required to take this course is there anyone who can help me with this real quick pleaseeeee //* Write …

Software Development c c# c++ email
Member Avatar for Khishin
0
141
Member Avatar for seeplusplus

is this program i wrote so far going to store all the data entered by the user correctly?, i dont really understand structures completely yet. i think my cin statements need to store them differently to reference the structure. my code: #include <iostream> int main() { struct students { char …

Software Development c c# c++ data-structure
Member Avatar for Dave Sinkula
0
153
Member Avatar for huckbird

hello everyone please can someone help me. i am trying to help my school produce a voting system so that we can vote for various things using computers but i am only a beginner at visual basic and keep getting compile errors. i have tried and recently been very stressed …

Software Development email visual-basic
Member Avatar for huckbird
0
168
Member Avatar for QTpie

Below is my source code, it won't compile and says that there is a Microsoft Run-Time error (1.#IND), can anyone help me out? Thanks! /*Program: hwassign3.cpp Author: Melissa Hubbard Date: January, 31, 2005 Purpose: This program was designed to take information from a user and perform the quadradic equation Ax^2+Bx+C=0 …

Software Development c++ microsoft
Member Avatar for Dave Sinkula
0
266
Member Avatar for ellas747

I'm having problems. I get the addition part. can somebody help. Here is the code i wrote so far. thanks, [code] #ifndef complex.h #define complex.h class complex { public: complex(); complex(double real, double imaginary); void complex addition(const complex &a); void complex printcomplex(); void complex setcomplexnumber(); private: double realpart, imaginarypart; }; …

Software Development c++
Member Avatar for 1o0oBhP
0
157
Member Avatar for Foxtildawn

I keep getting an error message when i try to run this program. It says he error is located at the cin >> fileName line in the load function. Any help would be great thanks: error C2679: binary '>>' : no operator defined which takes a right-hand operand of type …

Software Development c++
Member Avatar for Narue
0
162
Member Avatar for dallin

I have a Distance Structure that includes Miles, Feet, and Inches. The user inputs these amounts 3 digits for miles, 4 digits for feet and 2 digits for inches. Not all of the time the user will input the full number of digits, when the user doesn't input the full …

Software Development c display
Member Avatar for Dave Sinkula
0
112
Member Avatar for nico

Is there a diffrence between the GetTickCount() and rand() functions ? I read they both are Psuedorandom number generators , I would like to know if there is any diffrence between those two functions , I used rand() once and the output was the same each time the program run …

Software Development c++
Member Avatar for nico
0
587
Member Avatar for jure

hello im trying to make a shell script that "downloads" links and topic that is to the link but i cant make it work. It is supposed to get the urls from a txt file or a file. [code] IFS=`echo -e "\n\r"` for I in `cut -f1 $1` do source=$(echo …

Software Development shell-scripting
Member Avatar for jure
0
151
Member Avatar for kharri5

I have a few problems. I want to read in a .dat file with characters like below: A B C B * D D * J J * * i used a readLine() from a fileReader, and put all of the characters into a char array. Then i want to …

Software Development java
Member Avatar for jwenting
0
93
Member Avatar for pooja sachdev

I am doing a project on sending & retrieving sms via java.pls tell me the source code as i am not able to use AT commands in program.

Software Development java
Member Avatar for jwenting
0
126
Member Avatar for migthyjohn

i have a book to learn c++ and i have a peice of code that they are saying to compile and it is showing an error on line 15. here is the code: // // Program to convert temperature from Celsius degree // units into Fahrenheit degree units: // Fahrenheit …

Software Development c++
Member Avatar for migthyjohn
0
107
Member Avatar for nikkisboricua

i have to create a program for school. here is the question: pizza contains 355 calories per slice. jogging burns off 240 calories per hour. write a program to calculate how long, in hours and minutes, you would have to jog to burn off the pizza that you eat: this …

Software Development pascal
Member Avatar for Jackrabbit
0
157
Member Avatar for dirtyk

Hi I am quite a new programmer and I was just wondering if there's anyone out there who could help me... I need to write a procedure to input a decimal number via a suitable const parameter and output the hexadecimal equivalent to the console window... Now, I can do …

Software Development pascal
Member Avatar for Jackrabbit
0
792
Member Avatar for ahmedsamir

i can not do a multiblying table by pascal in this form 1 2 3 4 5 6 7 8 9 10 11 12 1 1 2 3 4 5 6 7 8 9 ........... 2 2 4 6............................ 3 .............................. 4 ................... 5 . 6 . 7 . 8 …

Software Development pascal
Member Avatar for Jackrabbit
0
338
Member Avatar for {{unknown}}

Hi… Please I Need To Know How can I Display All The Topics Which I Added By Sorting In Option 3? I Programmed The Option (Case3) 3 To Display All Da Topics but I Need To Put Them In Order. Please Can Anyone help me In Adding The Code In …

Software Development c display queue
Member Avatar for {{unknown}}
0
199
Member Avatar for Peter Mugizi

Can somebody help me. I need to convert a programme from Qbasic to Java. Any help is much appreciated. Peter

Software Development java qbasic
0
125
Member Avatar for Yakface

I havent studied C# for about 2 yrs and was recently given this simple problem but I'm a little lost on how to start solving this any help would be great Write a program to grade a set of true/false tests. There are 15 true/false questions. True is represented by …

Software Development c++
Member Avatar for Yakface
0
105
Member Avatar for wildkms725

error reads: body has already been defined for function 'main()' program is as follows: search.h file [code]// display files in a directory #include <stdlib.h> #include <dir.h> #include <dos.h> #include <string.h> #include <iostream.h> #include <fstream.h> ofstream outfile("output.dat",ios::out); class dispfiles { public: int showfiles(void); char allfiles[MAXPATH]; private: char *getdirectory(char *path); char curdir[MAXPATH],temp[3]; …

Software Development c++ display ios
Member Avatar for vegaseat
0
207
Member Avatar for vegaseat

Why are the standard header files in C++ so non-standard? Particularly iostream seems to be the most dialectal. Enough to make the whole language a mess to work with!

Software Development c++
Member Avatar for vegaseat
0
146
Member Avatar for Tresa

can someone please explain to me 1) the difference between getline and gets(). 2) why sometimes when getline is used along with some other cin statements it skips some of the cin statements. :sad: 3)what exactly does the array of structures do? please help me out with this.

Software Development c
Member Avatar for Tresa
0
105
Member Avatar for bcheath_1

I have been using JAVA for a whole two weeks now. I am enrolled in CSC 148 at my local college. I am supposed to write a program that asks the user for his or her age and replies with the day of the week on which he or she …

Software Development java java-swing sql
Member Avatar for jwenting
0
181
Member Avatar for George2

Hello everyone, I am wondering how to remove debug information (for example, System.out or System.err) automatically when I build/compile a Java project? Does Java compiler or build tool has such options when we build/compile a Java application? Thanks in advance, George

Software Development java
Member Avatar for George2
0
160
Member Avatar for George2

Hello everyone, I am wondering how to play sound (for example, .wav, .mp3, etc.) on J2ME platform, especially Foundation profile. Can anyone provide any resources? Thanks in advance, George

Software Development java
Member Avatar for George2
0
128
Member Avatar for Gink

Is it possible to write a java program that connects to a phpBB or another type of message board, logs in with your info, and can post messages or make new topics? I have used google before but i couldnt find any similar apps. What classes would I have to …

Software Development first-post google java phpbb
Member Avatar for paradox814
0
122
Member Avatar for jimFan

Hi all, I tried Visual Basic 6.0 recently and I used it to generate a programme for simple experimental data analysis. The programme runs fine on most machines EXCEPT those in my laboratory. But it must run in lab or otherwise the programme I write is rubbish. What so strange …

Software Development visual-basic windows-xp
Member Avatar for Real-tiner
0
357
Member Avatar for Cherrio

Hi, I'm taking an online C++ class and having some difficulty understanding the assignments. Can someone please look at the code I wrote to ensure validity? I am not asking for the answer just some guidance, I’m totally lost. The assignment is as follow: Write a prg to convert numbers …

Software Development c++
Member Avatar for jwenting
0
137
Member Avatar for Dick

I've done a little simple C++ programming but what I need now is way beyond my capability. I have a PCI soft modem that is not working. See thread under Hardware "search on Dick." I've exhausted all machine ideas to find out why it won't work. I'd like to write …

Software Development c++
Member Avatar for Dick
0
113
Member Avatar for server_crash

I know how to find a directory if I know the full path name of the directory I'm searching for..But, let's say I only know the directory name, and not the full path name..How can I find that directory on a users system? Is there some recursive function or looping …

Software Development java
Member Avatar for jwenting
0
86
Member Avatar for dallin

I'm using the abs() function in a probability calculation using float and int variables however I'm getting error messages. What I'm trying to do is get a decimal answer using abs() but it appears to only accept integer variables? How do I get the abs() to give me a a …

Software Development c
Member Avatar for Acidburn
0
98
Member Avatar for cricket

I am just learning C/C++. My problem is to determine if a character is or isn't within an array then returning an appropriate message to the user. I've only gotten this far using 'strchr' without much success. Any suggestions or help would be appreciated. Should I be using pointers instead …

Software Development c++
Member Avatar for vegaseat
0
163
Member Avatar for Foxtildawn

i get a couple error messages when i try to compile this program...I dont understand how to fix them and i was hoping for some help.....The error messages i get are: error C2146: syntax error : missing ';' before identifier 'inData' error C2501: 'ifstream' : missing storage-class or type specifiers …

Software Development c++ display storage
Member Avatar for Narue
0
191
Member Avatar for sinB

Hi, I use a Borland compiler. How do I colour text (in a DOS enviroment)?

Software Development c++
Member Avatar for vegaseat
0
84
Member Avatar for JadeWolf324

im trying to get together a team of coders to write some applications in VB.NET. i love writing and am new to .NET, but my problem is i cant seem to figure out what to create. i have an idea for a student/Teacher collaboration suite, but the project is over …

Software Development vb.net
Member Avatar for JohnnyKay
0
104
Member Avatar for Foxtildawn

help! im trying to input data from a file into an array. I cant figure it out...this is what i have: inData.open(fileName.c_str()); int i=0; while(inData) { inData >> T[i]; i++; size++; } thanks

Software Development c
Member Avatar for 1o0oBhP
0
113
Member Avatar for MrScruff

Does anyway know of a method which will do this on a vector, or a container which automatically sorts them? Otherwise i might try and use the ascii values. But just wondering what you peeps thought?

Software Development java
Member Avatar for jwenting
0
98
Member Avatar for allomeen

Hi i'm trying to concatenate two char and i keep getting core dumpped: char *user = "name"; char *temp = "USER "; strcat(temp, user); if anybody knows what i'm doing wrong please let me know. Thank u

Software Development c
Member Avatar for Dave Sinkula
0
144
Member Avatar for AQWst

I have a program that reads into a 24 x 24 array from a *.csv file and I want to use the values to do currency conversions based on using a certain array element. I have defined into my main method the logic to read the *.csv file values into …

Software Development java
Member Avatar for AQWst
0
144
Member Avatar for akila

I have a simple program to figure out the single machine precision (epsilon). According to C, float precision is 1.2e-8, but I'm getting the double precision, 2.2e-16. I can't figure out how else to force single precision? [code] void main(void) { float eps = 1.0f; while( eps + 1.0f != …

Software Development c
Member Avatar for murschech
0
154
Member Avatar for ecyarter

I am new to Java but have some C, C++, VB6, and VB.Net. I've written my first GUI and would like to center it on the screen when it starts. Also, I would like to put the cursor in the appropriate input box, depending on a user's choice of radio …

Software Development gui java vb.net
Member Avatar for ecyarter
0
122
Member Avatar for yvonnemo

Hi, I'm having trouble on transfering "input.txt" over to "output.txt" what command shall I use with C++ language? Anyways below is the question I needed to answer on monday, anyway help will be very very appreciated. write a program to compute numeric grades for a course. The course records are …

Software Development c++
Member Avatar for Siersan
0
252
Member Avatar for cameronius

Hello all, i am new to C++ and im writing a little encryption program for fun. It requires the user to enter a 'passkey', which is a string (numbers, and letters). Then the program defines the ASCII value of all of the characters, and places them in the string - …

Software Development c++ encryption
Member Avatar for Siersan
0
293
Member Avatar for H4_Extreme

Hi all..I need urgent help please because I am going to hav my computer science practicals tomorow and i hav to submit my project tomorrow. I hav made a small graphics program. In the program a person chooses any video cassettewhich he wants to buy and after he chooses the …

Software Development c display video
Member Avatar for jwenting
0
125
Member Avatar for crq

STILL trying to figure out how to link files in C++ in a UNIX environment!! i just don't get it. how do i make .o files? what are they for? how do you "link" them with other stuff and "run" them. all i am capable of is g++ somepgm.C and …

Software Development c++ unix
Member Avatar for Dave Sinkula
0
164
Member Avatar for yvonnemo

Hi, I been trying this problem for 2 days and monday 31st is the due date :( I tried to use a while loop but the numbers I get are not even close. What I did on the [B]Enter your code[/B] is the codes below the question [code] //******************************************************************************************** // …

Software Development c++ file-stream
Member Avatar for yvonnemo
0
105
Member Avatar for rpgplyrff8

This is my 1st time working with C++ and im trying to learn the lanuage. I am writing a program that figures out the total sales data for five products. The code for the program is: #include <iostream> #include <iomanip> using namespace std; int main () { int product; int …

Software Development c++
Member Avatar for Narue
0
129
Member Avatar for crq

hi there. i am on a UNIX system and am writing a template code called Array.h. it is called by a Test2.C file which does nothing more than declare a T object of type int. Array<int>. i am getting all kinds of compile errors. have been over it and over …

Software Development c++ display first-post os-x unix
Member Avatar for Narue
0
191
Member Avatar for tat2dlady

Does anyone know how to use an array of files? The array is defined as: fstream F[10]. I have 10 temp files that I need to use but am not sure how to open these temp files or write to them. I have a counter to keep up with which …

Software Development c++
Member Avatar for tat2dlady
0
125

The End.