49,764 Topics
![]() | |
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 … | |
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? | |
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 ! | |
Hii I am a developer working on a blockchain MVP development. I want to add MVP features to the app, but I am not sure where to start. Can anyone provide some guidance? Thank You | |
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 … | |
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 … | |
to create a code in c++ for representing an adjacency matrix using templates and delete node function | |
Why Consulting an Astrologer is Crucial Before Considering Divorce | |
Hello !! "I want to learn Java data structures and algorithms (DSA). I have recently learned Java object-oriented programming (OOP). Suggest me best tutorials for learning. | |
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 | |
The choice of programming language for developing a Ludo game will depend on the specific needs of the project, the skills of the development team, and the target platform. Here are some of the programming languages that can be used for Ludo game development: **C++:** C++ is a high-performance programming … | |
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 … | |
In Unity 3D, utilizing the Starter Assets package, I am trying to swap the mesh on the Starter Asset character that I duplicated in the scene. I unpacked a prefab so that I could utilize the mesh filter of the new prefab that I imported. I realized that there are … | |
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 | |
AI-powered code reviews are bringing about a revolution in the way developers collaborate, enabling more efficient, accurate, and thorough evaluations of code prior to its integration into the central project repository. This transformation is made possible by leveraging machine learning and artificial intelligence to automate and enhance different facets of … | |
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 … | |
how can i convert these C line: (py>>6)<<6) to VB6? | |
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 . | |
How to invert an image in c without external libraries...? Is it possible? | |
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. | |
I've just finished reading Eric Matthes' Python Crash Course. A book which I found great to learn Python within a short time. The learning process wasn't really hard for me as I was already familiar with programming in other languages. Now I'm done with it and I've just started learning … | |
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 … | |
Hi, I am a non computing graduate. Have basic HTML knowledge gather using freecodecamp. I am transitting from marketing industry to IT (programming) industry. I have enrolled in a masters in UK which will start in just one month. But I am not sure If i will be able to … | |
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" … | |
Create a C++ class called "Rectangle" with private attributes width and height, and public member functions to set and get these attributes. Include a function getArea() that calculates and returns the area of the rectangle. | |
It is to make some changes to an existing app, does anyone know how to use this tool? :) | |
i build a class for create a static control(label). and i't cool. but why the SetTextColor() and SetBkColor() are ignored? case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); // TODO: Add any drawing code here... SetBkColor(hdc, RGB(0,255,0)); SetBkMode(hdc,TRANSPARENT); SetWindowText(inst->hwnd,"hello"); EndPaint(inst->hwnd, &ps); } the inst is the class(label) pointer … | |
Hi guyz, Why IoT is the future of mobile app development? Form your perspective | |
[Click Here](https://github.com/Schol-R-LEA/Ranged-Numeric-Types-for-CPP) I've started working on a basic template class that can help automate range checking in specialized numeric types. My inspiration for this comes from the ranged types found in languages like Pascal and Ada. Currently, the focus is on integer types, but I've designed it to be adaptable … | |
What are the best platforms that you would prefer for mobile app development? | |
Hi guyz, Is AI is more efficient in understanding the nature language in the space of software development? | |
Hi guyz, What are the APIs you guys using to build an SEO softwares? | |
[Click Here](https://github.com/codecat/catsight) Thank you very much if you can provide compiled Windows binaries or converted VS projects that are preferred |
The End.