49,761 Topics

Member Avatar for
Member Avatar for MRehanQadri

Kindly Remove its errors and tell me the reason for the error. Code: https://www.box.com/s/enl4h6loqcnc7jqqgujq

Member Avatar for MRehanQadri
0
185
Member Avatar for Shahrukh017

How a designer of a class can ensure that no one outside the class can make a copy of the objects of their class?

Member Avatar for Moschops
0
110
Member Avatar for eig132062

#include <string> #include <ctime> #include <fstream> #include <iostream> #include <cstdlib> #include <cmath> #include <iomanip> using namespace std; `static unsigned int Q[41790],indx=41790,carry=362436,xcng=1236789,xs=521288629; unsigned int refill()// refill f(n) for SuperKISS { int i; unsigned long long t; for (i=0;i<41790;i++) { t = 7010176ULL * Q[i] + carry; carry = (t>>32); Q[i] = …

Member Avatar for Ancient Dragon
0
205
Member Avatar for invisal

1. For developing productive software 2. For learning (learning C++ language, implementing algorithms and data structures) or solving fun programming problem. 3. I don't use it ___________________________________________________________________________ **NOTE** I haven't been in Daniweb for years and there are so many changes that I don't even know how to create a …

Member Avatar for asrockw7
2
266
Member Avatar for adrian.luna.7311
Member Avatar for adrian.luna.7311
0
47
Member Avatar for Musa_Jutt

please help me out, i want a code of algo by i can find out the solution, i know hoe to multiply 2x2 or 3x3 matrices but i want user friendly code in which user can chose option. help me please its in my project.

Member Avatar for DavidB
0
332
Member Avatar for MasterHacker110

I have this code but I only eccepts one client at a time: #include <iostream> #include <conio.h> #include <winsock2.h> #include <string> using namespace std; int main() { WSADATA wsadat; WORD rVersion; rVersion = MAKEWORD(2,0); if(WSAStartup(rVersion, &wsadat) != NO_ERROR) { cout<<"WSA initialization failed.\n"; WSACleanup(); return 1; } //Creating the welcome socket …

Member Avatar for rubberman
0
4K
Member Avatar for Etniespr101

Hey guys, I am incredibly new to c++ and need a little help on a matrix multiplyer program... [code] #include <iomanip> #include <iostream> using namespace std; int main() { int **mat1; int **mat2; int **result; int row,col; cout<<"Please enter row/col"<<endl; cin>>row>>col; mat1 = new int *[row]; mat2 = new int …

Member Avatar for Musa_Jutt
-1
618
Member Avatar for Labdabeta

