Anonymous
You're the boss
Roxifλsz 🇱🇹
Very well
Roxifλsz 🇱🇹
Has anyone done any "interesting" projects with imgui (https://github.com/ocornut/imgui)? I'd like to browse some perhaps "exotic" code examples of how it's used
Dima
there’s a section @ github discussion, people are posting screenshots and code
Dima
I made a docking system using imgui, pretty interesting
Dima
Link?
#googleit
Dima
https://github.com/ocornut/imgui/issues/2847
Roxifλsz 🇱🇹
https://github.com/ocornut/imgui/issues/2847
That wasn't so hard now was it?
Matthias
/get cppbookguide
Kenny
Did u create an object?
su
do not use class names as duplicates
Kenny
Could u share the code?
Kenny
Use pastebin
Kenny
Share it if u want
su
this is not compiler problem. this is problem, that you initialize class variables, which is accessed by this pointer, and use in output of global variables which is NOT initialized, and this misfortune is because of names duplicates inside and outside class 1) you are idiot, which i hope is not the case 2) global variables is not initialized
~
Hii friends my name is vishwa
~
Here any body have knowledge on pseudo code?
~
Hii any body there here expert in c,c++ and data structures
~
?
~
/report
Bro I need help Soo that's way I asked
~
Any thing wrong in my qn?
~
Okk bro I am sorry for that
~
/report
I have told that sorry naa why again and again ur reporting
su
I have told that sorry naa why again and again ur reporting
"A request is considered legitimate if it describes your problem, what you've done so far and what went wrong."
su
I have told that sorry naa why again and again ur reporting
ask a question with code, what you have done, pastebin.com and possible results, and what you get and how you tried to solve it
Madhav
Hi
su
Hi
read pinned message and ask question
Roxifλsz 🇱🇹
Roxifλsz 🇱🇹
I hope you're not going to ask someone to solve that homework for you.
Anonymous
/warn @vishwavinny PMing
Anonymous
Lol
.
Someone have a link to assembly project?
.
Assembly games code
Asdew
#ot
Madhav
Hi
[BLĀNK]
[BLĀNK]
How's everyone doing?
Dima
#ot
lol
[BLĀNK]
#ot
#cpp
M__
which function is used to set cursor in C in turbo c++ it was gotoxy(int x , int y);
Garvine
: Write a c++ program that will determine if the value keyed in by the user is a power of two or not : Anyone to assist
Garvine
What have you tried so far?
Just want an idea of how to do it
Roxifλsz 🇱🇹
: Write a c++ program that will determine if the value keyed in by the user is a power of two or not : Anyone to assist
Sounds like you want someone to spoon-feed you, why don't you try doing some thinking for yourself? Hell, actually just try googling it first.
Alex
Just want an idea of how to do it
for positive integer value: count 1-bit in value. if count is 1 - is power of two
olli
Just want an idea of how to do it
x is a power of two iff x is positive (gt 0) and the expression x & (x - 1) clears all bits
Garvine
Sounds like you want someone to spoon-feed you, why don't you try doing some thinking for yourself? Hell, actually just try googling it first.
If u lack a way to respond just remain silent I did it my own way and wanted to see what others have😕😕
Roxifλsz 🇱🇹
If u lack a way to respond just remain silent I did it my own way and wanted to see what others have😕😕
You do realise that your question sounded like a copy paste from a homework assignment or something similar?
Roxifλsz 🇱🇹
remain silent, dawg
Remove yourself, sir, go back to work, prod is on fire
Anonymous
Hello
Dima
lol
su
You right This is my homework I coundnt write any code about this problem If I didn't need this problem to be solved very much I really wouldn't ask you for help I understand that no one will help me. Thank you, thank you anyway
only you can save your butt anyway. we can wrote enterprise grade code, cmake, tdd, unit tests and CI/CD into AWS, for any task, wrap it with YML, Docker, bash scripts, push on kubertenes your calculator, but how you would explain your teacher why do you need to do 100% code coverage and Behave, or acceptance tests, if you didn't khow how to deal with?
Indolent
#include <iostream> using namespace std; void printFun(int test) { if(test < 1) return; else { cout << test << " "; printFun(test - 1); cout << test << " "; return; } } int main() { printFun(3); return 0; }
Indolent
Can you explain how the recursion is taking place here. I really can't understand a thing.
Roxifλsz 🇱🇹
Can you explain how the recursion is taking place here. I really can't understand a thing.
You might understand it easier if you made your cout statements different, for example: print "pushing" before printFun(test - 1), and "popping after printFun(test - 1)
Roxifλsz 🇱🇹
Otherwise I'm not sure what you're confused about here
Madhav
Hi
Indolent
Otherwise I'm not sure what you're confused about here
What exactly happens when printFun(test -1); line is executed?
Roxifλsz 🇱🇹
Well, same as in a regular function call, really, printFun is called with a new argument and when it finishes the current "iteration" of printFun` continues
Roxifλsz 🇱🇹
Fun, I fucked up the formatting in that message, but since xiaomi android cucks the text selection context menu, I can't clear it
Indolent
Well fuck
Indolent
Like if that's the case then why, in the output, after printing 3 2 1 it prints 1 3 3? Like how?
Indolent
*1 2 3
Roxifλsz 🇱🇹
Like if that's the case then why, in the output, after printing 3 2 1 it prints 1 3 3? Like how?
You pass a modified test into the new function call, but you do not change the locally available test. Basically each recursion has it's own variables
Indolent
This isn't Hogwarts, Potter.
Indolent
No worries we'll accommodate you still.