49,756 Topics
| |
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. … | |
This assignment is due at midnight. i have been working on it for the better part of a week and I still can't figure out how to analyze poker hands for what kind of hand they are. I have looked around the internet for ideas to no avail. I am … | |
Hi DW. How can one read a file or change a file bits without reading the entire file. But first of all how can I read a file in such a way that I get it's bits. I want to read MP3 file and change it bits but I don't … | |
Please tell me the all the implanted things that how to start because I am new in software development field. thank you.. | |
QUESTION: A CAR Class Write a class named Car that has the following member variables: year. An int that holds the car’s model year. make. A string that holds the make of the car. speed. An int that holds the car’s current speed. In addition, the class … | |
After you open files (like 7 or 8) on email and download to visual studio, how come it won't let you debug right there? Do I have to save all those files, one at a time and then will it let me debug? | |
Hi guys, want to convert PYTHON to C and RUBY anyone can help me with this? I have tried to find some online services, but can't find.. if someone can recommend free service, i'll be happy. I want to convert this simple code to C, RUBY,NODE JS http://hastebin.com/kibaraganu.pl Someone can … | |
Please expound on get() function mentioned in the following code.....am not able to understand the output of this program. #include "stdafx.h" #include <iostream> using namespace std; int main() { char ch; cout<<endl<<"Enter a character:"; cin.get(ch); cout<<ch; cin.putback(ch); cin.get(ch); cout<<endl<<ch; int count=cin.gcount(); cout<<endl<<"Characters extracted in last get()= "<<count; //stuff stream with … | |
I have to use a class that converts number (2-9) to words ie; 368253 is double. I have a file of 100,000 words that I have to "bounce" the string of numbers off of to form any possible string of words. It also has to be able to convert a … |
The End.