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 ...so help me how to resolve this issue... #include <ios...
[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- TemperatureInputs 3- Params In a way that I want to acce...
[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 5 people & then user inputs the mobile number to get all th...
[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: foo(5,30,comp); Should return false foo(z,b,comp); Shoul...
[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 given a texture and the number of frames, it iterates trough al...
[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 now have a new set of projects I would like to maintain in ...
[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 find open_ostream. Is there a specific namespace I need 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 error code 0240 ax=0B0A, bx=0B0A,cx=0BZA,dx=0F97,d...
[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 calculate amplitude/decibel value from a mp3 file. I am currently p...
[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 (should) produces the same number as output.But due to some rea...
[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 enough with make_shared and move, so do you guys see any obv...
[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().getRenderer() } { } GameState is a pure abstract class a...
[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 file. 2. List & view existing files. 3. Copy file from wind...
[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. However, the code runs just fine on my Mac. The part of co...
[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 with cout in case of errors or just to monitor the value of...
[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 highest minutes of play, also the lowest and the highest bonus...
[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 very new to C++ and would appreciate any help. Create a pr...
[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 password. Unfortunately, my teacher is running on a mac book, (seem...
[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 TextureManager { public: TextureManager(const TextureManager&)...
[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; } engine.registerListener(sf::Event::EventType::...
[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.