Beginners (Page 6)

Does Copy Constructor require explicit copy statements for each class members?
 
I have below code where I have a class with an array which is created by a pointer and another simpl...
[6 replies] Last: new (or new) doesn't return nullptr by default in case of error, but ... (by seeplus)
What is the best way of implementing this letter valuing function?
 
Hi. I'm probably overthinking all of this, but it's worth the try. I'm trying to implement a functio...
[3 replies] Last: Yes, use a look up table, if the look up is to be done many times. Id... (by JLBorges)
How to initialize classes to always be usable
 
Hi everybody, I am currently trying to figure what to do to initialize all functions at the start...
[7 replies] Last: Hello C++98! Default member initialization in a class is very much a ... (by George P)
Array (1,2)
 
Hello, can u help me answer this. Make a program that asks user to input array of numbers (positive ...
[26 replies] Last: You might want to have a look at pseudo code: https://www.techgeekbuz... (by thmm)
problem in c++
 
hello everyone, firstly happy holidays now to the problem:hello everyone could you help fix my co...
[4 replies] Last: If the size of the array is not a fixed value that is known before... (by kigar64551)
Access Form1 MenuStripItem from Form 2
 
Hi Guys, I'm using visual studio 2019. what I'm trying to do is call and access a menu option in my...
[10 replies] Last: C++/cli is MS's second attempt to merge C++ with .net (the previous ve... (by seeplus)
matrix problem in c++
 
hello everyone, firstly happy holidays now to the problem: I'm making a program in c++, to p...
[6 replies] Last: finally got it. l17 was supposed to be a line thank you (by The apprentice)
So many errors (1,2)
 
#include <iostream> #include <string> using namespace std; struct libro{ string nome; int a...
[21 replies] Last: Thanks (by adryborre)
Array of size n
 
Hello, I've started using C++ just this week. I've been using matlab for a few years. I want to d...
[10 replies] Last: I've been using matlab for a few years I missed that note before. I... (by jonnin)
Find element in priority queue
 
I was just wondering...How do you find an element in a priority queue if you only know its value wit...
[3 replies] Last: What's the context in which you want to do this? (by seeplus)
C++ to MySQL remote DB
 
I am new to C++, and if I wanted to create a C++ program on my Windows machine, and integrate it wit...
[2 replies] Last: I wanted to create a C++ program on my Windows machine, and integrate... (by kigar64551)
how do you put special characters such as(^) as regular strings for regex
 
I need to find ^ but the regex just sees it as the special letter, anyways to just make it a regula...
[3 replies] Last: The use of raw string literals is correct, but I do recommend using a ... (by Duthomhas)
by vboro
Classes?
 
Hi! I got a task where I must write the header file to the main.cpp (see below). I have found out t...
[6 replies] Last: The output, which must look like this: Inbox for consumer Blaise: ... (by keskiverto)
Advanced C++ Resources/Tutorials
 
So, I got the basics down, (cout, cin, functions, while loops, do while loops, for loops, classes, a...
[6 replies] Last: Just took a look at Learn C++ (https://www.learncpp.com/). It's reall... (by kbw)
by realtd
address book using lits
 
Hi! please help me with my home work. This assignment is to create a contact book so you can kee...
[9 replies] Last: You COULD technically use goto, I know, I know, please don't scream a... (by seeplus)
.
 
...
[8 replies] Last: Well, that little son-of-a-Bob-Wiley... (by agent max)
What would be the best way to design an OO EEPROM interface?
 
Hi, I am trying to design a program in which a controller needs to process information and then stor...
[2 replies] Last: Your concern doesn't make much sense to me. Effectively you just want... (by mbozzi)
by mikef
C++ Map of integers as key and class objects vector as value
 
Is it possible to add a vector of class objects in a map as value? If so, how can I insert an int as...
[2 replies] Last: Thank you! I figured out how to display the objects, I'll leave the co... (by mikef)
Class Not Being Recognized/Won't Declare Objects
 
I created a class 'Rectangle' under the header file 'Rectangle.h' as part of a build that I am doing...
[7 replies] Last: The conflict is not with a C++ library function - but within windows.h... (by seeplus)
Make a search record for string of the array (1,2)
 
I tried to make a search input record of words based on a string and I couldnt figure it out. Here...
[20 replies] Last: This should compile cleanly. Caveat: I've not tested it; not even run... (by JLBorges)
Pages: 1... 45678... 11
  Archived months: [nov2021]

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