52,656 Topics
![]() | |
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 … | |
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 | |
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" … | |
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. | |
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 … | |
[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 … | |
[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 | |
1. Declare an enumeration type consisting of the 8 planets in their order by distance from the Sun (Mercury first then Sun to the last planet). 2. Write a value-returning function that converts a planet of the enumeration type declared in Exercise 1 into the corresponding string. The planet is … | |
im a first year student of computer science course. our teacher teach us c++ program and i cant understand it well.now my teacher want us to make a menu system or payroll system.. the format she teach us is like this 1.) write a program that will accept users input … | |
Tech Gurus, I am interested top learn more about these AIs. ChatGPT and the like. I have been seeing youtube videos about ChatGPT3 but the link was not working few weeks ago and so I quit it. Now checking them out again. I am only interested in those that have … | |
Hi!I've recently started programming in C++ and C language.I've also started learning python. | |
I have an MFC dialog app with several Text controls. All but controls get filled in with *UpdateData* at dialog initialization via calls like: *DDX_Control(pDX, IDC_MY_STATIC, MyText );* . Next, the user checkmarks a checkbox and the ON_ function for the checkbox gets control, running several functions. One of those … | |
Hi everyone I'm new here .I'm majoring on c++, I like python and Java too .but for now I'm busy with c++ programmingthanx for having me here.Regsrds... | |
I've started software engineering as a side course but that's what I really wanted to do. I'm familiar with C and Java Programming languages. I'm still working on the others currently on C++. I needed help with a programming question. Create a C++ program that displays the result of a … | |
3. Using repetition control structure (do while loop), prepare a program that can receive employee id and working hour(s) for three (3) employees. The program able to: i. calculate Overtime Payment using formula Overtime = Working hours * 35.00 for each employee ii. calculate Total Overtime Payment for all employees … | |
I need a c++ program that is able to determine whether or not a given array is sorted in ascending or descending order. then after that the program should reverse the direction of order | |
H! I need to calculate the mean of the coverages of two types of particles that could be trapped on a square surface. They are particle #1 and particle #2. Such averages are taken after certain number of steps, for example, every 10 Monte Carlo steps, and considering a number … |
The End.