General C++ Programming - October 2012 (Page 23)

Write a c++ program that computes salary?
 
So I'm trying to write a program that computes the salary, and the user has to input the hours and the rate at which the person gets paid, and "write the defini...
[4 replies] Last: You think you can write this program in the correct way so I can see w... (by sam1212)
C++ & Java - anything in common?
 
I'm just wondering, because the computing course I'm going to do at college teaches java and a couple of more languages, but not c++. So will any of my C++ know...
[1 reply] : The Java syntax was based on C++/C. (by BlackSheep)
by Alx101
GLSL Linker errors
 
I have been working on using OpenGL, and now that I finally have it working the shaders decided to die on me. The program starts as it should and renders a dark...
[3 replies] Last: Thanks for the reply, i actually just copied those shaders over from a... (by Alx101)
vector
 
how would i return an vector of variables from this statement void YourFireType() { Monster YourFireType; YourFireType.SetType("fire"); YourFireType.SetAttack...
[8 replies] Last: @Andy, vec1 in your code is a local one. And it is "invalid" or pop... (by Aceix)
Convert and Display User Inputted Number to Octal and Hexadecimal
 
How can I convert and display a number the user inputs as octal and hexadecimal?
[1 reply] : cout provides flags to set this. See here: http://answers.yahoo.com/... (by pogrady)
This is a "personal project".
 
I am trying to figure out an "algorithm" for finding the shortest path in a given matrix (2D array). The data given is being read from file. On the first lin...
[8 replies] Last: Thank you. I really appreciate all of your help. (by jumper007)
program crashes when I try to access a vector, please help
 
Hi, I'm new here, I hope I posted this in the correct forum. I want to describe a network of nodes. Each node needs to connect to all its neighbours. Therefo...
[5 replies] Last: if your compiler supports the auto keyword. That is to say, the lat... (by Catfish2)
Inconsistent calculation results.
 
Hello, I'm seeing some odd behavior in my program and I can't seem to find the reason. The majority of time is spent on simple calculations that look up s...
[3 replies] Last: All the checks I can think of report no problems. As far as I can tell... (by Gaminic)
simple question and make program that does a t considering the number
 
int j = 8; j %= 3; what's the value of j after that ? also need help making a program that will do this : = = = = = = = = = in this case t...
[2 replies] Last: If variable j is defined as you showed int j = 8; then in this case ... (by vlad from moscow)
int[5,5,5,5]
 
Is it legal to declare multidimensional array like that? int *a=new int[5,5,5,5]; It translated without an error.
[6 replies] Last: Also see the "Comma operator ( , )" section of Operators http://www.c... (by andywestken)
Binary Search Tree Manipulation
 
I have a program assignment that I was given the .h file for and was supposed to make the .cpp file insert, remove and so on the with the tree. I'm having probl...
[3 replies] Last: Sorry I just tried it. Thank you again :D (by RaineShadow)
The Axe Problem
 
hey guys, i'm trying to make a axe using '*' im not sure how to do it.. can someone help me please.
[8 replies] Last: The user enters an integer and the triangles become that big. The axe ... (by TheGamingPryde)
Reading/Writing to file issue
 
Hi, I have an IO Class for handling reading from and writing to files and it looks like this: // MANIPULATORS void IOHandler::setInputSource(string inputSRC)...
[6 replies] Last: just a typo when I posted, there is just one parameter. (by DreamCore)
Working with bits
 
Hello everyone, this is my first post here. I am currently working to improve the speed of an algorithm. This is just for fun, and I am not concerned with useab...
[3 replies] Last: I do have a follow up question. How do I test for equality of a partic... (by amphoterik)
Help with using getline function
 
Hello! I am completely new to c++ and have decided to teach myself! For an exercise I want to use the numbers (1-100) in a file called Numbers.txt., then to...
[6 replies] Last: Remove the semi-colons in lines 17 and 19. For additional detail, see... (by doug4)
resize dynamic memory problem
 
I want to implement the class FloatArray's resize function class FloatArray { private: float * mDate; int mSize; public: void resize(int ne...
[2 replies] Last: but if my FloatArray object have some values ,when I use the resize fu... (by ylxin1993)
Problem with typedef
 
Hello Dudes :), i got a problem with my C++ Code. I am busy with an OPC UA Client in C++. Notoriously there is only a bad documented ANSI C Api for it (free fo...
[2 replies] Last: const OpcUa_StringA === OpcUa_CharA* const =\= const OpcUa_CharA* ... (by ne555)
batting average
 
// Reaper #include <iostream> using namespace std; int main() { int hits , bat; float average; cout << "This will display the battin...
[2 replies] Last: Thank you vlad, i tried every other way i could think of even came clo... (by Reaper1)
by Stone1
Help with a simple program
 
Hello im really strugling to make this simple program work. write a program that shows on the screen the result of the * of the even numbers from 10 to 100.I...
[15 replies] Last: I'm truing to multiply the even numbers from 10 to 50.For example 10*1... (by Stone1)
Painting Software using C++
 
I am at the beginning of C++ My course teacher have fixed a project for my team to make software of painting using C++ in this vacation. So I am searching help...
[3 replies] Last: Using the windows API directly is a pain, especially for a novice. Loo... (by Moschops)
October 2012 Pages: 1... 2122232425... 50
  Archived months: [sep2012] [nov2012]

This is an archived page. To post a new message, go to the current page.