| |
Rating
Thread /
Thread Starter
|
Last Post  |
Replies |
Views |
|
|
by WaltP
Guidelines for Posting Requests for Help
version 3.1
GIDForums is pleased to provide these forums to help you understand programming techniques and correct programming problems. Following these guidelines will help you post good questions with enough information that we can understand your...
|
21-Apr-2005 03:44
by WaltP
|
0 |
13,658 |
|
|
by jnCPP
I'm currently working on a program that requires me to read strings from a file "teams.txt"
DELAWARE ST.:BLUE HENS:187:162:171
DELAWARE ST.:HEDGE HOGS:199:123:175
DELAWARE ST.:CANAL SKIERS:151:126:165
DELAWARE ST.:NEWARK NUTS:183:188:191
ARKANSAS ST.:WINKERS:136:121:149
ARKANSAS...
|
|
2 |
54 |
|
|
by RG11
I have just started with C++ so please be kind if the problem is considered to easy.
I have to get this output:
*
**
***
****
********
****
|
20-Nov-2009 11:08
by RG11
|
2 |
39 |
|
|
by sl02ggp
Compression and Decompression
As I have learned in the C++ source file, the lines have to start with many leading spaces. To save spaces in the saving file (to compress the file), the leading spaces may be counted and store the count as an integer in the beginning of the line followed by the rest...
|
|
5 |
76 |
|
|
by mafiamade
I got an exam that has to do with C++, arrays & functions. On the PRACTICE test there is going to be a program like the one below. He want's us to write the program. I did everything up until GetReadings, SortReadings, CalculateAvgTemp, FindRating & DisplayInfo. I have no idea how to do this, my...
|
|
4 |
95 |
|
|
by mrjulienl
Sorry, I'm quite new to c++. So far my program opens up a new text file "data.txt" and after the user writes a directory location in it and saves it, they press enter and the program renames "data.txt" into "data.dat"
It then turns the first (and only) line of data.dat into a variable string...
|
|
9 |
115 |
|
|
by Xenephon
For some reason double-precision calculations are sometimes failing. I first encountered the problem with:
Example 1:
double ratio = 0.87219995260238647;
double shift = 0.00000001;
double answer = ratio - shift;
if (answer == ratio)
ratio = ratio;
|
|
12 |
129 |
|
|
by tytanic11
I'm taking an introductory c++ course at my university; our project this week is a program that calculates a shipping/merchandise cost for sales. I'm not a computer science major or anything, so I have very little programming background. I've included comments that hopefully explain what each...
|
|
2 |
74 |
|
|
by Dean820
Hey all, learning c++ by myself. Came across this question and having trouble. Could anyone post the solution?
Write a C++ program to accept the prices of ten items of shopping.
It should display a two column table displaying the VAT included in each items price. It should identify and display...
|
|
6 |
85 |
|
|
by cheifjoe87
/*Write a program that computes the sum.
Create a function to calculate the sum //Using these declerations is optional. float sf,xf = 0.1f; double sd,xd = 0.1;
And a function to check the error.(100.0 - s).
Below is the source code for this program.Im having trouble with calculation.I get nan when...
|
|
1 |
55 |
|
|
by koolmoecee
I have to allow th user to enter 10 values, and then reverse the order..
ex(1, 2, 3, 4, 5) and it's supposed to look like (5, 4, 3, 2, 1)..
I wrote it in pseudocode.. I'm just not good w/ c++.
Start
Num input
Num MAX_COUNT = 10
|
|
4 |
73 |
|
|
by sl02ggp
The assignment everyone has done before..lol...reversing digits. How do i make my code more simple (as my friend stated)?
Trying to write a program that reverses the digits in an integer. Assuming that the max value of the integer is 99999. And using arrays to solve the problem.
For example if...
|
|
4 |
75 |
|
|
by marknyc
Or more like this:
11
I would like each loop to add another number to it's printout something like what's posted below
11 12
11 12 13
11 12 13 14
11 12 13 14
|
|
2 |
49 |
|
|
by ImBa.ZaIzAI|
How to create cinema seat using array.if the seat is avaible it will show 0 and if the sit is not avaible it will show -1.
|
|
4 |
106 |
|
|
by viprow
I need just a simple and very understandable way to do the above. Here are the numbers
//declare array
int scores = {90, 54, 23, 75, 67, 89, 99, 100, 34, 99,
97, 76, 73, 72, 56, 73, 72, 65, 86, 90};
I have no clue what to do with these numbers, just one example is all I need. I...
|
|
6 |
116 |
|
|
by justyn82
This is my objective but im kinda stuck from this point.
Write a C++ program that models a boat.
1) Write a class that represents the boat itself. It should have data members for name, type, and another variable of your choice. Make sure these variables are private. Be sure to write getters and...
|
|
3 |
96 |
|
|
by TitanGuy
New Project... need help please:
Attached is the instructions.
Here is what I have so far and having trouble:
#include <iostream>
using namespace std;
|
|
6 |
187 |
|
|
by saqib_
The following code converts the string copied to uppercase and then to lowercase again.// Convert a string to uppercase & lowercase
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cctype>
using namespace std;
int main()
|
|
5 |
54 |
|
 |
by Sam_Gregson
Hi guys - just a quick one (I think!) -
I am new to C++ programming, but have done some programming in Fortran, C and VBA.
I am currently undertaking a particle physics PhD at Cambridge University in the UK and have been given a large and complex LHC/CERN program to understand.
I am unclear on...
|
|
3 |
85 |
|
|
by sl02ggp
Im trying to generate sample values of x(t), y(t), and z(t) at a sample
rate of 0.01 for "0 less than or equal to" t and "less than or equal to 6"
Basically trying to store the sampled values in their respective files, but kind of lost on where to start?
x(t) = sin(2*pi*t)
y(t) = 2*sin(16*pi*t/3)...
|
|
8 |
201 |
|
 |
by Saylor
I had to create a class that would accept a user input number between 0 and 9999 and translate it into "zero" to "nine thousand nine hundred ninety - nine". I had to use one int number and use static arrays to hold the strings. The problems arise when I try to initiallize the arrays. I originally...
|
|
3 |
227 |