Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

how to create a test function and define a property when using std::map in c++?

Hi Team i am struggling to implement two things on this class,   1) to define a property when creating a modifier for using std::map<K, V> that one K is an int and V string. 2).how to create a test function inside a class? ...

How to solve this C++ program

Skill-based Matchmaking You are given N players who want to play an M vs M match. Each Player has an attribute Score which is a positive integer. The program needs to find possible unique matches of M vs M players depending on their Score...

Is Object-Oriented Programming a Trillion Dollar Disaster?

The main objective of developing object-oriented programming paradigm was to manage the complexity of functional/procedural programming paradigm. But, some of the developers/experts state that “it is taking a lot of time and brainpower in t...

How to Implement ofstream of high.txt File in C++

I want to output a score in a file high.txt that is highest among the previous score (It is actually a guessing game) but everytime i run this code it outputs 1 as the highest score (it should be no of time i guess for example if i guess the rand...

How to Implement Two Virtual Function Methods?

So what I've been given: Mean.cc is a class that inherits polymorphically from Statistic.h (the only things defined in that class are virtual void Collect(double) = 0; and virtual double Calculate() const = 0;) So the mean.cc is defin...

How to start implementing a project ?

Hi, I'm senior computer information systems student, I'm trying to enhance my programming skills in OOP and data structures. I've created a simple application for each algorithm I've learned it's theory in the college such a...

How to Convert a Python Code to C++ Programming language

I want to stream .dat files from a file i created in python, i wrote the python code and it worked great but i can't write it in C++, i need help to write that code in C++, Thank you.   The python code is as following :   ...

Which framework should I use to make desktop app for factory line products?

On Windows or Ubuntu or Android or embedded linux. The similar apps are NI Vision Assistant and VBAI for image processing. I want a framework: 1. it can create controls with nice looking and animation like apps on android. 2. it is effi...

Can I Alter Postfix Notation to Prefix Notation with Small Tweak in C++

Preferred language using C++// Basically the expression below has been converted into a C++ postfix expression. Now i need to reckon the result. I used deque somehow, instead of stack, because i tried using stack and it didn't seem to w...

How to Divide Circular Array in C++ into K Group of Contiguous Elements

How can I divide an circular array into k group of contiguous element such that difference between maximum sum and minimum sum is minimum. Each group have contiguous element of array. For e.g If the array is as follow. [6 13 10 2] and k=2 the...

How can I display columns from a text file on new rows in C++

I've been trying to display 2 rows with 6 columns, on different rows. I've tried different methods, none of which seems to be working. In my .txt I have: Corfu [Tab] 5* Gelina Village Waterpark [Tab] 21 May 2017 [Tab] Luton [Tab] 10 n...

Program for most effective copying of files to usb

I usually have to copy a group of files to one or more USB drive. It quite difficult to send the files to the USB drives in the most effective and efficient way so that from a group of files, the ones that fit with the least amount of free space ...

Need help making this code more easy to understand

Given are the following three functions on integers: f(x) = x2 g(x) = x + 1 h(x) = x  - 1 Implement these functions in C. Next, write a program that accepts on its input an integer n followed by a series of letters f, g, and h termin...

How do I read the contents of a .CSV excel file into into a vector of objects?

Hello I am in need of help in reading the contents of this .csv file into a vector array of objects. What i mean is how do I read each individual field example: (GIFT-01 Fresch Foundation (703) 555-0054 Lopez T-Shirts Clothing 25) ...

how to consume wsdl web service using gsoap in c++

I am creating a login form for that, for the validation purposes i need to consume 1 particular web service. I am using Gsoap to call that web service , I followed all the steps and its generate .h files as well as all those stubs for the client ...

Crossing the Desert

In this problem, you will compute how much food you need to purchase for a trip across the desert on foot. At your starting location, you can purchase food at the general store and you can collect an unlimited amount of free water. The dese...

Redirect_Input for Parallel Arrays

Instructions:  The following programming problem can be solved by a program that uses three basic tasks-Input Data, Process Data, and Output Results. To process the data, it uses loops, arrays, decisions, accumulating, counting, se...

Parallel Arrays

Create a program that allows the user to input a list of first names into one array and last names into a parallel array. Input should be terminated when the user enters a sentinel character. The output should be a list of email address...

Find the maximal of maximum sum of contiguous subarray by deleting no more than one elemnent?

You're given an array of N integer numbers. The maximal sum of the array is the maximal sum of the elements of a nonempty consecutive subarray of this array. For example, the maximal sum of the array [1, -2, 3, -2, 5] is 6 because the sum of...

linked list

how I can perform and display a linked list in c++ ? please I want an explanation and tune small example in c++ 

Identify file type from hex/binary

I have some data in varbinary(max) from database and I have exported it to physical files. Some of these files were in jpeg so I was able to just add an extension .jpg to it and it opened. The rest are not jpeg files. I have tried almost all t...

How to display rest of the info from file after searching a word

I've been working on a project and I'm stuck at how to display a certain info when I found the word. For example. I want to search the balance sheet data of January 2015 and it will display the rest of the info in the file when found the ...

Problem based on OOP's of C++

Please solve the problems I'm not getting the output? Please its request 1.Swap to add hours,min,secof time t1 withhours,min and sec ot time t2 2.oveload + operator using member function for 2 strings 3.overload <= operator using member fu...

C++ Problem

Target: To input the records of students. Display the whole record. Display the name of the youngest and eldest student. I'm having problem in achieving the third target: If I enter 3 or 5 entries the result is fine but as soon as I enter ...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: