General C++ Programming (Page 9)

Max value question
(Question)Write a C++ program that declares an integer array of size 10, then uses three separate fu...
[2 replies] Last: [quote=your_tutor]Write a C++ program that declares an integer array o... (by salem c)
CALLBACK EnumChildProc
#include <windows.h> #include <iostream> using namespace std; BOOL CALLBACK EnumChildProc(HWN...
[4 replies] Last: Thanks for answer, I mean that I will use them every time with changin... (by Hawlong)
The risk of wrapper class usage for std::vector<std::atomic<T> >
Dear experts I understand std::vector<std::atomic<T>> is prohibited, but there is wrapper class of ...
[4 replies] Last: Dear helios Thank you for your kind reply. Yes, I meant just reading... (by Mitsuru)
how to get a pointer to a struct's function
struct X{ int x = 3; int get_x(){return x;} int add_x(int i){return x+i;} }; int main() { X s...
[3 replies] Last: The C-ish way using function pointers. (by salem c)
by am2809
What is wrong with my toupper loop?
Hi, My program is running good I'm just having trouble with my toupper loop. Every time I run the...
[4 replies] Last: main() should return int, not void. It looks like you're trying to ... (by dhayden)
I want it to print if "LINDO" is said or print that way if "lpsolve" is said need help
//March 2021 // Collin Brown, Jada Satchell, Deric N //Compiler: C++ Shell #include <iostream> ...
[2 replies] Last: You can't define a function within a function eg you can't define anot... (by seeplus)
by cernet
C++ design pattern: Observer
Are there any resources that teach (with examples) the observer pattern and other design patterns?Th...
[2 replies] Last: Have a look at Design Patterns in Modern C++: Reusable Approaches for ... (by seeplus)
Use std::list to remove element from user entered string
If this function uses a user-entered string ISBN, how can I find the element in the linked list and ...
[1 reply] : > how can I find the element in the linked list go through each elemen... (by ne555)
Time limit exceeded
I've been stuck on this problem ( for a pretty Long wh...
[4 replies] Last: @lastchance: I don't understand you, you complain about an unnecessary... (by ne555)
program to add 3 values and add 16% value added tax
im supposed to create a c++ program that adds three values together and adds 16% value added tax and...
[1 reply] : There's a tutorial here at cplusplus: (by Furry Guy)
by helios
Given: class PlayState{ public: enum Value{ STOPPED = 0, PLAYING, ...
[8 replies] Last: @helios - I'd suggest reporting this to MS as a bug. (by seeplus)
Deadlocked Multi-Threads
I'm trying to optimize my program. So I decided to run 4 multi-threads to increase performance. Howe...
[6 replies] Last: > EDIT: I think it's to do with this line I think you need to post th... (by salem c)
by VoB
Premature deletion: CPL book example
I'm trying to understand more in details the concept of premature deletion The following is tak...
[2 replies] Last: Thanks @seeplus for your check. I know it's better to use manager obje... (by VoB)
this code work some time some time no
some time the cursor lead the circle so the circle stop draging iam using glfw c++ no ortho setting ...
[5 replies] Last: yes salem thanks alot it was the error now it work perfectly Ganado... (by aymanawa)
What does Profiler's readings mean when a runnning a multithreaded program
Profiler: CallGrind CPU: 2-Core SMT I am profiling a program, which contains some logic that I have...
[1 reply] : i believe it is pure %. So 1/2 your *processing effort* was spent on... (by jonnin)
replace function with c++
So, in python, you can easily replace a phrase in a text using s.replace(,). I wanted to know how t...
[3 replies] Last: Or to replace all occurrences rather than just the first: #include ... (by seeplus)
by Ticbow
Text editor c++ gui
I'm trying to practice my c++ by making a mock text editor for console applications like that of the...
[2 replies] Last: Thank you, I'll try that out! (by Ticbow)
Pages: 1... 789
  Archived months: [mar2021]

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