Comments (2)
I don't know why the website reported an error but didn't show it.
But maybe I can help with the code. Look at the constructor. In the function body it assigns num = num;
. That doesn't work, officially it reads an uninitialized member variable num
(invoking undefined behavior), but in practice that statement will probably do nothing, and num
still has an "indeterminate value".
Instead initialize num
in the "member initializer list", just like elems
: : elems(num), num{num} { }
In that context the first num
in num{num}
refers to the member variable, the second one to the parameter.
from website-copy.
thank you. with your help, i managed to solve the exercise.
from website-copy.
Related Issues (20)
- Prevent people from accidentally comitting comments with unescaped %
- Typos: missing word in configlet description HOT 4
- Mentor Say there is an error in Scala two fer
- Irregular spelling ("Focusses" vs "Focuses") on About page.
- Mentor notes layout: Suggested comments should wrap, otherwise not readable HOT 5
- Accessibility : `Publish your code` Dialog not accessible by NVDA screen reader.
- Exercism swag site typo
- Incorrect language counts on login screen
- CLI walkthrough: installing Homebrew on Mac: instructions out of date?
- Typo on 'Get involve in the community' button on dashboard
- Add CLI install via Nix instruction
- Typo on Community page
- analysis of submitted exercise takes unusually long (_still processing_) HOT 2
- During signup: values page mentioned but not linked to
- 79850436079
- Rust/Gigasecond mentoring.md outdated
- Ну HOT 2
- Make complete exercises uncompleted HOT 1
- El_negro_willi #1: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website-copy.