49,756 Topics

Member Avatar for
Member Avatar for myk45

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 …

Member Avatar for mapsonyllaer
0
265
Member Avatar for Smain

Modify your Ackermann function so that it utilizes memoization. calculate Acker (3,20), Acker(4,0), Acker(4,1).

Member Avatar for AssertNull
-1
424
Member Avatar for shalu_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.

Member Avatar for shalu_1
0
180
Member Avatar for bob_16

` #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 …

Member Avatar for rproffitt
-2
371
Member Avatar for shalu_1

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 …

Member Avatar for ddanbe
-1
378
Member Avatar for Jemone_1

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 …

Member Avatar for David W
1
377
Member Avatar for cpsusie

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

Member Avatar for Zack_7
0
11K
Member Avatar for AssertNull

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 …

Member Avatar for AssertNull
0
2K
Member Avatar for naik.pranjal
Member Avatar for Varun_8
-1
873
Member Avatar for Ramaah

[[Click Here](https://drive.google.com/drive/folders/0B7H2xyyiCa36TDlJM0lRckswYlk)](null)

Member Avatar for Aeonix
-5
628
Member Avatar for Tareq_1

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 …

Member Avatar for brothman01
0
764
Member Avatar for Rain_1

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 …

Member Avatar for Andrew_36
0
412
Member Avatar for Greg_15

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 …

Member Avatar for AndrisP
0
328
Member Avatar for Muhammad_122
Member Avatar for rubberman
-1
455
Member Avatar for clife

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 …

Member Avatar for clife
0
213
Member Avatar for Thomas_36

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 …

Member Avatar for rubberman
0
1K
Member Avatar for BobRoss

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 …

Member Avatar for happygeek
0
1K
Member Avatar for Cherise

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 …

Member Avatar for Dani
0
1K
Member Avatar for nana_1

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 …

Member Avatar for AssertNull
1
280
Member Avatar for Gabriela_2

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 …

Member Avatar for ddanbe
0
608
Member Avatar for Prathyaksha

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); // …

Member Avatar for rubberman
0
395
Member Avatar for RiZz_1

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

Member Avatar for rubberman
0
164
Member Avatar for Michelle_8

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 …

Member Avatar for AssertNull
0
958
Member Avatar for Mr.M

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 …

Member Avatar for AssertNull
0
651
Member Avatar for Avnish_2

Please tell me the all the implanted things that how to start because I am new in software development field. thank you..

Member Avatar for Reverend Jim
0
86
Member Avatar for noorullah06

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 …

Member Avatar for tinstaafl
0
4K
Member Avatar for DS9596

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?

Member Avatar for pritaeas
0
162
Member Avatar for Zaal

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 …

-1
147
Member Avatar for surfingturtle

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 …

Member Avatar for surfingturtle
0
157
Member Avatar for lauruskamj

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 …

Member Avatar for Daren_2
0
659

The End.