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

Need help (im bad with classes)
 
Okay so I made this program that takes 2 numbers(the price of the item and the money you pay with) and its turns everything into mininmun amout of change. Ex It...
[no replies]
Need help sorting a list of companies
 
I have a problem that i can't quite figure out how to solve. I have a txt document containing the name and address of a couple hundred companies. I'm trying ...
[2 replies] Last: Thank you cire. I should've figured that out myself but i haven't had ... (by oli8686)
please explain this runtime error if you can?
 
I wrote a program that had these two functions std::string line_format_for_total ( const std::string title, const long ...
[4 replies] Last: problem is somewhere else. format_with_commas() center_on() I did ... (by closed account iw0XoG1T)
maze game
 
hello this is my assinment to make a maze game i have written this vode but when i enter character to move $ sign it does not print my maze again please can any...
[2 replies] Last: ohk thank you :) (by mehreenh)
Looping error
 
Hey there. Here's the problem. My do-while statements are correct, the program is running but it does not loop/goes back to the first step when the condition's ...
[4 replies] Last: sorry about not using the code tags format >.< my first time. But anyw... (by Genelee)
File I/0
 
I want to read a text file and if my programe reads a period (.) , it should write that data on next line and move on to read the next sentence. i know how ...
[2 replies] Last: You can't really ask a forum for help on assignments but I believe tha... (by Pickle Gunner)
Linear equation/interpolation - compile errors
 
I am trying to create C++ code that allows a linear equation (interpolator?) to take in a value and produce an output based on a table that is specified. The...
[no replies]
Saving memory address of a function
 
Hey rrrybody, Im working on a program and part of it uses a window manager that i made - It basically just creates another window within the program - My proble...
[2 replies] Last: Sweeeet, thats exactly what i need - Thank you :) (by Angeljruiz)
Printing a grid
 
Hey, I need some help in writing a recursive function for printing a 2x2 array. I actually need to write the function in MIPS assembly language but having a C+...
[no replies]
Help with Random Numbers
 
Hi, this time I've run into a problem with the rand() function. You see, I am writing a text-based game, which is currently pretty successful (over 3,000 lines!...
[4 replies] Last: I don't divide any number by M1, I will post the code for the combat s... (by awesomeprograms)
Replacing single variables with a 2 dimensional array
 
Hi, I have a problem, I just wrote a program for a polynomial that holds both a coefficient and an exponent using two separate variables, but I just decided tha...
[no replies]
by redcup
show a beginner what to do
 
In this exercise, you will define a complex data type complx, to manipulate complex numbers: a+bi. In complx class where you can declare complex data, input/out...
[no replies]
by dalawh
switch and string/char
 
Is there a way to use a switch statement with string or char instead of an int?
[5 replies] Last: You can only check the equality of a pointer, but probably you won't k... (by S G H)
converting decimal number into binary and octal
 
i am trying to make a program to convert decimal numbers into octal and binary in combine program by defining a range to generate a table of binary and octal n...
[no replies]
by dalawh
Unions
 
Since unions occupy the same address space, what happens when you have something like... union unionTest{ bool tF; //1 byte char alpha; //1 byte int num; //4 b...
[5 replies] Last: @firedraco In the example in the tutorials, they had an array of 4, wh... (by dalawh)
Initializing Error
 
Alright so I'm new to C++ and have been programming in java before. I'm trying to get nodes to work but as I understand there is no garbage collection as there ...
[2 replies] Last: I see, Thanks I'll look into it and re-post here if I run into proble... (by closed account GvCfSL3A)
Back movement in link list?
 
is there anyway to move back my pointer in a link list? lets say i have my j pointer on the third node and k pointer on the second, i can move j pointer to sec...
[3 replies] Last: I don't think what you want to do can be done with a singly-linked lis... (by nathan10)
Make Parameters Option in Function
 
In this tutorial I will explain how to keep parameters of a function optional This tutorial explains: 1. What is an Default Argument? 2. How to make pa...
[no replies]
reassign problem
 
#include "stdafx.h" #include <iostream> using namespace std; int main(double total) { float charge , fee; cout << "This displays the membership i...
[5 replies] Last: Dog ate the hard drive? (by AbstractionAnon)
Hexa
 
this code i'm working for is kinda.. incomplete.. kinda confused. not sure if this code is correct but it is running though. just want to make sure. #includ...
[1 reply] : int input; cout << "Enter a decimal number:"; cin >> inp... (by Chervil)
October 2012 Pages: 1... 3031323334... 50
  Archived months: [sep2012] [nov2012]

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