49,761 Topics
| |
Hi All, I have to implement string class and write a program to perform string manipulation in Mystring class. input: "he is going to school" output Case 1: (n=1) He school to going is Case 2: (n=2) He is school to going Case 3:(n=5) No changes Case 4 n<=0 school … | |
i need code (c++) +explanation of lexical analysis javacc | |
Hi all, I’ve been told to convert a procedural [C++ program](http://pasted.co/cb410afe) into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. The standard C++ program accepts data values and filter values from the user. It then multiplies these values together using a simple algorithm and prints the output … | |
Hi I am unable to call a function in one class from another class:In this line of the code it is showing error std::nth_element(edge_points.begin(), edge_points.end() - edge_points.size() * c.edge_points_percent, edge_points.end(),Camera::compare_edge_points); Camera:: compare_edge_points - showing error. Can anyone help me here please? Header file: #ifndef main_h #define main_h #include <iostream> #include … | |
Hi All, i am curious to know how to set the value (value=10) through B's constructor in below programme. below is example of multiple inheritance. As construction always happens from right to left so it always call the 'C' class's constructor and set the value 20 but as per my … | |
hi, so i am currenty working on a program that needs to ask the user for student name, and test score. it must use parallel arrays and must sort the scores ascending order from lowest to highest, with corresponding student name entered. and it must average the amount of scores … | |
Hello there ! I wrote a dll( using MINGW and Codeblocks ) that should do the "background work" of my app. I have an interface build in Microsoft Visual C++ 2015. Is posible to control some TextBoxes, or Buttons( enable/disable ) or ProgressBars, or opening a new Form from the … | |
Hello, I am trying to add a feature to a lab I am working on where I have to have a way to show images of the 20 pen widths the Easy Paint Lab can do. I am trying to use a ComboBox from Qt in order to do that. … | |
Hi all, I am developing a Qt Gui application. Here I have a Qtreeewidget that has a list of Qtreeewidgetitems. I also have a qtablewidget beside it which displays some information when any item present in the list is clicked/selected.When the content of any of the cell in the tablewidget … | |
Modify your Ackermann function so that it utilizes memoization. calculate Acker (3,20), Acker(4,0), Acker(4,1). | |
hello i have a project on library management as an admin user i have to modify the books name during run time without using files plz help me. | |
` #include<stdio.h> #include<conio.h> #define max 25 void main() int frag[max],b[max],f[max],i,j,nb,nf,temp,highest=0; static int bf[max],ff[max]; clrscr(); printf("\n\tMemory Management Scheme - Worst Fit"); printf("\nEnter the number of blocks:"); scanf("%d",&nb); printf("Enter the number of files:"); scanf("%d",&nf); printf("\nEnter the size of the blocks:-\n"); for(i=1;i<=nb;i++) {printf("Block %d:",i);scanf("%d",&b[i]);} printf("Enter the size of the files :-\n"); for(i=1;i<=nf;i++) {printf("File … | |
HELLO, i have an project(c++) on quiz(menu based) and im in 11(cbse) i would like to have the source code with the following 1.admin menu 1.1add more ques 1.2 remove a ques 1.3 modify the ques 1.4 search for a ques 1.5 return to main menu 2.user menu 2.1 instructions … | |
My application must let a nurse enter information for a number of patients about the patients' number of repetitions for various otherwise ordinary activities. The nurse gets a book in the format to enter the information. Month Date Day Activity Repetitions January 1 Monday brushed_teeth 9 January 1 Monday combed_hair … | |
Alright guys, I'm a total n00b to assembly. NOTE: I am not a student -- I am a professional lawyer who loves to tinker with the computer and waste time. Using Visual Studio 2008 Express (C++), I actually managed to write a function in assembly language that evaluates a character, … | |
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World … | |
write a c++ program to display the following pattern: a a b a b c | |
[[Click Here](https://drive.google.com/drive/folders/0B7H2xyyiCa36TDlJM0lRckswYlk)](null) | |
AVGTIL0 – Write a program to accept integers from the keyboard until a zero is entered. Print the sum and average of the even numbers. Ignore any odd numbers in your calculations and print an appropriate message. I am working on this program more than two days. #include "stdafx.h" #include … | |
Hello, So I am first year at Uni and I am new to C++ and I am still trying to learn the basics. I can't seem to find the right way to start my exercise. Ex1. Create a program, which is with a main() function and menu-function for: 1.1) Inputting … | |
I've been struggling with this for a few days now. I've finally got it working in pieces, but when my sorting array runs, all I get is empty space. My brain is fried at this point, I can't figure out if it's a simple fix, or a major flaw. This … | |
Hi , Below code prints odd and even numbers using two threads.code works correctly . But i am unable to figure out whether it works in all scenarios. My doubtful scenario is: Lets say `evenfun` thread is invoked first when the value of `count` is 2 , so the thread … | |
I have written the following function to accept a string from a csv text file that presumably contains a series of comma separated numbers. double comma_read(int &index, const string &input) // Reads a number from a comma delimited (csv) file // Returns first number after index-th comma // Then updates … | |
Hello, I'm writing a simple shift cipher which reads from plain.txt, encrypts, and writes to cipher.txt. It works, but only for small plain text lines of a couple of words or so. If the plain text lines are long, then the program does not respond (freezes). Any help would be … | |
Hey guys, I'm a university student and programming in c++ is an elective I'm taking. I've been having a hard time with this course but I'm stillt trying at it. Im in my first year, first semester and I'm new to this site. I'm having difficulties reading data from my … | |
| Hi, I need help reading this [.csv file](https://drive.google.com/open?id=0B5UH8MuMzUBaR0FRYmhTWnNxdW8) into an array of vectors i created below: `vector<string> GID; // Vector holding Gift ID vector<string> DName; // Vector holding Donor Name vector<string> Phone; // Vector holding Phone Number vector<string> POC; // Vector holding point of contact vector<string> Item; // Vector holding … |
Hello, everyone. I have a question. I have a task in which I have to cin a number (not bigger than 2^32) and the program have to check if it's numbers in hex are equal. I can't use loops. So with the help of mask, I separate the numbers but … | |
This is my Line2D.h #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <cstdlib> #include <cmath> #include <algorithm> #include "Point2D.h" using namespace std; class Line2D { private: Point2D pt1; Point2D pt2; protected: double length; // Set function void setLength(); public: // Constructor Line2D(); Line2D(Point2D pt1, Point2D pt2); // … | |
Define a Class, STUDENT and define certain data members and functions in this class having Private data members Name, Class, Gender, D.O.B. Create functions to access these private data members. (get/set methods) Create a function that checks whether the student is male or female and display the gender of student. … |
The End.