ninja
?
GHAMDAN_NSHWAN
Where is this ?
ninja
i am taking about these warnings!
ninja
Read the rules
didn't get anything about removing warning's
ninja
in rules
klimi
Exactly.... You don't remove them
ninja
So, when the admin going to remove those warning's
ninja
or "How may i ask him/her to remove my warning"
yash
/notes
yash
Get googleit
Vineet
/notes
ninja
/notes
ninja
ninja
i don't know what you wan't to say
Anonymous
Hola
Pankaj
How to use sleep function
ninja
/googleit
Pankaj
/googleit
ninja
/googleit
i mean you should do google first before typing question here
Ehsan
Pankaj
Anonymous
/get callingfunction
Anonymous
/get implicit-type-conversions
Anonymous
/notes
Anonymous
/get bro
Anonymous
/get cppbookguide
z
/get reading-cdecl
Earl B
Hey everyone, noob here. Just about to keep going through these youtube tutorials
Earl B
Learning C
Anonymous
/notes
Rishabh
/ get best-book
Anonymous
/notes
Earl B
/get best-book
Earl B
I've been reading "C Programming Absolute Beginner's Guide" by Greg Perry Dean Miller
Anonymous
/get best-book
Anonymous
#best-book
Darrel
/get ide
Sandeep
#include <iostream> #include <chrono> #include <thread> int main() { using namespace std::literals: :chrono_literals; auto start = std::chrono::high_resolution_clock::now(); std::this_thread::sleep_for(1s); auto end = std::chrono::high resolution_clock::now(); std::chrono::duration<float> duration - end - start;👈👈👈 //What is duration<float>...is it a data type?? Or a class or a template??👈👈👈👈 std::cout << duration.count() << "s <<std::endl; std::cin.get();
Pavel
If I have a non-void function that has a while (true) loop and it has no breaks inside it, just return. Is it fine if I don't return after the loop (in the unreachable code)? Or should I do something additionally so no static analysis tools will complain? Like this int getRandomNumberButNotEight() { while (true) { int randNumber = randGenerator(); if (randNumber != 8) { return randNumber; } } // no return here }
Pavel
I don't see problems with it so far, but I wonder if there is some attribute or something to mark places like this.
Ravi Teja
/googleit
Pavel
perhaps you need to put something like timeout and return? cmiiw.
I have a counter and return, but it also inside the loop
Anonymous
/googleit
Anonymous
/googleit
Anonymous
Guys
Anonymous
How can I create a Multi-datatype array
Anonymous
In c++
Pavel
How can I create a Multi-datatype array
The simplest way would be to use std::vector<std::any>>, but it depends on what you're going to store there
Anonymous
String ,int ,double ...everything 😂
Pavel
I mean if you know all the types that going to be stored and they are small enough, std::variant instead of std::any can be more efficient.
Pavel
String ,int ,double ...everything 😂
Then std::any should be good, I guess
Anonymous
Oh ...thx
Anonymous
I appreciate it 🙏
Ludovic 'Archivist'
There is an attribute
Nevermind, not standard
Dylan
any one with an idea on how to write a c code for a truth or dare game?
kaushik
im trying to build a basic cpp program using cmake, but the generated files do not include the makefile. instead i have the visual studio sln file. how do i generate the makefile? when i try to use the cmake command, it says building for visual studio.
kaushik
this is my cmakelist file
kaushik
cmake_minimum_required (VERSION 3.17.3) project (2DPlatformer) add_executable (2DPlatformer main.cpp)
Pavel
any one with an idea on how to write a c code for a truth or dare game?
You need a list of players (vector of strings), and then if you want questions/dares to be stored or populated by the players you need to store them also (it can be just strings with placeholders or instances of classes with meta information). I have a very similar game for telegram (but it's written in go, and it's basically only dares), it supports session management and players enter dares that will be executed at random, they are saved as strings in my case. https://github.com/gameraccoon/telegram-the-king-says-bot
Pavel
Nevermind, not standard
What attribute/compiler is it?
TMK
guys do you have any materials to learn c++
Silvester
Hello guys
Anonymous
/get cppbookguide
fluffy
Rose
Anonymous
https://wandbox.org/permlink/g4OgRaP3aIfeoItL why does this hang?
Anonymous
Hello. Anyone here knows anything about cryptocurrency and C++ programing ?
Anonymous
Somebody to help me with all the C++ notes,,,i am a beginer
Anonymous
Hey guys I got to ask
Anonymous
How hard exactly is working with android using C++ ?
L0kzy
/get cppbookguide
Anonymous
you mean opengl?
No I mean like using a phone
Anonymous
Making a program or an app for an android phone