49,761 Topics

Member Avatar for
Member Avatar for curt1203

I have an assignment to do and i have a good portion of it already complete...The only thing i need is to validate that the number can only have one decimal point and the output of the number that has been validated is multiplied by two.....See the assignment question i …

Member Avatar for curt1203
0
111
Member Avatar for Joatmon

Hi, after searching this forum adequately (I think) I have decided to post this thread asking for an easy to understand resource that describes how to do multithreading on C++ in windows. The current ones I am finding out there on the web either 1. Simply don't work or 2. …

Member Avatar for Ancient Dragon
0
107
Member Avatar for jalo3030

I need help work wil not compile this is what I have to do. Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions (define these as constant variables): Federal Income Tax: 15% State Tax: 3.5% Social …

Member Avatar for Ancient Dragon
0
118
Member Avatar for jalo3030

Whats am i doing wrong it is not compile Write a C++ program that creates customers’ bills for a carpet company when the following information is given: a.The length and the width of the carpet in feet. b.The carpet price per square foot. c.The percent of discount for each customer. …

Member Avatar for Ancient Dragon
0
284
Member Avatar for jalo3030

can some one start me off i'm lost Write a C++ program that calculates customers’ bills for building a desk. The main ( ) function shall call four functions (described below). Pass all variables so that the functions make copies of any variables they receive. The following four functions are …

Member Avatar for Ancient Dragon
0
92
Member Avatar for jalo3030

What am I doing wrong with this one. I'm a beginner Write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half-dollars as possible, then quarters, dimes, nickels, and …

Member Avatar for Ancient Dragon
0
426
Member Avatar for jesseb07

hey, been working on a program and I had a need for a password line (btw I am using linux w/ gcc compiler). while I was making it I checked the net and found there's no getch() for linux, so I frankensteined one from several sources and got it to …

Member Avatar for jesseb07
0
2K
Member Avatar for Queen of Dreams

[COLOR="Green"]Hi there[COLOR="Red"],[/COLOR] This is the first participation in this site[COLOR="red"], [/COLOR]& I want to help me would you mind answering this questions[COLOR="red"],[/COLOR] pleeeeeease[/COLOR]:icon_cry: ======== [COLOR="red"]((1)) Write a C++ program that do the following: a.Define a class called Calculator. b.Declare the object Cal of type Calculator. c.Define a member function Display_sum …

Member Avatar for mitrmkar
-1
222
Member Avatar for The Midnighter

Hey there folks. I am trying to write a program that will take in a paragraph file, and compare it against a "Dictionary" text file, which is being inserted into a Binary Search Tree. Here's what I've got so far: [code]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cctype> …

Member Avatar for chaosatom333
0
102
Member Avatar for adnanius

hello I'm new to c++ and I'm writing a program for a college project. I'm getting an error I don't understand, if someone can help me with it I'll be thankful Oh, and by the way, the functions names are in French, hope this wont be a problem. Here is …

Member Avatar for adnanius
0
702
Member Avatar for amitahlawat20

/* unable to return value from following function due to if - else block within function..*/ mat operator + (mat &m1,mat &m2) //mat is a class for matrix object { int r1=m1.getrow(); //getrow returns number of rows in matrix int r2=m2.getrow(); int c1=m1.getcol(); //getcol returns number of columns in matrix …

Member Avatar for Joatmon
0
104
Member Avatar for farag

Hi I need urgent help doing this program (attached here) I must make it within hours, please help me Thanks

Member Avatar for farag
0
80
Member Avatar for jeffige

I have been following a C tutorial and using DevC++. When I write this code: [CODE]#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/CODE] and try to compile and run, I get this file popping up... [*] cstddef // Copyright (C) 1997, 1998, …

Member Avatar for jeffige
0
340
Member Avatar for jeffige

Is there any way to get rid of the "Press any key to continue" in the Dos window.:-/ I am using DevC++ ver. 4.9.8 It gets alittle annoying after awhile. And yes, I am new to programming.

Member Avatar for jeffige
0
202
Member Avatar for lifei

hi..i know this question sounds like stupid, but there is nobody that surrounding me i can ask. i had already found the other people program at [url]http://www.ucancode.net/Visual_C_MFC_Example/Create-2d-bar-line-pie-chart-vc-example.htm[/url] however, there are a few things that i am not sure about it. can someone help me to solve it? what is it …

Member Avatar for Ancient Dragon
0
169
Member Avatar for guitarrick

