General C++ Programming (Page 2)

by c0d3r2
What do i type in to add “SFML-2.5.1-windows-gcc–7.3.0-mingw-64-bit” to my path?
I really need help with this. Please help!!
[1 reply] : Stop creating new threads for the same issue. Go away. (by helios)
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: ...
[3 replies] Last: Delete your other thread you just made before someone replies to it. S... (by Ganado)
by jonnin
C arrays are not types. They are pretty low level, raw things in c++. They are a block of memory t...
[3 replies] Last: Yes, that is true: I was wrong to say its not a type. It absolutely ... (by jonnin)
How to fix my code to follow the sequence (1,2)
currently doing a project for my class to create a program to run off a microcontroller. The program...
[21 replies] Last: @OP, Move your 'do' to line 51 and the while to line 97. You want to... (by doug4)
by kitfox
Best way to buffer small objects in memory?
I need to buffer a bunch of small objects in memory as part of a Variant class I'm creating. Each V...
[2 replies] Last: Once you get into it, consider a design via bottom up. You need your ... (by jonnin)
Where should we delete object when exception occurred?
Hi All, Where should we delete ptr object in function Func() ? class Base { private: ...
[6 replies] Last: @Repeater Yeh I got it. Thanks. (by akash16)
by OYS
I'm trying to read from a text file and put them into different members of structure
typedef struct { int isbn_code, year_published, quantity, rack, level_no; char author , tit...
[7 replies] Last: Oh yeah! Thank you so much for helping out!! (by OYS)
C++ Memory Segment
In C++ When we declare static member inside the class ,we can able the acess the stactic member...
[4 replies] Last: A static member function has no 'this' pointer, so there is no object ... (by salem c)
How to add two operator overloading functions (- and ==) ?
Hello, sorry i'm currently new in programming, and i'm currently learning about operator overloading...
[3 replies] Last: The operator+ does not have to be a member of Time, if you create me... (by keskiverto)
program to find most common word
So covid19 has struck, I have no excuses in the world not to code so I wrote a simple program to cou...
[11 replies] Last: The problem is that C++ is steered by a committee. 'Nuff said. ...bu... (by Duthomhas)
by Denvor
help with compiler error
hi can someone help me i keep getting the error error: cannot initialize return object of type 'ch...
[4 replies] Last: you are making it harder with the * syntax. s1 is *(s1+3) '\0' is... (by jonnin)
Doubly­linked lists help!
I am needing to split a list. I want the list to split into two list, one list will have values less...
[4 replies] Last: Thanks. Please show whatever code you have so far. Are you using std::... (by dhayden)
Convert from Python to c++?
/code def primes_upto(limit): is_prime = * 2 + * (limit - 1) for n in range(int(limit**...
[4 replies] Last: Convert from Python to c++? Since you know Python, you can tell wha... (by keskiverto)
cgrep, a grep-like tool for C-family
Hi, I would like to introduce cgrep, a grep-like tool for C-family source files. It basically lets...
[no replies]
by c0d3r2
How do i add SFML 2.5.1 to my path?
This message shows up on Atom: fatal error: SFML/Graphics.hpp: No such file or directory #include...
[no replies]
Using C++ programming, design and develop medical and engineering applications. The project sho...
[2 replies] Last: #include <iostream> #include <cctype> #include <limits> int main() {... (by Furry Guy)
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. (by Ganado)
Pages: 1234... 9
  Archived months: [feb2020]

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