dezgusty / cpp-playground Goto Github PK
View Code? Open in Web Editor NEWPlayground
License: MIT License
Playground
License: MIT License
The for each( in ) loop used in main.cpp is a Microsoft specific syntax that is not found in C++ standard.
To make it work on other operating systems you will need to use the C++ way of doing range based loop:
for (Feline* feline : felines)
{
feline->make_sound();
}
// clean-up
for (Feline* feline : felines)
{
delete feline;
}
When I am trying to build the project I get:
fatal error: ConvertUTF.h: No such file or directory
from the SimpleIni.h file.
I think you also need to add ConvertUTF.h and ConvertUTF.c in the simpleini folder.
In the main_matrix_console.cpp file the second and the third expected values are wrong since the index starts at 0 not 1 and it grows from the top to the bottom.
So for the second test the expected value should be:
X-----X----X-----XX-
--X-----------------
-----X--------------
--------X-----------
-----------X--------
--------------X-----
-----------------X--
-------------------X
------------------X-
-----------------X--
And for the third one:
X-----X----X-----XX-
--X-----------------
-----X--------------
-------OX-----------
-----------X--------
--------------X-----
-----------------X--
-------------------X
------------------X-
-----------------X--
In the armstrong_main.cpp file on line 36 the expected value for
03_armstrong.exe 2
should be:
NOT Armstrong
instead of:
Armstrong
since 2 ^ 3 = 8 != 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.