Beginners - January 2016 (Page 11)

Class, i have a problem with withdraw tax
 
#include <iostream> #include <cmath> using namespace std; class BankAccount { public: BankAccount (); void read(); void ...
[1 reply] : You never recalculate the value of end_res after you have made the wit... (by Peter87)
Pdcurses library doesn't work
 
Hi, a little while ago I figured I'd like to try to use something different than iostream (due to it's many restrictions) to cover input and output for my appl...
[4 replies] Last: I guess I'll stick with dynamic library then. Thanks again. (by Verrierr)
Why doesn't this program function correctly?
 
I decided to write a program that solves ax^2+bx+c=0, but for some reason it just returns 0; or jumps to the last "else" and says "invalid equation" #incl...
[5 replies] Last: Just to be pedantic, I put figures before and after the decimal as w... (by TheIdeasMan)
trouble summing parts of a 2D array
 
I am having issues summing up the bottom parts of a 24 x 24 array. The issue is with wards 3 and 4 as well as towns 7, 8, and 9. this is my output to file....
[2 replies] Last: Thank you so much. It works great now Thanks again. (by ryanmac75)
Adding elements of an array in a function
 
I started trying to learn C++ a few weeks ago. I'm working on a program that is supposed to add the elements of the two arrays and store it in the third array. ...
[2 replies] Last: Oh dear I feel so dumb. Thanks for the help. (by tigertm64)
by Kazuto
Help Please
 
Someone please help me. I study using borland C++. Can i change font after i execute the program? I mean change cmd font by using source code.
[1 reply] : Do a google search (by SamuelAdams)
I think I'm getting paranoid
 
Hello, I have come up stumped with an array issue I have a string of numbers, "1 32 26 12 8" (with/without whitespace,its just there to display that some are ...
[16 replies] Last: Thank you! that works, well I won't say perfectly as you've all made c... (by LiamSalt)
Password to decimal.
 
I am creating an encryption program, nothing fancy, I have written some working methods that jumble up text as needed and can be reversed as needed. But I n...
[7 replies] Last: Well, the full function definition, [code firstline=17]int returnVal(... (by Chervil)
help to reduce code with switch case c++
 
Hi, I want to create a little command game, where you can move an ASCII sign around the board. You can navigate it with the wasd keys. If you hit a special sign...
[7 replies] Last: Thx for all the replies. I did not know that map was reserved in the ... (by Jensdvvgsr)
question about operator++(int) one more time
 
Before few days I asked about if I implemented operator++(int) correctly and this was the code. class INT { int i; public: INT(int ii) : i{ ii } {}...
[3 replies] Last: Tnx you guys very much! Like in the movie "Limitless" I have to say : ... (by etrusks)
by sorry1
i dont get why it says error
 
Get two numbers n and m, and then calculate the nth power of m. Input specification There will be two numbers in the input file which are between 1 < n, ...
[6 replies] Last: Also, check that you have m and n the right way round in this stat... (by Chervil)
Block Cipher Reversal
 
TL:DR I need to work out how to reverse the shiftright function using the same input values, by somehow manipulating the values after input. /TL:DR I have...
[2 replies] Last: The task as hand is not to focused on our coding etiquette, more that ... (by LiamSalt)
Beginner Project
 
Hi ! I am a C/C++ beginner.I want to ask you what are some good projects for beginners.I've almost done my Tic Tac Toe.If it's possible,I would like to do somet...
[2 replies] Last: I did all of them , except the last one.Other sugestions? (by StefanCPlusPlus)
by Omii
C++ ignore function.
 
HI All... well am new in programming, so I need help to learn programming. and I hope I will get my ans here... well I wanna to get user name, hid first and la...
[4 replies] Last: thank you cire...!!! its work... :) (by Omii)
Optimize simple, 2-player tic-tac-toe
 
Hi everyone...I'm new here as well as to C++,and don't really know much... I've made a simple, 2-player Tic-Tac-Toe game, but my code is quite sloppy...I've got...
[no replies]
by gabars
Queue of objects does not compile
 
Hi, I feel really stupid about this one... I can't figure out why every STL container I try works with regular types (int etc.) but not with class objects. What...
[3 replies] Last: Yeah, I copied the error from when I tried with a vector, and the code... (by gabars)
clang newbie queries
 
Hi I am considering using clang/LLVM for C++. 1) From the wiki docs, I read that clang is a frontend for the C++ compiler (amongst others) in LLVM which i...
[3 replies] Last: Can the clang intermediate representation be decompiled, so as to exp... (by helios)
memory game
 
#include <iostream> #include <iomanip> #include <stdlib.h> #include <windows.h> #include <ctime> int movement(); int turn(); using namespace std; char...
[3 replies] Last: The algorithm could be something like this: 1) Check if the blocks op... (by Stalker)
by MaryOz
Too many initializer values with unsigned char *?
 
Hello everyone. I am trying to solve some past papers of my C++ course for practice. There is this code: using namespace std; int main() { unsigned char *...
[3 replies] Last: Thanks so much for your prompt responses! These papers are full of "me... (by MaryOz)
help with experiment using c++
 
Hi, I need to get this code to ask for the initial speed, omega. I understand it would need a prinf statement followed by scanf, but do not know what to include...
[3 replies] Last: BTW: your title is misleading, which is why you're not getting answers... (by tipaye)
January 2016 Pages: 1... 910111213... 29
  Archived months: [dec2015] [feb2016]

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