General C++ Programming (Page 7)

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)
Index filter
 
int n = {0}; //initializing all my values to zero //setting values of n i'm interested in /...
[18 replies] Last: Marcus,Mbozzi and Keskiverto you guys have been incredibly helpful. Th... (by newuser12)
by burn2y
Printing Arrays
 
Hello all. I need some help with my program I have written below. Excuse any "poor" coding. Just sta...
[1 reply] : For a beginner your code looks good and works well. To format the outp... (by Thomas1965)
by blanm
Audio Sampling in C++
 
I'm trying to read from a WAVE file for a school assignment. The project is to sample from the file ...
[15 replies] Last: I actually had better luck using ffmpeg :) ffmpeg -re -i assets/440hz... (by mbozzi)
c++ set insert in descending order ?
 
insert in c++ set does its job in ascending order, is there a way to make it work in descending orde...
[2 replies] Last: thank you (by mohamedeltair)
PPP2 Chapter 6 Exercise 3 Help Needed
 
Edit: Never mind. I got it. If the post wouldn't have gotten too big, I would've posted the soluti...
[no replies]
Best Exception handling practice
 
Today I was starting with SDL, and in their wiki under the SDL_Init() function page there was this e...
[2 replies] Last: Thanks Cubbi :) (by Marcus Aseth)
Pages: 1... 56789... 27
  Archived months: [nov2016]

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