Artöm
I'm having problem with c
Consider reading a book at first and do some programming challenges for beginners after that
Ilya
Please help me
Help yourself study hard
Sasuke
Does c++ is just Object orientated add-on on C?
Ilya
It's guide of c++
C is included in C++, if you study c++ c will be addressed as bonus. If you study C, you will just waste at least half of time
Ilya
How I can difference between two then?
It is same language actually
Ilya
C++ and C
Nameful
C is a part of c++
there are some differences
Nameful
C++ isn't entirely a superset of C
Ilya
there are some differences
There are. But this doesn't matter
Nameful
I would argue it is important, especially if you're used to doing OOP C++ writing C will require learning new things
Ilya
There is a very good book By Harbison and Steel called annotated C, you can read it after studying C++ and you will definitely know pure C , too
Artöm
C is a part of c++
Well no. Only C90 maybe
Anonymous
rror C2676: binary '<': 'const _Ty' does not define this operator or a conversion to
Anonymous
std::map<MyVector, Block *> blocks; blocks[MyVector(10, 10, 10)] = new Block();
Artöm
#cbook
Missed that, thanks
Anonymous
MyVector is a Struct and has the bool operator
Artöm
Show it
Anonymous
bool operator()(const MyVector &a, const MyVector &b) const { return (a.x == b.x && a.y == b.y && a.z == b.z); }
Anonymous
Any examples?
Anonymous
Dous it have to be static?
Anonymous
https://img.kingdev.nl/clion64_2019-11-06_14-44-19.png
Ilya
Dous it have to be static?
Actually it has to be operator <
Anonymous
Any examples?
Ilya
https://img.kingdev.nl/clion64_2019-11-06_14-44-19.png
This is function call operator, not "less"
Anonymous
Ilya
Any examples?
Find on CPR
Artöm
Any examples?
google c++ operator less overload
Ilya
Ilya
cppreference.com
olli
Any examples?
E.g struct Ds { int x; bool operator <(const Ds& rhs) const { return this->x < rhs.x; } }
Artöm
Waiting for operator<=> duh
Nameful
I'm waiting for the ><> operator
v
Hiii
Anonymous
Hello
Anonymous
ok i will
Nylon
Hi
Nylon
Can anyone tell me which coding language Can I use to make a pdf editor
Nylon
Is it possible to make pdf editor in c++
Nylon
??
Anonymous
Yes
klimi
yes
Ilya
Can anyone tell me which coding language Can I use to make a pdf editor
PDF is a printable form, why should it be edited?
Pavel
A nice speech about some specific pitfalls in modern C++ https://www.youtube.com/watch?v=9-_TLTdLGtc
klimi
Hi, I am trying to send a Telegram message using C. I have a piece of code provided by the supplier of a NRF9160 microcontroller that is programmed in C. They provide some code to make an HTTP GET request. However, it is a simple example and it is not specified how to pass arguments or parameters. I have this line char send_buf[] = "GET / HTTP/1.1\r\nHost: www.google.com:80\r\nConnection: close\r\n\r\n"; that I understand that it is where the request is created.(I am quite new with C and I am more familiar with Python.) Taking that line as base how I can specify some arguments for example arg1=MYARG1 and arg2=MYARG2 to make the request? Thanks a lot, any help is welcomed.
Anonymous
PDF is a printable form, why should it be edited?
why do you speak half the time if you dont actually answer questions, just troll
Anonymous
Anonymous
A message from @n1coc4cola: can some one help me? I have the error " conversion from ‘QString’ to non-scalar type ‘QDBusPendingReply<QString>’ requested "
Ilya
I answered it in the other group actually
Priesteye
/
András
Anonymous
Even brainfuck?
Since it's Turing complete, why not?
Ilya
Even brainfuck?
It's not a language, it is a joke
Anonymous
It's not a language, it is a joke
It's not a contradiction
klimi
It's not a language, it is a joke
----[---->+<]>++.[--->+<]>++.[->+++++<]>-.++++[->++<]>+.-[->++++<]>.[->+++<]>+.-[->+++<]>.-[--->++<]>.+++++.----.------.--[--->+<]>-.---[->++++<]>.-----.[--->+<]>-----.--[->++++<]>+.----------.++++++.--[->+++++<]>.
Nisha
#include <iostream> Using namespace std; Int main () { Int n,p; cin>>n>>p; Float ans=0; Float inc=1; For(int i=0;i<=p;i++){ For(;ans*ans<=n;ans+inc); ans=ans-inc; inc=inc/10; }cout<<ans; }
Nisha
Help me out in this It's not giving output
Nisha
Why
Anonymous
Why
Because there no Int, Float or For in C++
Nisha
Then what to do
Nisha
How can I solve it
Anonymous
Then what to do
Try to write code that will compile