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,661
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 232
 
by iblink
Hello. This is weird for me. But it's maybe i don't understand how floating point numbers work well. I have a program that extracts the number after the decimal point and prints (3 digit) on screen eg. Input: "1.123", Output: "123". I have everything working well, but my problem is whenever i put...
10-Nov-2009 13:09
by davekw7x Go to last post
4 119
 
by abdaalh
Consider the definition of the function main: int main () { float rate, hours; float amount; . . . } Write the following definitions:
10-Nov-2009 09:30
by fakepoo Go to last post
5 88
 
by p8ntballsniper8
So I'm trying to write a program that will read in a character from another file, and then test to see if it's a number, letter, operator, etc etc. The file I'm getting my input from is a short program that uses a random number generator to output a random character each time it's run. I'm having...
09-Nov-2009 10:28
by p8ntballsniper8 Go to last post
2 159
 
by linan2332
Hi, This is my 15th homework and I am still quite new to C++. I have written this code but i cant find the mistake...:? -------------------------------------------------------------------------- /* Lin An ENGIN: 135 */ /* Homework 15 */ /* This program will arrangea set of number in...
09-Nov-2009 07:05
by zalezog Go to last post
5 97
 
by ahbi82
I did test this function on 2 PCs. 1.) Intel Dual Core, 3.6GHz. 2.) Intel Atom Z530 1.6GHz. (1) gives me the correct frequnecy of 3600190000 ~ 3.6GHz However (2) gives me 3579545 ~ 3.5MHz I already set the CPU to run its maximum Clock Speed in BOIS for (2), but to no avail. Anyone knows why this...
09-Nov-2009 06:24
by Mexican Bob Go to last post
3 87
 
by hira
Hello, I am totally new to socket programming. Some of its syntax passes over me totally, I've tried to understand a bit from the Beej's guide but still there are things I don't get at all. Our instructor provided the socket initialization code etc., so there weren't any problems with that. We...
08-Nov-2009 07:33
by hira Go to last post
0 277
 
by ahbi82
I have done a computer vision application in C++, and well due to the real time constraint, the algorithm will be implemented in VHDL and deployed in a FPGA. I'm using Intel Atom as my "Main" processor, and the FPGA is connected via PCIe. As the implementation on some formulas are too complex in...
07-Nov-2009 11:59
by ahbi82 Go to last post
3 92
 
by Freakzoyd
Hey guys, I am new to c++ programming and i am making this program but i have some errors that i dont really understand what they mean. Please tell me what is wrong about it. The program is originally written in spanish but i traducted but the variables are still in spanish but i think they're easy...
07-Nov-2009 02:02
by Freakzoyd Go to last post
8 146
 
by Howard_L
Hi, I have been learning about inheritance and then began to try some overloaded operators in them. It was all making sense until I ran into something which I try to condense into the program below. In there you will see I have two "myteries" which I could use some help in understanding.#include...
05-Nov-2009 10:19
by Kimmo Go to last post
3 107
 
by ReynaldoEloy
Hey i need help creating a code that calculates volume/surface area of a sphere, i was using this code as a reference but I'm just drawing a blank right now, any help would be appreciated: //INCLUDE SECTION #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <math.h> //DEFINE...
05-Nov-2009 09:21
by davekw7x Go to last post
1 232
Thumbs up
by sl02ggp
I have my program below (it runs and compiles as is) , but having difficulty implement these conditions and outputs: conditions: 1. rejecting certain coefficients if the discriminat (B^(2) -4AC) <0. 2. also having no division by zero in my program (do i use setPrecision)? outputs: having at least...
03-Nov-2009 08:43
by fakepoo Go to last post
8 152
 
by Lil_blue_dude
I'm suppose to create a function that finds the median in an array. I can assume that the array is sorted, so when I test my function I am entering my data in ascending order. In my main function it asks the user for how many numbers will be in the array, asks the user to input data, and then...
02-Nov-2009 15:32
by Lil_blue_dude Go to last post
1 67
 
by cpit
Hi all, I would like to initialize a 2d vector in the class Graph.cpp according to an input "numNodes". Each element in the 2d vector must be an Arc object, which have attributes like "adj" and "weight". I dont know which is the better way to initialize that 2d vector. Please, could you help...
02-Nov-2009 08:03
by cpit Go to last post
3 174
 
by cpit
Hi all, I'm trying to create a vector of objects but I didn't figure out how to reach the member function of objects inside the vector. Here is my code: vector<Node> nodes; for (int i=0; i<10; i++){ Node *ntemp = new Node; ntemp->setId(i);
29-Oct-2009 18:07
by Mexican Bob Go to last post
4 107
 
by Score_Reaper
/* 1=rock 2=paper 3-scissors */ #include <iostream> #include <cstdlib> #include <ctime> using namespace std;
29-Oct-2009 14:33
by Score_Reaper Go to last post
7 179
 
by sl02ggp
Trying to make this setup for my arrays: Print Output Format: Print total resistance followed by the values of each resistor. For series: (Example) Total series resistance is 2.123 kOhm for 3 resistors: 1000 kOhm, 1000 kOhm, 123 kOhm For parallel: (Example) Total series resistance is 500 Ohm for...
29-Oct-2009 10:29
by zalezog Go to last post
13 163
 
by metrsostation
Hey Guys Please I Am All new In C++ and i need to pass this assignment Write a program to help manage an inventory of musical instruments. When A delivery arrives, the user should be able to enter the following for each itme being unloaded from the truck: -- type of the instrument, assume piano...
29-Oct-2009 08:38
by Howard_L Go to last post
5 140
 
by ahbi82
I wrote an algorithm using C++ on some computer vision thing using OpenCV. But i would like to create a GUI using C#. What's the best way to do it. Currently my algo is compiled as static library, *.lib. Would it be better if its done in DLL? I'm using Visual Studio 2005. How can i import those...
28-Oct-2009 21:20
by ahbi82 Go to last post
0 52
 
by anonymous91
Obviously the problem is me and not the loop. But here's a watered down version of my code with the cout strings changed so there's no confusion. int main() { int a; a=5; string x;
28-Oct-2009 09:44
by anonymous91 Go to last post
10 176
Post New Thread

Recent GIDBlogProgramming ebook direct download available by crystalattice

Display Options Moderators
Showing threads 21 to 40 of 4590 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 13:50.


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