| |
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,661 |
|
 |
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 |
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...
|
|
4 |
119 |
|
|
by abdaalh
Consider the definition of the function main:
int main ()
{
float rate, hours;
float amount;
.
.
.
}
Write the following definitions:
|
|
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...
|
|
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...
|
|
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...
|
|
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
|
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...
|
|
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...
|
|
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
|
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...
|
|
1 |
232 |
|
 |
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...
|
|
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...
|
|
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
|
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);
|
|
4 |
107 |
|
|
by Score_Reaper
/*
1=rock
2=paper
3-scissors
*/
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
|
|
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...
|
|
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...
|
|
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...
|
|
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;
|
|
10 |
176 |