49,766 Topics

Member Avatar for
Member Avatar for jkon

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 …

Member Avatar for jkon
1
187
Member Avatar for Sunnyfish

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 …

Member Avatar for Dani
2
409
Member Avatar for Apoorva_K

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; } …

Member Avatar for Ethanbrody
1
184
Member Avatar for Ashley_31

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. …

Member Avatar for Olive34
0
226
Member Avatar for Ndidiamaka_1
Member Avatar for Reverend Jim
-1
24
Member Avatar for Isis_1

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 …

0
132
Member Avatar for mnoizinum

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. …

Member Avatar for Dani
0
270
Member Avatar for nathaliecolemadrigal.lopez
Member Avatar for LXSXX1024

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.

Member Avatar for Anthony6534
0
173
Member Avatar for Artin_1

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 …

Member Avatar for Reverend Jim
0
107
Member Avatar for Juniormi_01

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 …

Member Avatar for Gulshan_6
0
338
Member Avatar for NAFISUL

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 …

Member Avatar for jkon
0
129
Member Avatar for Ganesan_5

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" …

Member Avatar for AndreRet
1
79
Member Avatar for Sam_163

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.

Member Avatar for Alisha_8
0
117
Member Avatar for Alex8585

It is to make some changes to an existing app, does anyone know how to use this tool? :)

Member Avatar for rproffitt
0
54
Member Avatar for cambalinho

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 …

Member Avatar for pmmarc
0
3K
Member Avatar for Mindmade
Member Avatar for Reverend Jim
-2
300
Member Avatar for Lucius_1

[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 …

Member Avatar for Alex_169
0
116
Member Avatar for Mindmade
Member Avatar for yddevelopers
-1
76
Member Avatar for Mindmade
Member Avatar for Reverend Jim
-2
51
Member Avatar for Mindmade
Member Avatar for seth_yu

[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

Member Avatar for rproffitt
0
172
Member Avatar for ᴇXᴄᴀLɪʙ

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 …

Member Avatar for Fifth Horseman
-1
135
Member Avatar for 143wena

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 …

Member Avatar for Aldrin_3
0
694
Member Avatar for sepehrsarfaraz
Member Avatar for morrisavendano

CTO, Associate Professor, SwEngineer, Psychologist, Consultant, Public Speaker, Researcher, and Volunteer.

Member Avatar for Akira350lth
0
43
Member Avatar for jtoddmessage
Member Avatar for Fabeha

Hi!I've recently started programming in C++ and C language.I've also started learning python.

Member Avatar for Reverend Jim
0
22
Member Avatar for Billa_1

I am tasked with Integrating Servicenow with Docusign for sending Mutual NDA for digital signature. This is to be achieved through a request item. Does anyone know how to do that. I have tried ServiceNow Community and it has a cryptic answers. I am new to restful integrations and have …

Member Avatar for pritaeas
0
42
Member Avatar for docdj

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 …

Member Avatar for rproffitt
0
53

The End.