General C++ Programming (Page 6)

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 kemort)
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 kemort)
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)
by stat1c
output window will not stay open
 
I have an assignment where I need to write a grades calculator for two tests, the tests average for ...
[3 replies] Last: You need to put this code at the end of main. //Wait for a characte... (by Thomas1965)
smart pointer incomplete type
 
//file: a.h #pragma once #include <iostream> struct A { ~A() { std::cout << "~A" << std...
[1 reply] : The (shared) control block of a std::shared_ptr<> object holds the d... (by JLBorges)
smart pointer incomplete type
 
//file: a.h #pragma once #include <iostream> struct A { ~A() { std::cout << "~A" << std...
[no replies]
by Anon99
Reading from csv file
 
I am trying to read from an excel file, then only print out the unique values. My code, however, pri...
[16 replies] Last: #include <iostream> #include <string> #include <cctype> #include <vec... (by JLBorges)
by Anon99
Unique words
 
I am trying to read from and excel file and I have a list of names but I want only to print out the ...
[8 replies] Last: for (name_iter = nameHolder.begin(); name_iter != nameHolder.end()... (by Anon99)
Pages: 1... 45678... 26
  Archived months: [nov2016]

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