Hello. I have been looking long and hard for an image library that meets these criteria that I have for pretty much any library I will use (with some obvious exceptions): A) Cross-Platform (If at all possible) B) Weightless (or nearly weightless) C) Stand-alone (I hate having to include DLLs …

Member Avatar for Labdabeta
0
236
Member Avatar for mag.magnesia

THIS IS THE QUESTION. 1- The user would enter how many minutes he/she would like to park in the parking lot. 2- The program would output the parking cost. 3 - The rate charge by the parking lot is as follows First 3 hours - RM4/Hour Hours 9 onwards - …

Member Avatar for deceptikon
0
233
Member Avatar for MRehanQadri

[code]#include <iostream> #include <fstream> #include <conio.h> #include <ctime> using namespace std; //////////////////////////////////////////////////////////////////////////////// class account{ public: account(){ i = 0; balance = 0; transaction_during_one_day = 0; one_month_balance = 0; minimumBalance = 99999999999999; startTime = clock(); } //```````````````````````````````````````````````````````````````````````````````````````````````` void depositBalance(){ cout << "Enter Amount to Deposit: "; cin >> depositAmount; balance += …

Member Avatar for MRehanQadri
0
83
Member Avatar for jamegh1990

Hello. After reading other threads that inut from a text file to a basic array I do not understand how to apply it to a 2d array. I dont quite understand what I need to do to make it read in the data properly. This is what I have so …

Member Avatar for jamegh1990
0
337
Member Avatar for delta_frost

I have had a hard time setting up OpenGL to work with Visual Studio 2010,but no luck so far.I included `glut.h`,`gl.h`.I have linked the requisite `.lib` files in the Project Properties,but still I get this error `error LNK2019: unresolved external symbol _glutMainLoop referenced in function _main` ind six more like …

Member Avatar for delta_frost
0
333
Member Avatar for Ecaz

Ok, so I'm not having a problem but I didn't know where else to place this question. I'm just now "re-learning" C++, I never got into GUI programming before and it's been almost 4 years since I last touched this language. Anyways, my question is simply, do you code a …

Member Avatar for Ecaz
0
392
Member Avatar for mo7al
Member Avatar for tinstaafl
0
54
Member Avatar for Kanoisa

Hi all, I have a problem with trying to call a protected base class function from an inherited class. I have done some research and from what i can gather what i am trying to do is simply not permitted by the standard. The error i get when trying to …

Member Avatar for mike_2000_17
0
203
Member Avatar for kamalashraf

i am making a number base conversion program in c++, suppose that user enters an base 2 number and want to convert that number in base 4. when he enter the number (which he wants to be converted), how can i detect that number is belongs to base 2 number …

Member Avatar for Banfa
0
539
Member Avatar for tinos

> Quoted Text Herethe question is: write a program that asks the user to enter number of research progects done by 10 different students (student1, student2..... student10). Once the data type has been entered the program must analyse the data and output the sudent who did the most research projects. …

Member Avatar for NathanOliver
0
79
Member Avatar for Sturm

I use the g++ compiler for linux and i am trying to link allegro. how do i link allegro with g++?

Member Avatar for kristiangd
0
1K
Member Avatar for fishsticks1907

I'm currently a Computer science student and i have been mainly programming in C++ for about a year. I've search around different sites and some say you have to know basic stuff like: Whats the difference between a class and a struct? What is a constructor? What is meant by …

Member Avatar for falchion-gpx
0
350
Member Avatar for 9tontruck

Hi, I downloaded CDT 8.0.2 for Indigo and installed it through help->install software. But in right click on project->properties, I can't see C/C++ build option in the properties! What happened!

0
103
Member Avatar for alhaji.m.kanu

Hello, I'm writing a program where I take a prewritten text file and a. convert it into binary, b. write text to that binary file, c. display an output report and d. sort by employee name. I can do a,c and d, but I am having a hrad time with …

Member Avatar for ravenous
0
184
Member Avatar for joeydal

I need to be able to display whether or not a person searched for "is a friend" if found in the file and "isn't a friend" if not found in the file. I also need to continue processing names until "END" is typed in. Any help would be appreciated! #include …

Member Avatar for tinstaafl
0
186
Member Avatar for tensity

I am trying to force the user to input a polynomial in the following format: (num)x^2+or-(num)x+or-(num) I have labeled my error messages with 1 2 3 and 4. When I input something like 3204723094823094823094829, I do not get an error and I should, due to not finding "x^2" in the …

Member Avatar for Moschops
0
113
Member Avatar for tensity

I am having trouble trying to get my code to work. If I pick selection 1 or 2 the cout statements execute but it does not wait for the cin and the program closes. #include <iostream> #include <cstdlib> #include <string> #include "poly.h" using namespace std; void enterPoly1(Polynomial&); void enterPoly2(Polynomial&); void …

Member Avatar for tensity
0
252
Member Avatar for Jdan2388

Hey all im working on a program that has gives you the option of converting a message(string) into 3 different schemes: Prime Shift Encoding scheme, Shifty Encoding Scheme, and a Reverse Encoding scheme. I have figured out how to encode and decode the prime shift scheme and reverse scheme, but …

Member Avatar for plenty.groover
0
358
Member Avatar for mzee.1997

A teacher inputs the grades of his students. (Store the grades in an array). Output the mean, median, mode and the range. In addition, output the data graphically using a histogram. Use functions for the mean, median, mode and the range.

Member Avatar for umarqasimmalik
0
121
Member Avatar for kglilly

Hi, I have a simple QT C++ application. This is only part of the code: QTextEdit* cont; for (int x=0; x<2; x++) { cont = this->findChild<QTextEdit *>("content0_"+QString::number(x)); QString con += cont->toPlainText(); // display con in a QTextEdit anywhere you want } Two QTextEdit have different values. Let just say "AA" …

Member Avatar for kglilly
1
177
Member Avatar for Kesarion

I have an array of objects that I need to iterate through in order to get three items. The parts of the object important in this context are: value and type. I need to find the first three items from the array that have the greatest value sum and are …

Member Avatar for Kesarion
0
256
Member Avatar for TUNG810810

Anyone can help me to finish this c++ question? Please contact me by email. UNO UNO is one of the world's most popular family card games, with rules easy enough for kids, but challenges and excitement enough for all ages. In this assignment, we will program a simplified version of …

Member Avatar for Ezzaral
0
532

The End.