49,761 Topics
| |
Kindly Remove its errors and tell me the reason for the error. Code: https://www.box.com/s/enl4h6loqcnc7jqqgujq | |
How a designer of a class can ensure that no one outside the class can make a copy of the objects of their class? | |
#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] = … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 - … | |
[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 += … | |
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 … | |
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 … | |
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 … | |
i need to help in multiplying two matrices by pointer in c++ | |
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 … | |
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 … | |
> 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. … | |
I use the g++ compiler for linux and i am trying to link allegro. how do i link allegro with g++? | |
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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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" … | |
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 … | |
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 … |
The End.