Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 162379

Object-oriented programming is a programming paradigm using "objects": data structures consisting of data fields and methods together with their interactions.

7 votes

Priority Queues - Array based implementation

const int maxsize = 5; A couple of things here. First you should prefer constexpr. But furthermore I am curious why you have a maxsize of 5. You may have a good reason, but if you do it would probably …
Summer's user avatar
  • 2,359
2 votes

Bank Management System

Edward did an excellent job reviewing your code and I would just like to add one thing. Do away with useless comments You have fairly readable code. Very much so for a beginner and your comments tak …
Summer's user avatar
  • 2,359
4 votes

Snake Game in C++ with OOP approach

Proper #include Guards #ifndef _SNAKEGAME_H #define _SNAKEGAME_H There are two problems with this Names with a leading underscore are reserved for the implementation. (It's actually slightly more co …
Summer's user avatar
  • 2,359
6 votes
1 answer
810 views

Data Model for a Memory Game

I have a Memory style card matching game. The project is big enough that I want to break up the review. The first part that I am giving you is the data model. If you are interested the full project ca …
Summer's user avatar
  • 2,359
7 votes
1 answer
327 views

GameManager class for a Breakout clone

I am a beginner and am almost done with my 2nd C++ project. It is just another breakout clone. I recently refactored a good deal of the code in response to this question. However I have left myself w …
Summer's user avatar
  • 2,359
6 votes
1 answer
3k views

Button click logic with SFML

I wrote some functionality that works as intended in order to create functional clickable rectangles. I inherit from RectangleShape in SFML and I have several objects (not just buttons) that inherit f …
Summer's user avatar
  • 2,359
5 votes
1 answer
114 views

Viewport for Card Match Game

This is the 2nd half of my Memory game. The first half can be found here. The repository can be found on Github. I am using SFML 2.4.2. In this project I focused on a few key aspects of design and de …
Summer's user avatar
  • 2,359