I'm currently making something with C++ for a computer at my house. I have a program in which I let run minimized and hidden on my home computer which will save any application that is opened. It will log it so I know if my kids are on my office computer (they shouldn't be.).
I'm curious as to if I can make the program linked to a program I make on my work computer (at my workplace) and execute a command. I'm interested in making it so I can always be connected from the Workplace app to the Home Office App.
My idea for the program is to have a sort of administrative way of shutting the computer down or locking it remotely. If I see they are using the PC in my office, I want to be able to simply type a phrase and shut the computer off or lock them out.
Code: { 0xC6, 0x61, 0x8D, 0x63, 0x0B, 0x39, 0x31, 0xB0 } am I doing something wrong?
I've even tried reversing the byte order of the test data, and I don't get the right result. I've tested the same data using C++ with CryptoPP on Linux, and I get the expected result, but I'm porting this code to run on .Net, and this is my main stoppage in the process at the moment.
The instructions: A nutritionist who works for a fitness club facilitate members by evaluating their diets.As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consume in a day. Then, she calculates the number of calories that results from the fat using the following formula:
Calories from fat = fat grams x 9
Next, she calculates the number of calories that result from the carbohydrates using the following formula:
Calories from Carbs = Carbs grams x 4
Create an application that will make these calculations
-DO NOT use global variables -Create two variables in main that will hold the two results -Pass fat and carbs by value, and the result variables by reference -Output in main
The key with what you need to pass is this: Pass fat and carbs by value, and the result variables by reference. This is what I have to far but I don't understand how to "pass by value, and results by variable" ....
#include <iostream> using namespace std; void grams (int); void calories (); int main () { //Get fat and carb grams
5. Four experiments are performed and each experiment produces four test results. The results are tabulated as shown below. Write a program to store these results in a two-dimensional array, A[4][5], then use a nested for-loop to compute the average of the test results for each experiment and store it in the 5th column of the array. Print the array.
6. Using the srand( ) and rand ( ) C++ library functions, fill an array of 1000 numbers with random numbers that have been scaled to the range of 1 to 100 inclusive. Then determine and display the number of random numbers having bvalues between 1 and 50 and the number having values greater than 50. What do you expect the output counts to be?
I need to write a program that merges the numbers in two files and writes the results to a third file. The program reads input from two different files and writes the output to a third file. Each input file contains a list of integers in ascending order. After the program is executed, the output file contains the numbers from the two input files in one longer list, also in ascending order. Your program should define a function with three arguments: one for each of the two input file streams and one for the output file stream. The input files should be named numbers1.txt and numbers2.txt, and the output file should be named output.txt.
I am trying to code and compile a program that requests a uses to first inpu the number of sides they wish for a dice to have and secondly input the number of dice throws they would like to calculate the value for. The program will print an error message and default the number of sides the dice has to 5 if the number entered is below 4. Finally it will print out a percentage figure for each value that results from all the the dice rolls.
I have attached my header, driver and class files below along with accompanying error messages below them
// file name Exercise.cpp #include <iostream> #include "Die.h" using namespace std; int main() // the main program begins here { char restart = 'y'; // declare variables double numRolls = 0.0; int diceTot = 0;
My SDL app which i made in visual c++ works properly on my pc, but it does not even starts on other computers. I have pasted all the required .dll files in my debug folder along with the pictures and sounds.
I have a Blackjack game that allows users to create a login account and it keeps track of their bet amount, and total bank,etc. How can I connect the program on 2 or more computers so that people can play together?
(A) How would I code it? (B) Can I just connect a USB or HDMI and use the appropriate code? (C) Do they need to be executables instead of just running out of Visual Studio? (D) Can this maybe done over Wi-fi? (E) Or is this something more complicated like over a VPN?
I need to transfer files(mainly images) between 2 computers using their RAM with some kind of FTP. I'm using C++. I guess it's pretty a lot to explain so if you have a clear and detailed articles/videos
I use standard libraries and INNO Setup, wich is a free setup file creator.
I succeeded in adding NetFrameWork 4.5 installer into the setup (it runs it after installation, and before running my software (named GOFINDER).
Now, i remember that this happened to me, but after three months of programming, mine used to start and still does. But I know it sometimes doesn't start, and I don't know why exactly.
I checked to make sure that I needed only FrameWork 4.5.
But maybe it is because of Visual C++ Runtime wich is not added upon setup.
I will try to check this after posting cause this has just popped up in my mind.
I'm asking you how can I Make sure, that distributing my software won't do that anymore.
Is it because my application file is not set on Run as Administrator?
Cause normally, it opens without this necesity, except as a Shell (well I have to check back but I think it does if I check on the run as administrator checkbox.
The problem is not really with InnoSetup, but I also would like to know how I can check that box automatically upon setup.
they say they have a documentation but I don't find it on my computer.
And... why would it start on my computer, and not on my beta-testers's one?
How do I do the operation of two integers that gives you the results?
I'm supposed to write a program that:
Asks the user for an integer Asks the user for one of '+', '-', '*', or '/' (as a character) Asks the user for another integer Performs the given operation on the two integers, and prints out the result of
Please enter an integer: 4 Please enter an operation (+, - , *, /): * Please enter another integer: 5
4 * 5 = 20
Code: #include <iostream> using namespace std; int main() { int x; int c; int d; char e;
I mean on the executable file. It just displays the results and quickly flashes away, cin.get() has no effect and system("PAUSE") is undeclared.
I never found a single sure way to pause effectively. Is there a method that works all the time? Sometimes cin.get() gets skipped even in the code itself. The IDE I am using is Code Blocks if that matters any.
I have created a game that functions correctly, however, for balancing and future changes, I would like to record results .txt document (its 1v1 btw). I already have code to determine who won and what I am looking for is some way to keep track of different match-ups for the different characters. Im looking for something like this:
the numbers are the amounts of wins a given character has over another character. I'm looking for code to open the .txt file and add 1 to the respective win total so I can do balance changes and such.
I am using Excel 2013, Visual Studio 2015. I began learning about Excel XLL. I wrote simple function which tests whether the argument is missing. Here's code:
The point of this program is to calculate how many cents the user would have after a certain number of days. The user is given .01 cent on day one, and this amount is doubled with each passing day. I cannot seem to figure out how to add all of the results. Currently, my program simply outputs them to the screen. How do I tell it to add all of the results and store the sum in one variable?
#include <iostream> #include <cmath> #include <iomanip> int main() { using namespace std; float totalF = 0;//total amount earned after number of days specified by user have passed
I'm using below code snippet to fetch Youtube video titles, when you enter a query into a listbox, and press the search button:
int resultsn = 0; void YTReq(string appname) { devkey = "my-dev-key-here"; YouTubeRequestSettings settings = new YouTubeRequestSettings(appname, devkey); request = new YouTubeRequest(settings);
[code].....
But what i get is exactly 500 results, even if i remove the 500 search limit radio-button (i've put that later, after seeing that the search only fetches 500 results). But when i search the same query on YT, i get 1000s of results. What's the wrong with my code?
Here is the site that I want to interact Genderchecker
I want to set a value to a specific element in a web site. Perform a click on an element that is image. Get the result <span> text into string variable...
I am nearing completion of my first real app.. but I noticed a nasty catch in that it consumes 10-20% CPU at idle. I went around commenting features that I suspected may be causing it but it had 0 impact and my CPU usage at idle is still 10-20%.
The program has two threads, one of which is used very little and the second one consume needless CPU.. The only clues a profiler gives me is
I run some computations which give a big number of vectors (let's say 100 vectors, each one contain 2000 elements of type double). I want to save those data and import them into Excel.
I know I can save the results through in txt file. But it would be a very long file. Can I save the results in other more efficient file form that can be imported into Excel? and how?
How to get my data from the file and output, but now I am having trouble with my acceleration function. Right now, I have the acceleration function commented out and the output for acceleration at the bottom because if I try to run the program with them in it the program stops working. working with acceleration calculations and then finally outputting that acceleration.
//Program that reads the time and vertical velocity data and then calculates things from it
I have an HTML5 form with a number of text boxes on it. I would like these textboxes populating with data retreived from an SQL database, using inline C#. I have a stored procedure that returns the data.