Pinned Repositories
2048-in-cpp
2048 game in c++ without graphics
3D-solar-system
Computer Graphics 3D solar system on C++
algorithms
Algorithms in python and C
Algorithms-1
github-slideshow
A robot powered training repository :robot:
Hacktoberfest-22
This is an OpenSource repo for all the Hacktoberfest geeks
Hacktoberfest-3
Submit Your contributions
Hello-World
My first repository on GitHub!
Tell-Me-a-Joke.github.io
The-Car-Animation
CodingWithAmit-07's Repositories
CodingWithAmit-07/3D-solar-system
Computer Graphics 3D solar system on C++
CodingWithAmit-07/CIS-141-Project-5-UIC
Vexed Game in C++ with Graphics
CodingWithAmit-07/CrackTheCode
Just a number finding game
CodingWithAmit-07/Hello-World-Algoritmo-Genetico
Um simples Hello World em C++ utilizando algoritmo genético.
CodingWithAmit-07/hello-world-cpp
Simple Hello World in C++ from Eclipse
CodingWithAmit-07/HelloWorld
VS2017 C++
CodingWithAmit-07/if-else
c++ begin
CodingWithAmit-07/If-else-1
C++ project involving if-else loop
CodingWithAmit-07/if-stmnt-cpp
if else in c++
CodingWithAmit-07/If_Else_Statement__CPP
Fundamental C++: Statement If dan Else
CodingWithAmit-07/Pelindrome-checker
Palindrome checker using C++
CodingWithAmit-07/StringReverseCPP
A "line" reversal reverses the entire line. In a line reversal, "Hello world!" becomes "!dlrow olleH" A "word" reversal reverses each word. In a word reversal, "Hello world!" becomes "olleH !dlrow" A "lineword" reversal performs a line reversal and a word reversal. In a lineword reversal, "Hello world!" becomes "world! Hello". No matter how many spaces between words in the input, the output should have only one space after each word. So a line reversal of "Hello world!" becomes "!dlrow olleH" Write a C++ program that does line, word and lineword reversals. The program is told which type of reversal to perform by providing a single command line argument, "line", "word", or "lineword". If no command line arguments are provided, the program should print "MISSING FLAG" and stop. If an unrecognized command line argument is provided, the program should print "UNKNOWN FLAG" followed by the unrecognized argument, and stop. If more than one command line argument is provided, the program should print "TOO MANY FLAGS" and stop.
CodingWithAmit-07/Templates---Interpolated-ostream-Output
The C++ <iostream> is arguably more idiomatic for C++, but is harder to read and type (at least for me) than C's printf(). C's printf() is not extensible and not type-safe, however. This is an attempt to get the best of both worlds. Write a function template named Interpolate that will make the below work. Each argument will be output when its corresponding % is encountered in the format string. All output should be ultimately done with the appropriate overloaded << operator directly to the actual std::ostream object. In other words, you should not build a string, then output that. A \% sequence should output a percent sign. SomeArbitraryClass obj; int i = 1234; double x = 3.14; std::string str("foo"); std::cout << Interpolate(R"(i=%, x1=%, x2=%\%, str1=%, str2=%, obj=%)", i, x, 1.001, str, "hello", obj) << std::endl; If there is a mismatch between the number of percent signs and the number of arguments to output, throw an exception of type cs540::WrongNumberOfArgs. Support the I/O manipulators listed here. An I/O manipulator should not “consume” a percent sign, unless it actually adds something to the output stream (std::ends, std::endl, std::put_money, etc.). You should be able to support these without creating a partial specialization or overloaded function template for every single manipulator. The ffr() function is a helper function to force the instantiation of manipulators that are actually function templates. If you don't need it, that is fine, and in fact even better. Otherwise, you'll need to implement it. . You might find std::integer_sequence and std::tuple to be of help. Also, std::enable_if (SFINAE).