• 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]
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)
by jonnin
 
C arrays are not types. They are pretty low level, raw things in c++. They are a block of memory t...
[1 reply] : The OP has since been removed, but the original question was some nons... (by mbozzi)
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...
[20 replies] Last: Is there anyway to return to the beginning [...] of the loop continu... (by Ganado)
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]
Assignment
 
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)
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)
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)
Pages: 123... 8
  Archived months: [feb2020]