Konstantin
How to push elements in a stack in c++?
https://en.cppreference.com/w/cpp/container/stack/push
Anonymous
How to push elements in a stack in c++?
Do you know how to use reference??
Dima
Till
Guys here is my code
Shit code, delete it
Dima
What the fuck is going on
Dima
a bunch of screen photos
Anonymous
I guess pasting code is too hard.
Anonymous
Guys here is my code
Forward declare fact.
Anonymous
Next customer.
Sid Sun
/notes
Sid Sun
#cbook
Sid Sun
Prab
n1coc4cola
Hello, I'm trying to do a dbus with qt, my first test was right but now, I want to use it with a qstring, but when I use it, I have: nextui_adaptor.h:54:10: error: ‘void LocalAdaptor::setTheme(const QString&)’ cannot be overloaded void setTheme(const QString &theme); ^~~~~~~~ nextui_adaptor.h:50:10: error: with ‘void LocalAdaptor::setTheme(const QString&)’ void setTheme(const QString &value); All of this is in a header file created by qdbuscpp2xml, I don't understand the problem... (note the fact that I'm a little newbie)
n1coc4cola
Jack
Oh hell yeah
n1coc4cola
You're here, so can you help me?
Jack
Regarding wht?
Jack
Tell me will help u
Sid Sun
You're here, so can you help me?
Interesting way to ask for help but okay
Riccardo
@Occupato Are you admin here? O.o
Riccardo
Hey :D
That's not exactly an answer to my question lol
Riccardo
My top right sign says so :P
Maybe it were a Jedi mind-trick u.u
QiangZe🐉
Hi
Anonymous
/report
Ghost🔥
/report
🤷‍♂ why
Anonymous
🤷‍♂ why
Read the rules
Mat
Share the code, not the screen -.-
Mat
And you shouldn't provide code without a little explanation. At least if you want to help someone
Ghost🔥
Its a reply
Mat
I was trying to help
I'm telling you to share not a screen picture but something like a pastebin link with some context/explanation on what you've done :)
Rishabh
I'm also new
Abhishek
Any book for DSA
lucky
#include<bits/stdc++.h> using namespace std; int main() { Cout<<"hello to all "; return 0; }
lucky
error identifier Cout undefined😂
😭😭 i dont know when i will become a pro coder :)
Mat
#include<bits/stdc++.h> using namespace std; int main() { Cout<<"hello to all "; return 0; }
> #include<bits/stdc++.h> That's a really bad idea :P > using namespace std; That one, too
Francisco
> #include<bits/stdc++.h> That's a really bad idea :P > using namespace std; That one, too
Including the whole STL is useful in competitive programming, that's all
Mat
Including the whole STL is useful in competitive programming, that's all
I know. But here we're not in a competitive programming event 🤷‍♂️
Dima
Why using namespace std is a bad?can you explain.
Imagine std has method called max and your other namespace does so
Francisco
Why is "using namespace std;" considered bad practice? - Stack Overflow https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
lucky
lucky
Yes
Alright
lucky
Anyone here do competitive programming???
Anonymous
And it is kinda offtopic here
lucky
Whats is meta questions ❓
Artöm
Vague
Anonymous
Whats is meta questions ❓
It is explained here lol https://t.me/programminginc/212960
Anonymous
Whats is meta questions ❓
I don't think that the competitive programming is for you
lucky
I don't think that the competitive programming is for you
Alright may be i will just leave this group right
Anonymous
Please help
Mat
Please help
Wtf is that? Write the question, cmon
Francisco
Please help
Probably one of the most useless questions you can possibly be asked
Anonymous
Please help
Console is magic
Wim
If you need to ask what a console is and you're a programmer, then there's a problem behind it..
Anonymous
#include <math.h> main() { int i, j; printf("%d\n", 2); for(i = 3; i <= 100; i = i + 1) { for(j = 2; j < i; j = j + 1) { if(i % j == 0) break; if(j > sqrt(i)) { printf("%d > %f & i=%d\n",j,sqrt(i),i); break; } } } return 0; } Who is able to explain why use squareroot tos test for the loop ?
Anonymous
This program print all prime Number between 1 to100
Anonymous
Wtf is that? Write the question, cmon
Woow,,i was test if people really exit n this group
🍥N00d1e5🍜
Hi guys, I would like to know if there is any library/package/method for export and import a value please? For example: int a = 666; export(a, file_name); next time when I want to use the value: int a = import(file_name);
🍥N00d1e5🍜
So the classic way, fopen + fprintf?
Mat
Why not?
🍥N00d1e5🍜
Because i remembered that in Python, there is a package named cjson (or similar), it can finish the same job much faster