Hello out there!! I am trying to search a string for the proper format of a date and time...... My date will simply be: ##/##/#### and my time will simply be ##:##A.M. or P.M. I am thinking I can use something like : [CODE=C++] size_type find_first_of(CharType ch, size_type indx = …

Member Avatar for Joatmon
0
158
Member Avatar for DOrmisher

I'm using Borland Builder C++ 6 (my tutors force me to) and I want to make a TImage full screen. I don't think there's any specific function for this, the only way I can see doing it is possibly manipulating the Height and Width properties, but then again I can't …

Member Avatar for DOrmisher
0
153
Member Avatar for amitahlawat20

[code=c++] /* unable to return value from following function - adds two matrix class objects */ mat operator + (mat &m1,mat &m2) // mat is a class for matrices { int r1=m1.getrow(); // getrow returns number of rows int r2=m2.getrow(); int c1=m1.getcol(); //getcol returns number of cols int c2=m2.getcol(); if((r1!=r2)||(c1!=c2)) …

Member Avatar for Ancient Dragon
0
85
Member Avatar for guddukohli

)Seat Reservation prog for the theatre. Write a function for seat allocation for the movie tickets. Total no of seats available are 200. 20 in each row. Each row is referred by the Character, "A" for the first row and 'J' for the last. And each seat in a row …

Member Avatar for Ancient Dragon
0
68
Member Avatar for cosmos22

Hi. I'm designing something that uploads files to an FTP server of the users choice, so they quickly upload things and access them as a way of backing up files, almost. I would like to upload the file on the C: called pic.jpg as a test, but I've been having …

0
66
Member Avatar for TMD

my administrator at school blocked commands for command prompt so I can't use system pause or system color commands....anyone know a way around this?

Member Avatar for Joatmon
0
74
Member Avatar for Tsuruya-san

Hello, I'm new to this site and programming in general, so bear with me :$ . I've been downloading source code like crazy to reference, however I have yet to find a single project file for large projects (such as, for example, Half Life 2) that SHOULD compile correctly. Surprisingly …

Member Avatar for Tsuruya-san
0
111
Member Avatar for drtucker

i have a homework assignment asking me to pick the highest and lowest number out of a group of 4 numbers? How would i set that up?

Member Avatar for plgriffith
0
113
Member Avatar for taruj83

I know how to write a program for a multiple process scheduler using different algorithms but I wanna know how to implement the algorithm with 5 to 10 processors with different speeds and memory ( 256mb to 2gb). So far i know how to calculate the wait time with number …

0
53
Member Avatar for joufaf

Hi guys I'm trying to do a while loop since this afternoon for the code below but was unsuccessful. I'm reading from a file A family name and the number then the names belong to the family which will be like this JAMES SMITH MARY SMITH JOHN SMITH ROBERT JOHNSON …

Member Avatar for Ancient Dragon
0
108
Member Avatar for Jennifer84

I am writing this to a .txt file. The problem here is that it doesn´t compile when I write "\". Why does this happening because this is just a string ? I really need to get this "\" out to the file. Any idéas on this ? [code] ofstream out; …

Member Avatar for Jennifer84
0
114
Member Avatar for purepecha

/* I compiles this program it works, but my problem is. I cannot reset the original values after print the results, so the second function still carries the prevoius results. I want to use the same variable int parmA=12; int parmB=28; for both functions. Also any suggestions to get rid …

Member Avatar for mitrmkar
0
72
Member Avatar for Jennifer84

When you are writing a whilestatment like this you have ',' as a delimiter. What I wonder is if it is possible to have more than only one delimiter as I also want at the same time use " " and ")". [I](a blank space and a ")" )[/I] Is …

Member Avatar for cbattagler
0
308
Member Avatar for cosmos22

Hello, I have done some research on playing .wav files in C++(As you can only play .wav files) and I've been having some trouble. The coding below works, it just doesn't play the whole song. It plays around 10 seconds of it, then stops. Does anyone have any suggestions? I …

Member Avatar for cbattagler
0
146
Member Avatar for Jennifer84

I am trying to read lines from a .txt file and put them to a vector like this but when I run the program, the computer get stuck. The file is only about 50 lines. I wonder what could be wrong with this code. [code] ifstream File("C:\\Gli\\temp\\File1.txt"); std::vector<string> For; std::string …

Member Avatar for Jennifer84
0
96

The End.