52,666 Topics
so i've been banging my head trying to get the enemy ai pathfinding working in my little c++ project. stuck a basic A* in there but the characters just jitter around corners instead of walking around them. tried tweaking the heuristics, even slapped on some smoothing, but it still just …
One Person = One Company? I Made It Happen. Just open-sourced a new project: github: https://github.com/golutra/golutra Video demo: https://www.youtube.com/watch?v=KpAgetjYfoY&t=113s With this system, you can create your own AI swarm (agent team) that collaborates automatically to: write code run tasks maintain projects manage content or social media perform role-based workflows produce …
i need create a function like Write(...) the C++0(or less) don't have variadic templates. i need a function and not a macro(don't use the __VA_ARGS__), for add it on a class ;) using cout i have: class Writer { public: Writer& operator()(Variant v) { cout << v; return *this; } …
A common task in C or C++ is to get a string from somewhere and convert it to an integer. "Use `atoi`" is a common suggestion from the unwashed masses, and on the surface it works like a charm: #include <stdio.h> #include <stdlib.h> long long square(int value) { return value …
I am developing a software module to simulate Mercury’s orbital motion using a constant position–momentum parameter derived from the NKTg Law. Instead of using traditional force-based gravity equations, the model defines: p = m * v C = x * p Where x is orbital distance, v is orbital velocity, …
What are the best practices for setting up compliance policies and automated retention rules in SharePoint?
Hi, i'm havnig problem with calling CreateThread. The problem is that it gives me a conversion error from const void* to void* [CODE=Ccplusplus]DWORD dwThreadId; HANDLE myThread; myThread = CreateThread( NULL, 0, MyThreadFunction, "HELLO", 0, &dwThreadId); [/CODE] dwThreadId id is the problem, the function is supose to take a pointer to …
Hello, I hope you’re doing well. My name is Jeremy Kang. I’m a web developer based in Hong Kong. I’ve been working as a full-stack developer on several freelancing platforms, delivering production-level projects for real clients. I value clear communication, meeting deadlines, and taking ownership of the work I commit …
We are developing a purely free and public welfare third-party launcher for gamers. However, due to the fact that we only have three active developers and we have encountered numerous setbacks during the development process, we have no choice but to post this message for help. Please assist us. Thank …
> it's truly amazing what LLMs can achieve. we now know it's possible to produce an html5 parsing library with nothing but the full source code of an existing html5 parsing library, all the source code of all other open source libraries ever, a meticulously maintained and extremely comprehensive test …
Hi, please don't blame me for reinventing the wheel, I was bored and had nothing to do, so I thought: what would I write? And apparently this code is the result :P
Hello everyone, With blockchain technology changing how digital platforms operate, there’s a growing debate about the future of marketplaces. Centralized platforms like Amazon and eBay are still leading the way, but decentralized marketplaces are gaining popularity because of their transparency and peer-to-peer structure. In the context of online marketplace app …
Hi everyone, my name is Daniel and I am a programmer. I started a Telegram group with another friend (also a programmer) where we provide free courses mainly in development, AI and programming. Happy to be here and meet you all, have a wonderful day! 😊 https://t.me/+rx6TwJzuiZI5Mjc8
Hi i am hacking a pong game into a racing game. At the moment i am trying to blit to a half screen with player A on th right and B on the left. any one know why it isn't working? I am using Visual C++. [code]/* Pony Pong #include …
Hello guys so i'm quite new to C++ but i already learned OOP and other things so i want to use this little knowledge yet to create some basic program. I wanted to make a program that uses some API's but the problem is i'm not famillar how API's work …
Hi DW, I'm getting this error when I try to debug, it says it can't open `"c:\users\myusername\Documents\Visual Studio 2010\Projects\myprojectname\debug\myprojectname.exe"` How can I solve this?
Hi everyone, I'm learning C++ and made a simple coin toss game. It tosses a coin 100 times and counts heads vs. tails. The first time it works fine, but when I continue the game, it tosses 200, then 300 times, etc. I only want 100 tosses each time. "I …
I’m getting a segmentation fault in my C++ program when trying to access an array element. Here’s my code: #include <iostream> using namespace std; int main() { int arr[5]; cout << arr[10]; // Accessing out-of-bounds index return 0; } How can I prevent this memory access issue?
What are some best practices for optimizing memory management when working with large datasets? I am tagging this topic both with php (because that is my language of choice, and the one I work with big data with) as well as c++ (because I know DaniWeb has a large low …
Hello, I'm a Freshman in college that's going to majoring in Electrical and Computer Engineering. Right now I'm taking a C++ class and I'm looking to do something funny to a friend of mine. I have been searching the web for some "fake viruses" and whatnot to to play around …
Hello to all, I am developer of C++ (intermediate by self-taught) and I would like to have some friends here to make as fun learning and to exchange some knowledge in C++ and Computer graphic, are you agreed on that ? :) Thank you !
Hi there, I'm algieba, a new poster. I'll share and record some programming tricks while my coding life. Topics will reated to Python, C++, CI/CD, Machine Learning, Deep Learning.
Hi DW, I'm having an issue here, I have 3 forms namely `start.h`,`home`,`Form1` in their order of execution, the problem starts when I include Form 1 to any of these forms then I get `LNK2005 'unsigned short MyprojectName::m_hservice' (?m_hservice@MyprojectName@@$$Q3GA) Already defined in home.obj` NB these forms are completely different, the …
Greetings, I'm having an issue, I want to set my form to display at the very top right hand side corner of a screen, I've achieved this in vb.net using this code `Location = New Point(Screen.PrimaryScreen.WorkingArea.Width - Width, 0)` Does anyone know how I can do this in VC++?
hey.. im new in c++ and im doing an engineering journal as my assignment.. i dun know how to do this.. Entries in the journal are private, so the journal is encoded and protected using a pin. When the program is executed it will ask for a 4-digit pin. The …
to create a code in c++ for representing an adjacency matrix using templates and delete node function
What are some of the key features that make Python a popular choice for programming
I found some code on the web a while back. But I don't know who wrote it. The code below looks for worksheet names in a excel file. I am not familiar with C++ (and do little to nothing with binary files). Can someone help me convert the code below …
Hi, I'm trying to start learning C++ on "Sublime Text" an error came out "file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status" what can I do about it
Hello everybody I'm a student and having problems with an assignment - I have at the moment no idea how to achieve an appropriate solution. I'm aware that you shouldn't help me by showing some code. That's okay for me since I want to solve it by myself but I …
I want to figure out what Windows does when you right-click a video file and check properties and I would like to write a similar piece of code in C++. I should be able to figure out how to read the file type and size, but I'm lost in how …
Hi, I am trying to get a cat walking back and forth between the screen using a left and right tileset of bitmaps. Also, I am supposed to be able to control two caveman sprites that appear to walk left and right as you press the left and right keys. …
arguments passed in /var/www/gamebar/html/kh/api/redirectpage.php on line 14
So im working on functions for the first time in vscode using c++. i'm want to declare functions and having trouble understanding some things. i'm very new to programming so i still don't understand commands like str, file, value, void, readName, and so forth but i know i need to …
I am a first-year university student from China. My major is Computer Science and Technology. I have been self-learning C++and data structures and algorithms recently. May I ask how I can learn them well? Is anyone interested in being my teacher or learning with friends? (Machine translation, my English is …
I am trying to enter a single string in C++ in which I give a URL citation. the entire line is as follows: cout << 'furey, edward "sphere calculator" at https://www.calculatorsoup.com/calculators/geometry-solids/sphere.php from calculatorsoup, https://www.calculatorsoup.com - online calculators' << endl; I am getting the error: character constant too long for its …
hii guy i want a loader injector connect with keyauth, you guy can give me a source code ? please and i also a student in a hightschool. i just want to learn about that please help me .
Hello , I always had a distant relationship with C++ (writing in it small programs (or libs for other languages) only when performance really matters) but I have found myself writing more and more C++ bots. I learned that you need to separate the definition of the class (interface in …
Hello all. I'm relatively new to libcurl C++, and I have been hopelessly stuck. Bit of a background for this app. It is very legacy, having been made in the early 2000s. LPSTRs abound. It looks in FTPs for files from suppliers (who have an SFTP they interact with and …
THIS IS THE LINK FOR QUESTION:https://practice.geeksforgeeks.org/problems/subarray-with-given-sum/0 #include <iostream> using namespace std; int main() { long long int s,n,a[10000000000],e,d,l,flag=0,t; cin>>t; while(t--) { cin>>n>>s; e=0; flag=0; for(long long int i=0;i<n;i++) { cin>>a[i]; } for(long long int j=0;j<n;j++) { e=a[j]; for(long long int h=j+1;h<n;h++) { e+=a[h]; if(e==s) { l=j; d=h; flag=1; break; } …
1. Analyze the problem below and make a c++ program to enter on the keyboard the required data for process. Compute the time of flight of a projectile and its height above the ground when it reaches the target. Display all the inputed data and the processed or compute data. …
Hi everyone, was wondering if maybe someone could help me. I'm new to coding and have an assignment to do. The assignment is as follows: Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should calculate …
I use apple's x code, my system is OS X 10.4.11 Im getting a warning you must be familiar: [CODE]"#ifdef __DEPRECATED #warning This file includes at least one deprecated or antiquated header. \ Please consider using one of the 32 headers found in section 17.4.1.2 of the \ C++ standard. …
how to create a program about number system converter using c++
I'm making a software similar to Grammarly in C++. I want to get data from the clipboard, then if a certain sequence of data that is a certain number of letters is contained in it, then it has to be replaced by a predefined string.
Lexicographic algorithm I'm trying to make this algorithm work, but it keeps telling me that my declaration array is not correct because it needs to have a constant value. Array declaration can be found in the main #include<iostream> #include<array> using namespace std; void nextPermutation(char* v, int n) { //function declaration …
How to solve some errors in the code in c++ #include <iostream> #include <cstdlib> #include <ctime> #include <cmath> class Person { //creating a Person class with attributes like ID, latitude (X) and longitude (y) public: int x; int y; bool infected; }; Person(int _id, int _x, int _y, bool _infected) …
I am reading a JSON file containing Family details and I am trying to fill them in a std::map. somehow the keys are accepting data but the values are showing null. please help. **code: test.cpp** ------------------ #include <iostream> #include <string> #include <fstream> #include <cstdio> #include <conio.h> #include "nlohmann\json.hpp" #include "extmodule.h" …
The End.