General C++ Programming (Page 3)

by cGuru
Calculate Dynamic Increment For An Allotted Timeframe
I am running at 30 frames per second. I need to increase an x coordinate from 0 to 750 in 0.5 second...
[1 reply] : Nevermind. Forget using a timer when counting frames is 10 times easie... (by cGuru)
Caeser Cipher Program. Help wanted.
So I have basically learnt this for fun on youtube, and for the most part I can understand what the ...
[4 replies] Last: (by kemort)
by Beezy
Student Grading Program Help
This is a simple program designed to output the grade a student earned by inputting score. My only p...
[5 replies] Last: As a quick thought without checking you have to change Molly's score b... (by kemort)
C++ Function help please !!!
Create a very simple larger( ) function that takes 2 positive numbers as parameters and returns the...
[2 replies] Last: thank you (by pepsiytw)
level order traversal
So I'm trying to implement level order traversal for a binary tree off the top of my head. I feel li...
[4 replies] Last: Awesome that clears up everything. Thanks MiiNiPaa (by cppnoob25)
Suggestions on how best to design this, please.
class CompositeLocationBase : virtual public Location { // All functions pure virtual. }; tem...
[1 reply] : You can add undergroundFloors member. Then locations will actuall... (by MiiNiPaa)
Struct Definition
In the tutorial on Structs it says the following: struct product { int weight; double price; }...
[1 reply] : how would I, or anyone reading the code, know that this is a struct o... (by MiiNiPaa)
cant find the error
i am not able to understand the compilation error. #include<iostream> using namespace std; class A...
[2 replies] Last: B derives from A . Therefore, B must know how to construct that ... (by MikeyBoy)
What are the limits of console applications?
What are the limits of console applications? What can I do with them? What can't I do with them? ...
[3 replies] Last: What are the limits of console applications? Lower bound and upper b... (by kemort)
by Ganado
(non-standard?) constexpr standard library functions
I can't really find good information related to where the standard library uses constexpr functions....
[3 replies] Last: > So how do I know whether a function in the standard library is const... (by JLBorges)
Why does Visual studio 2015 keep crashing my display driver?
I searched through google for a solution but i can't seem to find it. I am trying to draw a triangle...
[no replies]
Using STL's sort function for the 'list' class
Before I ask my question, I apologize for the crude outlook of my program; I tried to use the code t...
[4 replies] Last: Hmm..., let's see Zhuge ; you may have a point there! Let me go and e... (by ravanelli)
file handling
Pleas guide me about file handling.......
[1 reply] : #include <fstream> // write data std::ofstream output("test.txt"); ... (by Gamer2015)
by sacin
dont display what i have typed
i want to make a program which displays some other letter if something is typed. for example: in t...
[no replies]
Best class design for game with player moving in a room?
I am trying do implement a player walking inside a room with specific boundaries. However, I dont kn...
[4 replies] Last: Well, whatever, there is no "best design" anyway, just personal prefer... (by Gamer2015)
linkedsa list
void HighestLowest() { node *cur; cur = head; double lowestvalue,highestvalue; high...
[12 replies] Last: Indenting correctly would help!!! I would be rather more inclined to h... (by andywestken)
FUnction pointer link error
Hi Guys... I have the following class namespace kcdag{ namespace logic{ namespace PpySuscripcion{...
[8 replies] Last: because the system is deployed in old debian version using gcc 4.1, an... (by freddy311082)
by Pad09
Too many errors??
Hi, I'm new to this forum!I recently wrote a program in C++ , but I get 19 errors!! I would really a...
[3 replies] Last: Nevermind , solved it!! Thanks! (by Pad09)
by redutz
Can't find the error
#include<iostream> #include<math.h> using namespace std; int main() { int a,b,n=1,puter...
[3 replies] Last: You assigned a to puterea before a becomes valid.... (by coder777)
Need a little help
Write a program that creates a Bus class. Create a constructor that initializes the number of passen...
[2 replies] Last: #include<iostream> using namespace std; class bus { public: bus... (by kemort)
Pages: 12345... 21
  Archived months: [may2015]

Cannot post in this page. To post a new message, go to the first page.