u/DraftOk1709

Is Raylib or SFML better for beginner learning C++?

I´m 15, without any prior coding experience learning C++ from LearnCPP, I had a few suggestion to learn using some graphilac interface. I got recommended two, but I can´t really decide which one to choose.

Can anyone help me?

Is for me better Raylib, or SFML, I want to make simple games like flappy bird, tic tac toe, or simple programms like to do lists and stuff. Which one will suite my needs the best?

Thanks for answers!

reddit.com
u/DraftOk1709 — 4 days ago

Learning C++ and feeling kinda lost, what should I do?

Hi, I´m 15, learning C++ with LearnCPP. I´m currently on chapter 14, where is introduction into OOP, classes...

For the theoretical part, I think I understand everything up to this point pretty good, but when it comes to real programming, I´m a little lost. I think the problem is that I don´t have enough of the practical experience, to fully understand it. I tried using AI to give me some exercises, and projects I can build, but none of that really makes difference, cause it is all theme specific and I just can´t figure out, how to use the code in real applications.

Do you have any ideas how can I get better not at understanding the theory, but really building something?

All the people are saying, "Just build something, you learn by experience", but that isn´t the problem, the problem is what to build.

Do anyone have any ideas?

reddit.com
u/DraftOk1709 — 4 days ago

I am learning C++, should I also learn and focus on stuff like this?

I am currently 15 and learning C++ with LearnCPP, without any prior coding experience (except for scratch, but lets not count that) I´m on chapter 13 (Enum, Struct...)in LearnCPP. I finished writing this program ( it has nothing to do with what I´m currently learning about), and wanted to ask some things.

  1. Is there anything that needs to be changed? Are there some things that may function incorrectly in some instances, or do i have any bad practise I should fix?

  2. Should I also focus on learning things like for example what is used in this program, the sstream library things and stuff? Because currently, it looks terrifying to use something like this. ( I spent very long time figuring out how to do the check if the input is a integer, and at the end I ended up on some StackOverflow forum.) Is it bad to find information like this, or id it completely normal?

Also one more question, I´m currently 1 month in learning cpp, and I already learned this many things, that I´m proud of. How long will it approximately take to learn all the stuff so I can comfortably write any code that I need.

Thanks for answers!

#include <iostream>
#include <string>
#include <sstream>

int main()
{

std::string inputAsString{};
int inputAsInt{};

while (true)
{
std::cout << "Enter the length of the base of the triangle: ";

std::getline(std::cin, inputAsString);

std::stringstream ss(inputAsString);

if (ss >> inputAsInt && (ss >> std::ws).eof() && inputAsInt > 0)
{
break;
}

std::cout << "ERROR Cannot Generate Triangle with this base lenght.\n\nPossible causes:\n \n1. You did not input a valid integer. \n2. You inputed integer of too high value.(Max Value is: 2147483647)\n3.Entered Value Is '0' or Negative.\n";

}

std::cout << "Which type of triangle would you like to draw: \n";
std::cout << "1. Right triangle\n";
std::cout << "2. Isosceles triangle\n";
std::cout << "Your decision: ";

int triangle{};
std::cin >> triangle;

switch (triangle)
{
case 1:
{
for (int i{ 1 }; i <= inputAsInt; ++i)
{
std::cout << std::string(i, '*') << '\n';

}

break;
}

case 2:
{

for (int i{ 1 };i <= inputAsInt; i += 2)
{
std::cout << std::string((inputAsInt - i) / 2, ' ') << std::string(i, '*') << std::string((inputAsInt - i) / 2, ' ') << '\n';

}

if (inputAsInt % 2 == 0 )
std::cout << "\nTrinagle with desirad base lenght can not be created. The base was rounded to number: " << inputAsInt - 1 << '\n';

break;
}
default:
{
std::cout << "Invalid Selection. (You stupid or what?)";
}

}
}

reddit.com
u/DraftOk1709 — 7 days ago

I´m 15, learning C++ for a month, just finished my first modular CLI app. Looking for feedback and next steps!

Hi everyone,

I’ve been learning modern C++ for about month now, strictly using LearnCPP.com. I’m super into embedded engineering and robotics, so I wanted to make sure my foundations are solid before jumping into microcontrollers.

I just finished a small learning project: Day Manager 3000 — a modular command-line tool that tracks daily tasks and strict budget limits.( This was an coding exercise that Gemini gave me, so that is why the text and stuff looks like AI.)

Here is my GitHub Repository Link: https://github.com/alexej-pucek/Day-Manager

Where I want to go next: I'm currently starting Chapter 13 on LearnCPP (Compound Types: Enums and Structs). My ultimate goal for the upcoming months is to move this logic onto an ESP32, connect a micro-OLED display via I2C, and read sensor data.

My questions for the community:

  1. How do you evaluate this code and structure for a 1-month beginner? Are there any hidden bad habits I should break early?
  2. Any project ideas that bridge the gap between basic CLI apps and hardware state machines?

Thanks for any critiques or advice!

u/DraftOk1709 — 9 days ago