48,986 Topics
| |
Write a program in with a function that takes two int parameters, adds them together, and then returns the sum. The program should ask the user for two numbers, then call the function with the numbers as arguments, and tell the user the sum. | |
The snippet shows how to create a menu on a windows form and test it. Original code via BCX, modified to compile with Dev C++ as a Windows Application. This approach does speed up writing of GUI programs. | |
Urgently need help ASAP!!! If anyone could help me with these questions, i would be so grateful. 1) write a program tht allows the user to enter a part no. tht consists of 4 or 5 characters. D 2nd and 3rd characters represent the delivery method as follows: "MS" represents … | |
I have developed a sniffer code in C language. Now i am creating user interface for that. I am using visual C++ to design user interface. Once the program starts it stores each packets ip address, port number , protocol type ,time etc in respective variables. Now i want to … | |
Hi all, Here is the code in c++ and i am new to coding world hence i need little help in converting this code into R #include <iostream> #include <cmath> #include <fstream> #include <string> using namespace std; int main(int argc, char *argv[]) { std::string protein; ifstream aa; aa.open("aa.txt"); //we are … | |
the C++ have virtual functions, but, for me they have 1 problem: on derived class, i must prototype them, for define them on Global Scope. how can i avoid the re-prototype them on derived class? i tried 1 way: template <class Type> class TypeHasToString { // This type won't compile … | |
//Create a random 10 character password with the first character being a upper case letter. The remaining characters are random selections of Upper case //letters, lower case letters, 9 digits and/or special characters (found only on the top row of your keyboard). Please exclude 0 and O's from being used.After … | |
i have 2 sperate projects which i am trying to run together as a shared project but i am failing hard……. Basically, first project does infix to postfix notation and the second projects does postfix evaluation. tried to run all that in 1 project but i keep getting all sorts … | |
Hello, all. I am trying to calculate entropy, and I cannot get the calculations correct, or match the results with the assigned if-statements. I get a number that differentiates a bit from the answer that I want. So far, this is my code: #include <iostream> using namespace std; float Entropy(float … | |
Hello, I am building a calculator in c++ windows application form, i want the calculator to handle multiple operator precedence (for example, 2+4*5/3). but i am not sure how to write the following code on my windows form project. Any suggestions would appreciated . #include <iostream> #include <conio.h> using namespace … | |
There are a number of very old threads on CUDA so I'm starting a new one rather than resurrecting an old one. Does anyone here have any experience setting up and developing in CUDA on a Windows platform? I know that there is a system that can be set up … | |
in working with my 2d arrays, i have to read in from an input file a char array of NxN and manipulate the matrix in various ways. i have gotten just about everything finished, except i cannot figure out the logic of shifting a row left or right, or shifting … | |
Good Morning everyone, My intention is not to get someone to do the whole code to help me but I'm currently learning c++ and I'm working on a homework project to create 10 small programs inside of 1 code and I'm having a hard time doing the last one. It … | |
Please i need your suggestions on how to design a system that will diagnose malaria or typhoid by accessing a number of symptoms. | |
A c++ program that prompts the user to input east or west, if the person inputs east, it prompts the user to input Northeast or Southeast. If the user inputs Southeast, it outputs "You have gone Southeast" however if the person inputs Northeast, the program outputs, "You have failed 1000 … | |
I’m new to this and talking an intro class. I’ve read and reread my course material so far and I can’t get this line to work. It has to display You have 2 even and 3 odd numbers but no matter what I do, it keeps coming out with 0 … | |
Hi yall! I have to create a priority queue with out using built in librarys. I have tried to write a bit of code so far, however I dont know if it works and am a little confused on a few things. What follows this line is the main cpp … | |
hello coders, i hope you all are going well, one thing blows my mind today in c i can't explain it this is why title is akward, so the thing is i have an array called tab[n] i wanted to invert it elements from tab[0] to tab[n-1] and and the … | |
Hi all! I need help understanding what my teacher expects from this project. Here is the link to the instructions for the project: http://cs.ecu.edu/~karl/2530/spr18/Assn/Assn5/assn5.html I wrote a little bit of code but i am stuck and dont know how to move forward This is as far as ive gotten with … | |
#include <SFML/Graphics.hpp> #include <time.h> #include "Connector.hpp" using namespace sf; int size = 56; Vector2f offset(28,28); Sprite f[32]; std::string position=""; int board[8][8] = {-1,-2,-3,-4,-5,-3,-2,-1, -6,-6,-6,-6,-6,-6,-6,-6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, … | |
Please help! I'm new to programming and my Program is outputting user's input twice. Right now It looks like this when its outputted: Floor Room Available Occupied Occupancy Rate ------------------------------------------------------------------ 1 15 10 5 33.33% 2 15 10 5 33.33% QUESTION: I realized an array is needed but what would … | |
Good Evening, I'm working on my final project and I'm having an issue with reading input from a file and converting the string into an integer - specifically with the first character being read from the file. Here is the data in the .txt file created in notepad: 6 -1 … | |
I had a problem with my turbo C++ which would close itself after every execution.(Not the getch problem) After somehow solving this fault and the full screen problem, I tried out a program to check if my C++ is fine. Everything is fine except for the Output screen which seems … | |
test for check more 5 items | |
Good Evening, I'm working on a program that will allow user input and will take that input, insert it into blank spots into an email template, and then prepopulate the email template in Outlook so all an analyst would need to do is click a the send button - basically … | |
write c++ programming that calculate electricity bill with persons name and id | |
Hello, I'm trying to create a character array that would find the absolute value of each value. Ex. Candadite: 111111 / Target: 444444. abs(1-4)(1-4)(1-4)(1-4)(1-4)(1-4) answer: 333333. I have the code running, but I get a consistant answer of 700, even when I move to a new Target set. If anyone … | |
I installed OpenCV on my older Ubuntu machine [](https://onlineslotscasinoz.com/) today. Now I wanted to try this library once. That's why I wanted to try the following code: #include <stdio.h> #include <opencv2/opencv.hpp> using namespace cv; int main(int argc, char** argv ) { if ( argc != 2 ) { printf("usage: DisplayImage.out … | |
Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, this is just a .h, .cpp, and main cpp but it's still a lot of lines) that wont just be … | |
# An orders class def __init__(self, order): # Initialise self.ID = order.order_id self.kits = [] kit = {} for x in order.kits: # Add kit kit['Type'] = x.kit_type kit['Objects'] = x.objects self.kits.append(kit) |
The End.