General C++ Programming - November 2017 (Page 4)

odd and even mouse clicks
We've been tasked to make a tic-tac-toe game but it seems like were all getting stuck on alternating...
[2 replies] Last: The way we were taught to do it today was with all the if's, i agree i... (by Fillip F)
Range-checked list class?
How do I make a list class range-checked? The code I'm using is here:
[6 replies] Last: So I shouldn't check for cur->succ being nullptr in increment? I fi... (by DragonOsman)
Adding spaces between names in a string
I'm thinking this is a simple problem, but I am having a lot of trouble figuring out. I need to be ...
[10 replies] Last: I made j and l global variables so that all my functions can have acce... (by Metalman488)
Not getting required output composition relation between classes
I want to display the following message: **WebPage default constructor called** **Links defa...
[3 replies] Last: I'm not sure what you're trying to do. Your title suggests you want ... (by AbstractionAnon)
creating a function in a separate file and calling it in a source file
god that title's pure pish so i'm writing up a little program for a text-based game i might make ...
[1 reply] : i was wondering if there was a way to define the whole thing as a fun... (by AbstractionAnon)
How to print submatrix?
I'm trying to plot out this matrix : 11 12 13 14 0 0 0 22 23 0 0 0 0 0 33 34 35 36 0 ...
[2 replies] Last: #include <iostream> #include <iomanip> #include <vector> using namesp... (by lastchance)
A* Search G Score calculation.
I am trying to implement the A* search algorithm, and I have the follwing function to calculate the ...
[no replies]
calculating students average
hi! i am doing this for a school project and i need help with the output. this is what the output is...
[1 reply] : You are very nearly there. Just a couple of comments. The important on... (by Chervil)
Computes the CGPA of 200 level students
Please i am new to C++ programming and require your urgent assistance on the task below. Thank yo...
[1 reply] : We are not a code writing service. If you want to learn programming, m... (by Thomas1965)
error - locale name not valid
The following example is excerpted from Stroustrup's book: /// ... void test(istream& fin, ...
[1 reply] : Locale names are implementation specific. In particular, with the GNU... (by JLBorges)
by wjcd
Is this usage of shared_ptr correct?
I try to use shared_ptr to manage data of several types. So I use shared_ptr to hold different data ...
[4 replies] Last: > If I use std::variant<>, I also need to pass in the different data t... (by JLBorges)
Calculating GPA
hi! this is a school project and i need help on making the GPA 2.333333. i think the problem lies w...
[2 replies] Last: okay so under the variable declaration segment i kept the first two as... (by kristal630)
Initializing unspecified number of integers in a class
How can I define a class that receives unspecified number of integers? My purpose is code a program...
[3 replies] Last: this call relies on the caller to check that the passed values are co... (by mbozzi)
Matrix operation error messages
I am trying to do matrix : multiplication , addition , subtraction and transverse using vector ,set ...
[11 replies] Last: Hi , the error message i am unable to figure out is : :Severity Code... (by shishir2002)
How to find Vowels, Lowercase, and Number of occurance for each letter
This is my first post ever, so please bear with me as I do not quite understand how to post my code ...
[2 replies] Last: the <> tags when adding a post turn it to code. # lowercase... for... (by jonnin)
by stav
Compiling pure virtual functions to dll
Hi I'm trying to compile this code in to a dll but im getting an error. Code: #pragma once #ifd...
[1 reply] : See: (by helios)
What are some good uses for C++?
I'm 16 years old, and in June I jumped into programming. I'd say I'm average in both C++ and Python,...
[13 replies] Last: Heh heh. Whoops. (by helios)
Problem with detecting walls
I am a student practicing C++ programming, and I am creating a simple 2d maze game, kind of like pac...
[2 replies] Last: A wall is a wall. When you approach a "vertical" wall from the bottom... (by doug4)
readsome() on cin
The readsome() unformatted I/P function applied to cin doesn't seem to work properly: #include <i...
[6 replies] Last: > It's basically because C specifies stdin, stdout and stderr to be un... (by JLBorges)
Document program from PPP2 Chapter 20 - can't compile
User code: #include <iostream> #include <fstream> #include <list> #include <vector> #include "D...
[9 replies] Last: It's saying it about the list iterator again after I made that change ... (by DragonOsman)
November 2017 Pages: 123456... 16
  Archived months: [oct2017]

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