49,761 Topics
| |
This is a simple zombie survival game, i need to have finished by tomorrow, and I am having multiple problems with vectors being out of range. I also need to change some stuff into classes and make inheritances. I have tried fixing the problems but no success so far and … | |
Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice to the screen and asking the user to type in a different piece of advice. The program then ends. The next person to run the program receives the advice given … | |
I'm glad to join this community. My interest is deep learning for audio research. | |
I have this https://imgur.com/a/SMqlcgF multiplexer and I have to make a program to get the truth table. How would I do this? I honeslty am so lost. | |
PR A PROGRAM IS REQUIRED TO READ FROM THE SCREEN THE LENGTH AND WIDTH FROM THE SCREEN THE LENGTH AND WIDTH OF A RECTANGULAR HOUSE BLOCK AND THE LENGTH AND WIDTH IF THE RECTANGULAR HOUSE THAT HAS BEEN BUILT ON THE BLOCK.THE ALGORITHM SHOULD THEN COMPUTE QND DISPLAY THE MOWING … | |
Hey, guys~~ I have some questions about CSP Is simple hill-climbing a complete algorithm for solving CSPs? and if a CSP is only with unary constraints, is it sure to be solved? Thank you^~^! | |
Things don't have to be black and white all the time. Use a Windows API call to add some color to your text output. | |
Finding seasoned programmers who are willing to work remotely might be challenging. It is possible to find them on websites such as Toptal, which is an amazing alternative. Only the top three percent of applicants who complete successfully pass the rigorous screening procedure required by Toptal software engineers. The people … | |
Below is the code I have, and the output is below that. It all seems right, but I don't want it to print out the 0's if they appear in the output. How do I do that? #include <iostream> #include <iomanip> using namespace std; int main() { double moneyOwed = … | |
hi, please help me how can i convert this C++ code to C source code ... please help ..... this is the URL http://cppforschool.com/project/super-market-billing.html i dont understand this though please help ... :((((((( | |
i have an airline ticketing project and i cant figure it out, i need to take the name and age of passengers and depending on their ages they will get a discount (2% for 13 below and vat exemption + 20% discount for 60 above) and also the prices changes … | |
Hello..... Where I am wrong in this program. I am getting declaration syntax error. #include<iostream.h> #include<conio.h> int factorial(int) int main() {clrscr(); int n,r,nr,fn,fr,fnr; int ncr; cout<<"/n Enter n and r = "; cin>>n>>r; fn=factorial(n); fr=factorial(r); nr=n-r; fnr=factorial(nr); ncr=fn/(fr*fnr); cout<<"/n nCr ="<<n<<" C "<<r<<" = "<<ncr<<endl; getch(); return 0; } Thanx | |
can someone help me to do the friend function, i already do a coding a bit but i dont know how to continue. so i attached the instruction for referring ![Screenshot_(250).png](https://static.daniweb.com/attachments/4/8efada89fc4adfcd6daad821f8c48933.png) #include<iostream> using namespace std; class studInfo{ private: string name; int matric; public : studInfo(){ matric=0; } ~studInfo(){ } void … | |
I have written code to append, prepend and update a linked list using c++. But I am unable to figure out the problem. Can anyone help me to run it. I will be grateful for the favor. The code is pasted below: #include<iostream> using namespace std; class node { public: … | |
A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You’re to write an application to assign seats on each flight of the airline’s only plane (the capacity of the plane is 10 seats of the same … | |
HOW TO CREATE MARIO GAME USING C++.IT SHOULD HAVE A USECASE AND CLASS DIAGRAM ,THE PROGRAM SHOULD HAVE CLASSES ,POLYMOPHISM ,OBSTRACTION & ENCOPSULATION | |
How would you write this into pseudo code #include<cstdio> #include<cstdlib> #include<iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) //variables string var, var1; float cm, mile, kilometer, inch, meter, AU, fahrenheit, celsius, foot, quit, i; //program i = 1; while (i <= 1000000000) cout << "Enter the starting unit. For … | |
Write the class definition for a class named Employee. The class should include data members for an employee object's name and salary (the salary will be an integer). The class should contain two member functions: the constructor and a function that allows a program to assign values to the data … | |
I have pasted my cpp code below, my goal is removing the whitespace from my .txt file. Is someone able to provide suggestions and help me figure this out? #include <iostream> #include <sstream> using namespace std; string solve(string s) { string answer = "", temp; stringstream ss; ss << s; … | |
Declare a single dimension array of size n input n elements to a single dimension array Sort the elements of an array from highest to lowest and vice versa Also, the program will identify and output the highest and lowest integer. | |
How can I write in C++ a code in which a user select multiple similar names from a list of names. | |
// Texture segmentation using Uniform Local Binary Pattern #include<iostream> #include<stdio.h> #include<conio.h> #include<malloc.h> #include<math.h> struct cluster { /* data */ float i[10]; float cumi[10]; int memcount; }; //variable declaration unsigned char **allocateMem(int,int); void applyKmeans(unsigned char **,int,int, unsigned char **); void calculateTexturevector(unsigned char **, int,int,float *); void initializecluster(unsigned char **, struct * … | |
Can someone please give me tips on how to accomplish generating a random number within a random range. See 'roll_dice' #include <iostream> #include <limits> #include <ctime> #include <iomanip> #include <cstdlib> using namespace std; using std::cout; using std::cin; struct Sanity { unsigned int turns = std::numeric_limits<int>::max(); unsigned int sanity = std::numeric_limits<int>::max(); … | |
For a given array of integers, reach to the end of the array from the 0th index with minimum number of moves. Moves possible at each index: Move from index i to index (i+1) Move from index i to index (i-1) Move from index i to index j, if a[i] … | |
| |
Does someone know how to download a file in c++? A simple way. i just need it to download and save it to a specific directory. | |
I have a question. do we have any function in C++ to get back the previous value while running the program? For Example: First Name: Anthony Last Name: john Gender: the pointer is at the Gender value right now soo is there any way to get back up at the … |
The End.