49,761 Topics

Member Avatar for
Member Avatar for Cindy20

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 …

1
145
Member Avatar for Vajclav

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 …

0
67
Member Avatar for Tigran

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

Member Avatar for dlayne718
0
996
Member Avatar for ShadowScripter

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 …

Member Avatar for SHA1962
0
2K
Member Avatar for santonu98

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 …

Member Avatar for Dani
0
100
Member Avatar for baxsas64

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 …

0
31
Member Avatar for summer_2

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 …

0
24
Member Avatar for summer_2

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 …

0
54
Member Avatar for 240300958_1
Member Avatar for rodeostar04

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

Member Avatar for N@sir
0
5K
Member Avatar for xoxmikestersxox

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 …

Member Avatar for MUGDHA_2
0
166
Member Avatar for ellaine101591

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

Member Avatar for MUGDHA_2
0
3K
Member Avatar for Lucas_13

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 …

Member Avatar for dbfud1988
0
2K
Member Avatar for J_7

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

Member Avatar for rproffitt
0
68
Member Avatar for muhammadnasiri

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 …

Member Avatar for J_7
0
22K
Member Avatar for Hithendra_1

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 …

Member Avatar for Dani
0
84
Member Avatar for bis student

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 …

Member Avatar for Alia_2
0
3K
Member Avatar for Abdul_68

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

Member Avatar for rproffitt
0
150
Member Avatar for C_Oleyers

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 …

Member Avatar for Mike_74
3
447
Member Avatar for Ayesha_14
Member Avatar for rproffitt
0
32
Member Avatar for C_Oleyers

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 …

Member Avatar for tinstaafl
0
82
Member Avatar for Arooj_3

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

Member Avatar for rproffitt
0
38
Member Avatar for mweshk

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 …

Member Avatar for 4075/2019
0
13K
Member Avatar for Yusuf_13

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 …

Member Avatar for Yusuf_13
0
202
Member Avatar for MagnusTheRed90

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 …

Member Avatar for MagnusTheRed90
0
285
Member Avatar for zeekie22

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?

Member Avatar for benjamin79
5
173
Member Avatar for Satish_14

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

Member Avatar for DGPickett
0
170
Member Avatar for stefh

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 …

Member Avatar for Márcio_3
2
79
Member Avatar for Xozz

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

Member Avatar for JamesCherrill
1
304
Member Avatar for RJPII

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

Member Avatar for Syed Umair Mohsin
0
12K

The End.