General C++ Programming - May 2019 (Page 4)

user number display
 
Trying to make a user loop on which for when the user either enters (1 for attack or 2 for heal) on ...
[1 reply] : I'll try and point out a few of the problems using ///, and then mak... (by tipaye)
by a10e29
Malfunctioning Overload/ Calling Private Function
 
hi, To me it looks like I'm calling a private function. Am I actually doing that? class Movement ...
[7 replies] Last: I must be going crazy. I found the problem, it was between the screen ... (by a10e29)
Nested if, Need Help!
 
Guys I want to make a program that tells whether your are adult, teenager, kid or old. my table is l...
[6 replies] Last: Thank you very much guys. I wanted to make it in nested if. My code wa... (by danishdanish)
Functions
 
Questions: ------------- 1. void fillEmployees (string names , int salaries , int N) that asks t...
[2 replies] Last: You cannot define a function inside a function. Thus move printAllEm... (by coder777)
by stav
Why do i have to std::move an rvalue reference?
 
Hi I was coding today and tried to do the following: (constructor for my 'Socket' class, 'Socket' h...
[3 replies] Last: I understand std::move just turns an lvalue into an rvalue referenc... (by mbozzi)
Client handling event ActiveX without MFC
 
Hi, I need develop code in C++ that hook events activeX, where have file extension ".tlb". Could...
[no replies]
Writing a class for a timer with GetTickCount to time between two lines of code.
 
Hi guys! I'm new to posting, and new to programming, so I apologise beforehand! I have a number ...
[4 replies] Last: #include <iostream> #include <chrono> #include <ctime> #include <type... (by JLBorges)
by elsa
Enqueue and Dequeue functions not working in C++ menu
 
Program is supposed to enqueue doubles into a maximum array size of 6. However, it is not stopping a...
[3 replies] Last: Do add std::cout statements to observe what your code does while it wo... (by Enoizat)
Void list? C++
 
I am not asking anybody to help write the code but for the project i am trying to do i have a simple...
[4 replies] Last: ...which is nice, but does not satisfy the homework instructions given... (by Duthomhas)
Write a string that enter a name of a company
 
Please can anyone help I'm trying to write this code but I don't understand which is the length and ...
[2 replies] Last: Thank you for your help that is what I wanted, I didn't know how many ... (by closed account G6ko1hU5)
by montra
check status of DisplaySwitch.exe
 
Hi I want to programming check DisplaySwitch.exe status . you know DispalySwitch have 4 status (in...
[6 replies] Last: Thank you dear Duthomhas thank you : 1. You have solved many of my pr... (by montra)
by elsa
Can't determine if countNodes() function is operable since retrieve() function doesn't seem to work
 
BST.h #pragma once #include <iostream> #include <fstream> using namespace std; class BST { privat...
[4 replies] Last: Line 150 in countNodes() isn't indented property. It looks like it's w... (by dhayden)
Reading in File and setting variables
 
I'm trying to write a function read_fish that reads in a file and sets a few private class variables...
[1 reply] : std::string s; input >> s; if (s == "fish"){ //process the fish ... (by ne555)
Help Me! " expected primary expression before public " Cant fix it and need someone to fix it for me.
 
#include <iostream> using namespace std; class schools { public: void stfatima(){ cout <...
[4 replies] Last: ye and also it worked now. After I did all you described it made the e... (by masternono)
Is this programmer incorrect?
 
I noticed a programmer give this example const char *activities = { "Diving", "Lapping"...
[13 replies] Last: Good compilers generate a warning. Some compilers will just say UB ... (by Duthomhas)
by Ryan15
Providing error message for Number Guessing project
 
I'm trying to provide an error message if the user input a character/string, but I'm not sure how to...
[1 reply] : Like so if ( cin >> Input ) { if (Input > Num1) { co... (by salem c)
Access violation
 
Greetings fellow coders, I'm dabbling in C++ and while trying to solve this SudokuChecker problem (...
[2 replies] Last: Hey dhayden, Nice catch! I changed it here and along with parsing for... (by Hastermain)
C++ data structures
 
Problem Statement: You have to implement a List Data Structure of student profile information rec...
[3 replies] Last: Start with the data. Write the declarations for struct StudentProfile... (by dhayden)
How do I make GetAsyncKeyState detect if Caps Lock is toggled?
 
So i am trying to make a program that holds down right-click when Caps Lock is on and doesnt click w...
[1 reply] : Aren't you supposed to test the most significant bit? if (GetAsyncK... (by dutch)
by montra
Count specific process name
 
Hi I want to count specific title in process . for example when I run twice calc.exe in my system...
[6 replies] Last: While the following link is about enumerating windows , the way to en... (by Duthomhas)
May 2019 Pages: 1234567
  Archived months: [apr2019] [jun2019]

This is an archived page. To post a new message, go to the current page.