49,761 Topics
| |
Can you help me decrypt the message with the given information. I figured out the first line is using Xor ciphers but how do I figure out the rest? Y[ZU[XZWZ\XXZjZ[[WWVWU Ogaqkxpgbqbfiof! Cyw'ss bun! Zqksxl cywd lnepwvs uozneh. Qjc mgabiy nfx vmz-djrhkfalfq. Xnjfx ai qjvi viqi uat pgw odjwp. The radio … | |
I want to add a try catch block in the CalculateAverageRate method where I want the user to enter grades 1,2,3,4,5 and for other numbers to throw an exception... I would also like to make a constructor with three parameters (string name, string surname, string date_birth) in which string attributes … | |
Hello guys, I've been playing with Direct2D lately, and found out (from a presentation) that converting geometries into meshes makes rendering a lot faster So, how do I do this? I tried this: [CODE] hr = RenderEngine.D2DFactory->CreateRectangleGeometry(D2D1::RectF(0,0,10,10), &pGem); hr = RenderEngine.RenderTarget->CreateMesh(&pMesh); hr = pMesh->Open(&pSink); hr = pGem->Tessellate(D2D1::Matrix3x2F::Identity(), pSink); hr = … | |
I just had to look up the WM_ representation for the mouse scroll, so that I can activate my game camera zoom, more freely, rather than using the arrow keys (which was fun at first) So, I tried implementing the WM_MOUSEWHEEL into the message loop and created a switch statement … | |
Declare a class (i.e., a type) called CArea and an object (i.e., a variable) of this class called obj. This class contains four members: two data members of type int (member x and member y) with private access and two member functions with public access: set_values() and area(). Calculate the … | |
Hi, so I am very new to coding and I wanted to make something that opens a website stored in a string variable like this: #include <string> #include <iostream> #include <windows.h> int main() { string url = https://google.com; //now I dont know how to open the url from the string … | |
I want to create an edit function, the flow is In a loop, read the next record until there are no more records. If we found the record we want: Write the new data to the output file else Write the old data to the output file end loop Close … | |
The problem I face is since I use this type of loop to achieve the delete function, i really don't know where should i put the "else" statement when the searching result is not found in the file. Because the while loop need to run whether the result is found … | |
I am having problems using the square root function in my program. I have included <cmath> outside of main and my formula using the square root looks like this: area=sqrt(s*(s-a)*(s-b)*(s-c)); but, I keep getting an error that says 'sqrt' cannot be used as a function. I would appreciate any suggestions. … | |
Here's my code for a Hangman game I'm developing: #include <iostream> using namespace std; const char *const Words[]={"America", "Barrack", "country", "doctors","salamat"}; #define NWORDS (sizeof Words/sizeof (char *)) int main() { const char *toguess=Words[0]; char guess[15] = " "; int numguesses = 1; char ch; string str1; string str2; // string … | |
Hello! i'm only a beginner in programming and only have a few idea about creating a program. We have an assignment to create a hangman: Write a program that plays the game of Hangman. The program should pick a word(which is coded directly into the program) and display the following: … | |
I'm trying to write a function that will draw a right triangle that will ascend and then descend after the max height is reached. It is to be drawn using the asterisk symbol. I'm fairly new to recursion and that is the primary method I need to use to solve … | |
This program is not displaying the "Student Statistics" and Name in the output. Please solve this issue. Thanks Program Link: https://www.daniweb.com/programming/software-development/threads/469457/project-title-student-record-registration-using-linked-list | |
two error come of (strcpy was not declare in this scope) would any one show me, hw to remove this error, ... plz Project Title: Student Record & Registration using Linked list Description: This project is a Linked List application. If you would like to refresh you knowledge about linked … | |
Mr.X owns a small business in a region with poor law-and-order. Recently his warehouse has been plagued by thieves. Gangs of thieves raid over his warehouse from time to time, stealing his raw material, affecting his business. He has studied the occurrences and noticed it that they are cyclical. Assuming … | |
Hi this is my question , and I have some error in my code ,and I cant correct them ,and I am asking if you could help me ? this is the question : Create a class called BloodDonor that maintains information about blood donors in a blood bank having … | |
| Write a program to sort an array of integers in ascending order by using pointers Write a program to sort an array of integers in descending order by using pointers |
So im actually creating a fastfood menu in which save how many times a button been clicked as a variable. So I can multiply it to its value. For example if i click btnChicken a variable will count how many btnChicken been clicked then it will multplied on the amount … | |
write a program to calculate and print equivalent of two capacitors connected in series | |
I need a program that takes my btnChicken_Click event (when being clicked) and save it as a variable. I know my programs trash but really need it. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Fatfood { public partial … | |
#include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; int main() { int sitution =0; cout<<"SECURITY SYSTEM"<<endl; cout<<"1. Police"<<endl; cout<<"2. Fire Brigade "<<endl; cout<<"4. Earthquake "<<endl; top: cout<<endl; cout<<endl; cout<<"Press The Button for Help \n "; cin>>sitution; if (sitution ==1) { for (int i =0; i <10;i++) { Beep(1000,400); cout<<" … | |
Dear the gurus; I am a developing a small program for voting of about 5 candidates. The program should compute and return the candidates and their total tallied votes. If a voter enters a number outside 1-5 it should count it as faulty vote. I have the following program but … | |
basically my sister had a ipad ,and she was using for a long time and was enjoying using it and she forgot her ipad password. there was no way to reset the password without going to shop and we couldn't be bothered to take to pc store to reset the … | |
The following code is not working correctly. It is supposed to be associating an ip address of a user with a post's content, which in an online scenareo you know can be two different ip addresses. It is therefore showing exactly what was done with an account in the event … | |
I am a developer who recently started working on my own, and I've come across some projects that I can't handle by myself (mostly in React). What resources would you guys recommend for finding / putting together a team of remote developers to join me on these projects? | |
#include<iostream> using namespace std; int findmaxindex(int a[],int ,int); void swap(int a[],int ,int); int main(){ int n; cout<<"give the number of elements to sort"<<endl; cin>>n; if(n>100){cout<<"invalid"<<endl; return -1; } if(n<=0){cout<<"invalid"<<endl; return -1; } int count,a[100]; cout<<"give"<<n<<"integers to sort"<<endl; for(count=0;count<n;count++){ cin>>a[count]; } int currtop,currmaxindex; for(currtop=0;currtop<n;currtop++){ currmaxindex=findmaxindex(a,currtop,n); swap(a,currtop,currmaxindex); } return 0; } int … | |
Hi each & everyone, I'm not new here, I've been registered some 9 years ago, and since I've been busy elsewhere I haven't use this forum since then. But since I've decided to learn C++, I've thought it could be good to comme back in this community to share and … | |
I'm reading a book about C++. I'm on arrays now. It seems that a two-dimensional array is taken in this way: void Function( int arr[][numberof2nddimension] ) { } Why is that so? Help please. Thanks | |
I have been browsing the web for days now trying to find a solution to my problem and have yet to come up with anything so far so I figured I would ask some professionals. Basically I need to read a text file which contains records along the lines of: … |
The End.