General C++ Programming (Page 3)

critical hit system, C++
 
I am trying to create a simple hit and critical hit system. from using a random number from 1-10 tha...
[6 replies] Last: do { if (counter == 0)// if the counter variable is 0 it is the pl... (by AbstractionAnon)
Need help sorting matix
 
Hi I'm trying to write a program to rearrange a two different matrices such that the numbers below e...
[8 replies] Last: You aren't quite looping correctly. The structure should be: for each... (by lastchance)
Date file addresses on other computers
 
Hello. I've been working on an application that reads and writes to a data file. I have everything w...
[8 replies] Last: No it'll be in the current working directory. I wonder where the wor... (by zapshe)
Can't get calculations right
 
I'm writing code to make a basic Rational class but i keep hitting a dead end. My r1.ad...
[6 replies] Last: If you can't change the header, you could just have all constructors c... (by dhayden)
by hixtus
Incorrect/Partial Output - Stuck please Help!
 
Hello! Please help. I'm stuck. Thank you so much :) I was tasked to create a program that would o...
[6 replies] Last: So... I’m doing a really terrible job of explaining this stuff. Als... (by Duthomhas)
Program is in infinite loop for some reason.
 
#include <iostream> using namespace std; int main() { int question; int play; ...
[3 replies] Last: PLEASE learn to use code tags, it makes reading and commenting on your... (by Furry Guy)
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)
by wafic
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)
by wafic
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 wafic)
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)
Pages: 12345... 15
  Archived months: [mar2019]

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