48,986 Topics

Member Avatar for
Member Avatar for conrad_3

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.

Member Avatar for Reverend Jim
-1
174
Member Avatar for vegaseat

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.

Member Avatar for iman_1
1
5K
Member Avatar for Grace_10

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 …

Member Avatar for ddanbe
0
411
Member Avatar for devfeel

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 …

Member Avatar for k_8
0
2K
Member Avatar for Mayank Singh

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 …

Member Avatar for rproffitt
0
330
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
448
Member Avatar for emilio_3

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

Member Avatar for ryantroop
0
570
Member Avatar for Toni_7

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 …

Member Avatar for Toni_7
0
701
Member Avatar for Mike_51

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 …

Member Avatar for xrjf
0
1K
Member Avatar for Toni_7

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 …

Member Avatar for rproffitt
0
2K
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
3K
Member Avatar for mrgreen108

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 …

Member Avatar for happygeek
0
1K
Member Avatar for Josh_6

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 …

Member Avatar for ryantroop
0
445
Member Avatar for Ojelabi

Please i need your suggestions on how to design a system that will diagnose malaria or typhoid by accessing a number of symptoms.

Member Avatar for Ojelabi
0
782
Member Avatar for Trevah

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 …

Member Avatar for Reverend Jim
-1
233
Member Avatar for James_95

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 …

Member Avatar for Smith5646
0
389
Member Avatar for Zack_9

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 …

Member Avatar for Schol-R-LEA
0
870
Member Avatar for Hamsterking

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 …

Member Avatar for Hamsterking
0
464
Member Avatar for Zack_9

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 …

Member Avatar for Schol-R-LEA
0
337
Member Avatar for Hansly

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

Member Avatar for John_191
0
471
Member Avatar for Joel_10

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 …

Member Avatar for Joel_10
0
402
Member Avatar for kes166

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 …

Member Avatar for kes166
0
2K
Member Avatar for iamsibi

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 …

Member Avatar for Schol-R-LEA
0
7K
Member Avatar for Kang_1
Member Avatar for kes166

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 …

Member Avatar for kes166
0
1K
Member Avatar for mustefa_1

write c++ programming that calculate electricity bill with persons name and id

Member Avatar for JamesCherrill
-1
419
Member Avatar for Blank_1

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 …

Member Avatar for kes166
0
652
Member Avatar for robertslots

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 …

Member Avatar for rproffitt
0
144
Member Avatar for ryantroop

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 …

Member Avatar for ryantroop
0
3K
Member Avatar for Gunjan_5

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

0
180

The End.