GIDForums  

Go Back   GIDForums > Computer Programming Forums
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

C++ Forum

Welcome to the C++ forum.

Browse through the links below to find existing C++ programming language discussions - including source code examples, hints, tips, and tutorials. Example codes are syntax highlighted for your convenience.

If you have just registered or if this is your first time here, and if you wish to include example C++ code in your posts and messages, please surround your example codes in [cpp]...[/cpp] bbcode tags when you submit your messages. This will syntax highlight your CPP / C++ code examples within a post. Please refer to the details here.

Post New Thread
Threads in Forum : C++ Forum Forum Tools Search this Forum
  Rating Thread / Thread Starter Last Post Reverse Sort Order 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 Go to last post
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...
20-Nov-2009 14:14
by TanLorik Go to last post
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 Go to last post
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...
20-Nov-2009 08:14
by TanLorik Go to last post
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...
20-Nov-2009 01:12
by mafiamade Go to last post
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...
19-Nov-2009 12:32
by Howard_L Go to last post
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;
18-Nov-2009 15:11
by davekw7x Go to last post
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...
18-Nov-2009 04:45
by Mexican Bob Go to last post
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...
17-Nov-2009 07:46
by Dean820 Go to last post
6 85
 
Nan
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...
16-Nov-2009 23:46
by Howard_L Go to last post
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
16-Nov-2009 15:33
by TanLorik Go to last post
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...
16-Nov-2009 14:07
by TanLorik Go to last post
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
16-Nov-2009 10:04
by fakepoo Go to last post
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.
16-Nov-2009 00:49
by Howard_L Go to last post
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...
16-Nov-2009 00:40
by Howard_L Go to last post
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...
14-Nov-2009 15:03
by Howard_L Go to last post
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;
13-Nov-2009 09:11
by saqib_ Go to last post
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()
13-Nov-2009 08:59
by saqib_ Go to last post
5 54
Smile
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...
13-Nov-2009 06:03
by Sam_Gregson Go to last post
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)...
11-Nov-2009 22:33
by Howard_L Go to last post
8 201
Question
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...
10-Nov-2009 13:42
by fakepoo Go to last post
3 227
Post New Thread

Recent GIDBlogProgramming ebook direct download available by crystalattice

Display Options Moderators
Showing threads 1 to 20 of 4589 Moderators : 1
Sorted By Sort Order
From The
LuciWiz  
Forum Tools Search this Forum
Search this Forum :

Advanced Search

New posts New posts More than 15 replies or 150 views Hot thread with new posts
No new posts No new posts More than 15 replies or 150 views Hot thread with no new posts
Closed Thread Thread is closed  
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:46.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.