Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Lyt

  1. Lyt

    C++ problems in creating the .h file of an already existing code

    The code works. I also created the header pretty quickly. I'll put the code here in case anyone ever needs it Code.h #ifndef MAIN_CPP_IMPLEMENTATION_H #define MAIN_CPP_IMPLEMENTATION_H #include <bits/stdc++.h> using namespace std; #define ROW 9 #define COL 10 // Creating a shortcut for int...
  2. Lyt

    C++ problems in creating the .h file of an already existing code

    Short update: talking to some of my classmates, I noticed how the code I got from the internet as a starting point is rather long and complicated. I found another one that should be simpler. Unfortunately, the .h file is also missing from this, I have created a second project on CLion, tomorrow...
  3. Lyt

    C++ problems in creating the .h file of an already existing code

    yes From last post I made some changes to the code. I essentially moved a few things between Map.h and Map.cpp. Now Clion no longer marks me any errors. But... Map.h #ifndef TURNSYSTEM_CPP_MAP_H #define TURNSYSTEM_CPP_MAP_H #include "librerie.h" struct GridLocation { int x, y; }; struct...
  4. Lyt

    C++ problems in creating the .h file of an already existing code

    Sorry for the text walls, but I don't think the problem is in a specific spot, so I didn't know what to share. In addition, the comment to the code remained in Italian, sorry for that The libraries used (saved in the Librerie.cpp file) are: #include <iostream> #include <time.h> #include <ctime>...
  5. Lyt

    C++ problems in creating the .h file of an already existing code

    Hi, I'm making a little game for a college project. I was asked by the professor to implement a pathfinding system. He also recommended a site to get the code from https://www.redblobgames.com/pathfinding/a-star/implementation.html. So I took the code, adapted it, translated the comments into...
Back
Top Bottom