General C++ Programming - January 2017 (Page 11)

ERROR in execution
 
I am making a simple SNAKE Game.... there are errors in running of code and i stuck over here ......
[2 replies] Last: Have a look here. Maybe you can learn sth. from it. http://codereview.... (by Thomas1965)
by RezaA
OOP organizing classes
 
Hi, I have a problem in creating my main function. I have following classes: 1- SolarCalculation 2...
[2 replies] Last: Writing into xml file is easy: just write tags and values. To read fro... (by raschupkin)
database managment using arrays
 
I'm not able to make a program where I need to input details(name, mobile number, Date of birth) of...
[10 replies] Last: I think your error message relate to your system, being way out of dat... (by closed account 48T7M4Gy)
Templates and fuction pointer
 
I'm trying a generic function which if say to me that it is smallar or it is bigger. For example: ...
[3 replies] Last: Try these? http://en.cppreference.com/w/cpp/utility/functional/greate... (by TheIdeasMan)
Madness with frames and button
 
I wasted hours trying to solve this, but I just can't... :\ I am building a "Button" class that giv...
[1 reply] : Apologies, I must be tired...found the logical bug... currFrameNumber ... (by Marcus Aseth)
workspace location
 
I have been using Eclipse IDE so far, and designating the workspace to be on the computer main OS. I...
[no replies]
How do I use fstream::open_ostream?
 
I'm learning how to use Microsoft's cpprest sdk and no matter what I do, Visual Studio can't seem to...
[2 replies] Last: Ahhh I feel stupid. I went back to the MS article after reading your p... (by hashbrown)
C++ crash om execution
 
Whenever i run my code this error pops out exception 13: general protection fault at 08C7:210E erro...
[14 replies] Last: THanks so much every one who helped finally the program is working .. (by Mraniketr)
Create a decibel meter for my game. Please
 
Hi guys! I am currently creating a game with a background with music rythm. So i want to calculat...
[1 reply] : You can use ffmpeg to determine max_volume and mean_volume: ffmpeg -i ... (by raschupkin)
Unexpected decrementation of result
 
the following code takes in any number as input.Then re-forms the same number digit by digit and (sh...
[2 replies] Last: > But due to some reason the value of the number reduces by 1 The fun... (by JLBorges)
Doubt about make_shared and move
 
Below is my code, textureMap is a map<string, shared_ptr<SDL_Texture>> I am not yet experienced ...
[18 replies] Last: [quote=Peter87]why is that important? Good question. That line was a... (by Cubbi)
pure abstract class question
 
Why the code below kind of freeze my program? GameState::GameState():pRenderer{ Game::instance()...
[2 replies] Last: actually by running the debugger and following every single step, I th... (by Marcus Aseth)
File System Implementation Problem
 
hi I have to implement a file system which should have following specifications: 1. Create a new f...
[no replies]
Slow execution on Windows compared MacOS
 
Hi, I am a bit new with developing on Windows and I am struggling with a code that take ages to run...
[2 replies] Last: Indeed I was using "Debug mode". I switched to "Release mode", update... (by JohnnyBeeGoody)
Getting Console with cout while using Windows subsystem
 
As the title of the topic, I'm using SDL and window subsystem but I need a way to also get a console...
[6 replies] Last: The way I did it was from the project setting, From Linker/System I ch... (by Marcus Aseth)
Urgent help me pls !!!!!!!!!!
 
Hello i have a problem here with my coding in which i have to find the PLAYER with the lowest and hi...
[6 replies] Last: good information by kemort, Thank you i had similar problem and got re... (by Barmat)
Can not figure out how to fix my errors
 
I have been trying to debug my code for hours. I have gone from 43 errors down to 19 errors. I am ve...
[5 replies] Last: wow thank you everyone (sic) for your help! Well, Rsimmins , you wer... (by closed account 48T7M4Gy)
Mac Compatibility without a Mac??
 
Hello, I recently completed a C++ project for school that converted and 1 word into a secure passwor...
[6 replies] Last: Probably might not help much but all your teacher has to do is get Win... (by closed account 48T7M4Gy)
Question about Singleton
 
I'm following the book SDL Game Development, here what I have in the class declaration: class Tex...
[9 replies] Last: I also should look for a better book apparently, this SDL Game Develop... (by Marcus Aseth)
How to store class function to vector of pointers?
 
For now, I made this: void f(sf::Event* event) { std::cout << event->mouseMove.x << std::endl;...
[4 replies] Last: Example by JBorges worked for me. Make sure that you have C++11 enable... (by raschupkin)
January 2017 Pages: 1... 910111213
  Archived months: [dec2016] [feb2017]

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