• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
by c0d3r2
How do I add SFML 64-bit and add 64-mingw to my path?
To be more exact: the SFML full name is: SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit and the MinGw: ...
[1 reply] : To literally answer your question, search for "Edit the system environ... (by Ganado)
C++ Memory Segment
In C++ When we declare static member inside the class ,we can able the acess the stactic member...
[1 reply] : The standard leaves the "where" up to the implementation. Suffice it t... (by helios)
Convert from Python to c++?
/code def primes_upto(limit): is_prime = * 2 + * (limit - 1) for n in range(int(limit**...
[1 reply] : Gee, posting a language that absolutely depends on indentation to make... (by salem c)
how to convert void* to int
I am using a library which has callback function with void* as a parameter. I need to get int from t...
[5 replies] Last: Thanks everyone for the response, Doing below cast works static_cast<... (by Scarletpimp)
by Hanske
Boost serialization (1,2)
I would like to save objects from a parent class in a text file and then be able to load the objects...
[27 replies] Last: Ah thanks ne555! I forgot to update my post but I figured it out about... (by Hanske)
by Utku
SFML rotation of sprite with small steps
Hello everyone. I want to rotate a sprite with small step sizes. I do not want to write directly...
[5 replies] Last: It should be seen as continuous change in rotation. Every game frame... (by Furry Guy)
Cannot create a std::vector of const std::string!
Hi, I cannot create the following vector: std::vector<const std::string> constvec; I ...
[1 reply] : Can't do it. https://stackoverflow.com/questions/6954906/does-c11-all... (by Ganado)
by joe809
Lexeme Tokens
Hello, I'm having trouble returning the correct number of Tokens in a file. For example, the input o...
[5 replies] Last: When you read the escape character ("\"), you want to read the next c... (by doug4)
How to fix my code to follow the sequence
currently doing a project for my class to create a program to run off a microcontroller. The program...
[7 replies] Last: Your code to calculate the total rolled looks right. However: 1. Yo... (by doug4)
unique words from file!!
its been 3 days i just cant identify whats wrong with the program the program should compare words b...
[3 replies] Last: At least one mistake is on line 22: Replace sizeof(temp) with temp.... (by coder777)
by OYS
How to read a text file with data separated by commas into different variables respectively
9780099584353,Haruki Murakami,Norwegian Wood,Vintage Publishing,2003,1,37.90,1,2 The data represe...
[5 replies] Last: > but what if i want to insert the text file into an array? how do i d... (by salem c)
Find the "Initial Patient" of a disease using code.
Can anyone help with this problem? It's a last in a set of challenge problems I've finished the othe...
[3 replies] Last: I've only thought of throwing out the cases where two healthy cows int... (by DatKidBoris)
by Catchy
trying to make a player go around a map and give you certain phrases when you land on specific spots
The problem that im having is that when the player goes over any of the map tiles it doesnt regist...
[1 reply] : > if (gameBoard == gameBoard || gameBoard ) This isn't how you co... (by salem c)
Creating a Mode function using array ponters
I am trying to create a mode to find the mode in an array of pointers. In my code works except for ...
[2 replies] Last: I was able to get my code to work by modifying it so it compared the v... (by Wsaint1990)
by Zanza
Error in function?
[4 replies] Last: You want help don't edit your posts and delete the contents. Doing so... (by Furry Guy)
by Odglog
How to skip lines in file without using a loop?
Hi A really quick one, I have a data file and I want to start reading from line n. The thing is, it'...
[16 replies] Last: you don't need to store anything for the fixed width 'line' technique.... (by jonnin)
How to efficiently pick points from a given array so the distance between the two closest points are maximized.
Hello. So I've been trying to solve this problem from my coding camp that has stumped me for hours. ...
[8 replies] Last: It's not for me to solve the puzzle for you. You're the one who presum... (by dutch)
how create a 3D Game without libraries?
ok... know that uses very math... but is there any tutorial for i create my 1st shooter game? - how...
[15 replies] Last: that entire image is 2 images for the cube... in these case i use the ... (by Cambalinho)
Should we initialise queue and maps of a class in constructor
I have a class which has queue and map like below where astruct is a structure and aclass is a class...
[3 replies] Last: Thanks, that answers my question. (by Scarletpimp)
Pages: 123... 15
  Archived months: [jan2020]