Anonymous
b = variable *a = pointer *a -> b You wrote *a = 5, so *a = 5 -> ?
umm, so how can I bind that *a to a wihout another var
Anonymous
I mean can I assign values to pointers directly?
Mat
Yep
Mat
Memory addresses
Mat
But not values to pointers, they're not normal variables
Mat
There are... variables for that
Mat
You need ans = *a + *b
Mat
&a that's a pointer, the pointer to a. You wrote &a -> a -> 5
Anonymous
&a that's a pointer, the pointer to a. You wrote &a -> a -> 5
Ok, now if u r asked to recode that without using function, how will u do that?
Mat
printf("%d + %d = %d", 5, 10, 5+10);
Mat
Or instea of numbers int a = 5; int b = 10; printf("%d + %d = %d", a, b, a+b);
Anonymous
printf("%d + %d = %d", 5, 10, 5+10);
using pointers, but without functions
Mat
Or int *a = 5; int *b = 10; printf("%d + %d = %d", *a, *b, *a+*b);
Anonymous
Or int *a = 5; int *b = 10; printf("%d + %d = %d", *a, *b, *a+*b);
okey. I was completely wrong about pointers :D
Mat
You were adding the pointers of the pointers of your numbers
Mat
Wrong * position :/ (my error)
Mat
You?
Mat
I'm a terrible teacher, giving wrong info
Anonymous
You?
I asked that myself, but I can't figure that out
Anonymous
Mat
You can't do what you'd like to do :/ or at least i think not
Anonymous
Hello everyone!
Anonymous
I am new
Anonymous
And I know little about c++
Anonymous
How can I improve my skills. Thanks in advance
Anonymous
any better way?
Jeremy
yup, simple enough to understand how they work together there
Jeremy
but no real reason to do it in this scenario
Jeremy
a->temp->5 b->temp2->10
Jeremy
pointer to location of variable that contains value
Anonymous
This is how I can do
Anonymous
When it comes to solve this issue using function, whe whole syntax is different :D
Anonymous
/report
Group Butler
/report
Reported to 1 admin(s)
Anonymous
Anyone in Los Angeles?
Roxifλsz 🇱🇹
/ban banning because this user hasn't said a thing since joining (except posting the offending ad), seems like an ad poster rather than a useful contributor to the chat
Group Butler
Rokas banned Олег!
Isc
woa
Anonymous
/help@GroupButler_bot
Group Butler
Start me to get the list of commands
Anonymous
/help@GroupButler_bot
Group Butler
Start me to get the list of commands
Anonymous
I have an insane idea on an uniq cryptocurrency, but i need people with the development knowledge. If anyone have that, please PM me
Anonymous
I wanna learn how to build a BlockChain and cryptocurrency any where to start?
Anonymous
github.com/ethereum/go-ethereum
Anonymous
@themester thanks 🙏🏾
Anonymous
@themester thanks 🙏🏾
the best practices is to see how blockchains works. Some algorithms and see a lot of code
Anonymous
I need some programmers to develope a pretty simple busniess idea, i will pay or give shares. PM me
Michael
7k$ is enough per month and I'm in.
Anonymous
Hi, I am an organiser of free online coding competitions from the university of oxford. There is nothing commercial in my intended post, it’s just to an eventbrite link for a Online Interscholastic Coding comp we’re hosting on Jan 27th. Is it ok to post here?
Anonymous
@roxifas ^
Anonymous
Ok great thanks ! The Oxford Univeristy Coding Society, AI Society and Oxford AI Games Club are hosting a Online Interscholastic Coding Competition: To Register please visit: https://www.eventbrite.co.uk/e/the-oxford-online-interscholastic-coding-challenge-tickets-42233316988
Anonymous
We have universities, colleges from U.K., US and India all taking part (too many to list) please join for a night of fun ☺️
Anonymous
Can someone suggest me a good c++ graphics guide? TIA!
Russell
What are you trying to write?
Anonymous
Opengl? What sort of graphics?
Well, I worked on a school project and now for personal satisfaction I want to added a ui to it
Russell
Ah. I'd suggest Qt
Russell
Qt.io
Russell
Or GTK+ if you're into that.
Anonymous
Ah. I'd suggest Qt
Is qt universal? Like I can't use that with every other ide or basic CLI?
Anonymous
Didn't get what you mean..
Russell
There's a Windows ui library
Russell
That's much harder to use
Russell
(from what I've heard)
Russell
But it is cool that it runs on pretty much all platforms and looks native