How do I solve problems without using AI

Hello guys. I am attempting to learn how to code again but without the use of AI this time.

How do you attempt a problem or understand a solution without using AI for help.

For example, I wanted to build a small calculator to remind myself of the basics of C. I had a problem where my scanf was not outputting the desired result. 

The program had something like this:

int x, y;
printf("Enter two operators: ");
scanf("%d", &x);
scanf("%d", &y);
printf("x: %d, y: %d", x, y);

My inputs would be 10 & maybe 2, but the output would be 10 & 0, in some cases 0 and nothing for y.

I was able to get through this by just using one scanf:

scanf(“%lf %lf”, &x, &y);

But I still do not understand why that happened and through my google search, could not find anything that explained it well. The problem might also be that I cannot explain the problems I come across clearly, so I might not be able to find an answer through google.

So my question is, how do you guys go through problems like these where you can’t find a post where someone had a similar problem and had been told what to do to solve the problem without defaulting to AI.

Excuse my writing - I am trying to learn how to type without letting AI revise my sentences.

reddit.com
u/Either-Suggestion400 — 4 days ago

I shut down and become hostile at work when I feel slighted, how do I stop this?

Hello everyone. I recently got a job, an internship, and I'm having trouble adjusting to corporate life.

I've been having some disputes with my colleagues. For example, a colleague says something I read as passive aggressive, or someone's in a bad mood so they ignore me. Something happens.

I find that I become closed off. I shut down, stop talking to everyone, especially that person. I become the rudest person on earth. I'm snappy. I understand that's not professional, and recently my manager said something about me being childish and wanting to be babied, because I usually just shut down and respond with one-word answers, or don't respond at all, when I'm triggered.

This could also just be something I learned from my parents. When I did something wrong as a child, my mom would either hurt me physically or ignore me, silent treatment for days.

I did speak up about it at first. I gave my manager and my colleagues some feedback on things I was having trouble with. I told my manager when this first happened that sometimes I go quiet to process my emotions. But when he made the comment about me wanting to be "babied," it threw me off. It felt like something I shared with him in good faith was used against me.

But my whole point is, how do I stop reacting like this? Even today, I left work early because I didn't want to be around my team. My quality of work depends on how I feel about the people around me that day.

I don't know if it's me seeking attention. If it's some parent issue. I do have a psychiatrist and I'm prescribed ADHD medication, depression medication, all of that.

I would like to be a kind person. On Friday evening I met someone in an elevator at work, and before they left they said "Have a great weekend”, and I could tell they meant it. I wanted to cry because I've never had someone be that kind to me.

But then I have these moments where I'm just evil to everyone. I don't think I'm fun to work with.

reddit.com
u/Either-Suggestion400 — 2 months ago

Help with hero section graphic

Hello everyone, Does anyone know how graphics like these are created? I was looking at Three.js and their webpage, but the examples there look nothing like this, so what else could it be? I've been reading about shaders through this book (The Book of Shaders), so maybe that could be useful,  not sure though. Any suggestions would be appreciated!

https://preview.redd.it/grm2bnvl8n2h1.png?width=2868&format=png&auto=webp&s=a1562772d43d969c0ebf4baf164536ca362a1bc1

reddit.com
u/Either-Suggestion400 — 3 months ago