General C++ Programming - April 2016 (Page 17)

programing error
 
double percent; int years; public: double annualInterestRate(double); int NumberOfYears(int); double loanAmount(double); double monthlypayment; double ge...
[3 replies] Last: As oren drobitsky said, please use code tags. Edit your posts, highl... (by dhayden)
if and else if question
 
I have a question about the if and else if statements if (condition) // say I put a lot of outcomes in the parenthesis does it have a limit I mean the one ins...
[2 replies] Last: In order to post code in the forum, click the Format button that looks... (by doug4)
Base Conversion And Then Reversing The Result
 
Hi there can someone please help !! i would really love some help i need to write a program that takes a decimal number from the command line and converts this...
[1 reply] : Anyone able to write me a code plz?? This isn't a site where others... (by Chervil)
HELP assignment PLZ
 
You will be asked to write a program that takes a decimal number from the command line and converts this number in REVERSE order into the base specified by t...
[2 replies] Last: Thanks for your reply !! But im really new to C++ , only started coup... (by josh123)
by anndo
Encounter "Thread 1: EXC_BAD_ACCESS" when reading data from a txt. file
 
I am writing a program to print the input data in the format of (row, column, value). The first line in the input file tells the program the matrix dimension. ...
[2 replies] Last: @helios Thank you for your quick response. I am a C++ beginner, and ... (by anndo)
If I use Eigen and vtk library as the part of my own software, can I commercialize it?
 
There is one kind of license called "copy left", as far as I know "LGPL" is one such kind. My question is: If I use this kind of stuff in my own program, can...
[7 replies] Last: Thanks, helios! Yes, you are right, Q11 applies. So looks like there ... (by northfly)
Fill in Missing Code and correct mistakes
 
#include <iostream> #include <iomanip> #include #include <fstream> using namespace std; // global constants const int MAXENTS=10; // function prototypes ...
[no replies]
Bellman Ford number of edges
 
I'm using the Bellman Ford algorithm to create a routing table. You can see the algorithm here: http://www.geeksforgeeks.org/dynamic-programming-set-23-bellman-...
[2 replies] Last: The way I ended up doing it was keeping track of the predecessor for e... (by PsylentKnight)
Enhancing the Account Class
 
[1 reply] : You didn't mention how often the interest is compounded annually. Some... (by xismn)
std::ios_base is private
 
Hi, I'm trying to pas ostream object as a parameter to my function, and I get this error. here is my function void printTask(int op1, int op2, int len, cha...
[1 reply] : ¿Can you please paste the error message verbatim? Also, provide a m... (by ne555)
Message passing help
 
I am creating a program named PosterRUs for my assignment which consists of the following classes: Customer, Order, Paper, Poster. The order class will ha...
[1 reply] : You haven't shown us where you instantiate the Order class. That is a... (by AbstractionAnon)
Exception. need help fixing.
 
Good evening forum! I have a lab assignment that I'm breaking my head for a while on now. I am a CSC student, and I'm still getting used to C++ programming. I h...
[3 replies] Last: Thank you! (by AlphaAce)
pointer and scope question
 
Hi, Below I create an array in create_array() and pass the ptr back to main. The pointer addresses have remained the same, in main, create_array(), and back to...
[5 replies] Last: Thx (by technologist)
Problem with bool turn in my code need help
 
so basically I was doing a program on a game called chinciro and I need help because whenever I run the program it displays a runtime error which says that my v...
[3 replies] Last: Run-Time Error Checks (/RTCu): https://msdn.microsoft.com/en-us/librar... (by JLBorges)
Object casting question
 
Good Morning, I have two classes as follows: class A { public: A(); ~A(); CString function1(void); private: CString ABC(void); }; class B...
[2 replies] Last: Thank you shadowmouse. That works for me. I reworked to: class BaseCla... (by lmadeux)
Close program if another application is closed. (1,2)
 
Hello. I have a game made in C++ and I have also made AntiCheat application in C#. Now since I'm not really into C++ I need the following code: I want my C++...
[24 replies] Last: > The problem is in the MD5 check. If I remove ... What does this pri... (by JLBorges)
parent function manipulating member of derived class
 
Hi. I've been trying to solve this problem for many days, but I couldn't find a good solution or design pattern.. I have this inheritance hierarchy, struc...
[2 replies] Last: Exactly! I just figured that template base class might be what I want ... (by ljw2602)
by lisa96
A critical task analysis
 
can someone tell me what should I write in the loop.I could not do that. I have tried to use for and if,but nothing.I think I wrote them wrong. Assume the ...
[3 replies] Last: Thanks. So when you read an event, you need to know if you've seen it ... (by dhayden)
reference points to result of operation
 
Hi, The following pseudo code seems to work (i.e., the values in "v1" are correct). However, I wonder whether it really is the right way to do it. My doubt ...
[3 replies] Last: Modern compilers are good at return value optimization so I don't th... (by Peter87)
Collision problem with pong ALLEGRO5
 
I have a problem with making a pong game, when the ball intersects with the second player, nothing happens, the ball just passes right through it, but that's on...
[6 replies] Last: Thank you so so much! It's now working :) (by Idiotal)
April 2016 Pages: 1... 1516171819... 23
  Archived months: [mar2016] [may2016]

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