51,592 Topics
![]() | |
Hello everyone I am a c++ beginner programmer, currently doing finalising classes. I wish to be assisted in fixing my code. I want to pass an array of objects as an argument and then use that object to search for data in the program but it seems like the objects … | |
#include <iostream> using namespace std; int main() { int a, b; char c, d; cin >> a >> b >> c >> d; for (int row = 1; row <= a; row++ ){ cout << c; for (int cols = 1; cols <= b; cols++){ cout << d; } } … | |
Good afternoon guys, I am reaching out for help on C++. I just started the semester taking the Computer programming 1 at my college which is taught in C++. I am working on a chapter project qusetion and I feel lost on how to achieve the solution using the basic … | |
#include<iostream> #include<conio.h> using namespace std; struct marks{ int phy[10]; int math[10]; int chem[10]; }; int main(){ struct marks m[20]; int i,n; cout<<"Enter the number of students : " << endl; cin >>n; for(i=0;i<n;i++){ cout<<"\nEnter Physics marks: " << endl; cin >> m[i].phy; [error here] cout<<"\nEnter Maths marks : "<< endl; … | |
I need an end user license agreement for code shared amongst my home projects with other developers. The EULA needs to include a "pay to the order of x" clause, and also needs to include the ability for me to utilze the code at multiple companies that I could participate … | |
Create a class date with day, month and year as its members, Accept the date from the user and display it. Overload the increment and decrement operators for displaying the next and previous date for the given date | |
How can I change my program's icon for anyone who uses the program? Obviously I would have to include the .ico file with it, but beyond that, I'm stumped. | |
I am just learning C++. I haven't made any games with SFML or anything like that. Just wondering whether SFML would be easy for a newbie like me. I am planning on using it after I finish learncpp.com. I am currently at the header guards section right now. Also, what … | |
We are tasked to simulate a simple printing queue, where users take turn at printing their files/documents. We just need to put each of user's name, ID, and number of pages and then output the queue in the program. We need to do it by using Queue with Array. So … | |
(Jumble word program) (plz guys help me to make this program) user enter few characters randomly, then press enter, (your program stores 50 names of your class fellows) if by rearranging your entered characters it matches to the names stored, then it will show it, otherwise it will show that … | |
Write a program for the below mentioned question. Create three variables : a,b & c In the code, assign them some random integer values. Print the three numbers in ascending order, separated by commas. For example: Let a =1, b= 5, c= 2. Output = 1,2,5 | |
hello, i'm newbie here and also in programming world. so I would to request help from pros here. my question is, how to print out number entered in random in ascending order WITHOUT USING ARRAY AND FUNCTION? let say the user key in 4, 56, 31, 90, 11 and the … | |
Been programming more than half my life and been in industry for over a decade. | |
#include <iostream> using std::cin; using std::cout; using std::endl; using std::ios; #include <iomanip> using std::fixed; using std::setw; using std::setprecision; using std::showpoint; int main() { const int PEOPLE = 5; const int PRODUCTS = 6; int sales[5][6]={{1},{2},{3},{4}}; double value; double totalSales; double productSales[ PRODUCTS ] = { 0.0 }; int salesPerson; int … | |
How to fix the following error? NewBie **Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address (polkit-error-quark, 0) httpd,reload=yes,status=0** | |
1. Create an array of integers and initialize/assign random values to each element. 2. Allow the user to input an integer. 3. If the user input is present inside the array elements, display/print its index number, if not display/print "VALUE NOT FOUND" I appreciate if you would help thanks. I … | |
Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. - A string data field named color that specifies the color of a rectangle. Hypothetically, assume that all rectangles have the same color. … | |
Please someone help me create campus chat group i really need it | |
I am a real-time programmer, currently working for Proprio - a small medical device start-up. I work with C++, C# and Python on Windows. | |
Hi, how would I use mouse_event to simulate the mouse wheel? I can only do clicks. [Code=C++] void Left_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0); } void Right_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0); … | |
I just want to learn how this works and how I will use to build my own games/apps | |
A grayscale digital image is a two-dimensional raster image in which the picture elements, or pixels, store a single value representing a shade of gray that varies from black to white. In a discrete grayscale image, the shades of gray are represented by integer values in the range [0 to … | |
Can anyone help me please! I want the source code for this program.!! Tomorrow is last date of submitting C++ PROJECT. I want the source code for this program.!! **Airline Reservations System** A small airline has just purchased a computer for its new automated reservations system. You have been asked … | |
I work in IT as a UNIX Systems engineer and I am studying towards a BSc IT degree. | |
Please share the converter of c++ into assembly language. | |
I was wondering if someone can create the printer with raspberry pi ? Will pay the price for the costs of labor, materials, etc. or maybe you can recommend someone to make it? Like this https://exciting.io/2012/04/12/hello-printer/ | |
Write a class template that inputs the index of the array and displays the value in the specified index | |
HI!! How can I create an automatic numerical progression from 0 to 500,000 in html? The code I was given is this: <p><span style="font-family: Calibri, sans-serif;"><span style="text-shadow: rgba(255, 255, 255, 0.8) 0px 3px 2px;"><sup>437</sup></span></span></p> how can i make the code progressive and automatic every three minutes? The progression I have … | |
When ever run this program, I can't get the total price right and I tried it so many times but failed. Can anyone help me where or how to fix this mistake. This is my mini project for my assessment :(. using namespace std; int main () { char name … | |
does anyone have any sources that can help me understand how to create a dev environment in tfs? currently we have a production environment only and we need to build a branch off of that without ruining the existing code | |
# Importing import sklearn from sklearn.datasets import load_boston import pandas as pd import matplotlib.pyplot as plt # Load the dataset bos_hou = load_boston() # Create the dataframe column_name = bos_hou.feature_names df_boston = pd.DataFrame(bos_hou.data) df_boston.columns = column_name df_boston.head() | |
How to find the first non repeated character of a given String? | |
Hey, I want to make a program in which I will find the **index** of word and **count** how many words there in a txt file using c++. | |
Define a class Pairs with two integer data members, f and s, where f represents the first value in the ordered pair and s represents the second value in an ordered pair. Objects of type Pairs can be used in any situation where ordered pairs are needed. This class has: … | |
write a program using functions to find the sum of each column in a 2-D array. | |
Write a C++ program to ask user to input last two day’s temperature for two different cities. Then your program must be capable of displaying user data. This program functionality can be performed in many different ways but you are directed to do it using multidimensional arrays. | |
create a C++ program,. The information that you are dealing with is serial number, name of stationary item, company of stationary item, price and flag to know whether stationary item is . First you need to create a menu which has the following options 1. Add new stationary item in … | |
how to create 2 array matrix in dart programming | |
#include<bits/stdc++.h> using namespace std; struct date int day; int month; int year; int main() struct date input[5]; for(int i=0; i<5; i++) cin>>input[i].day; cin>>input[i].month; cin>>input[i].year; for (int i=0; i<4; i++) for (int j=i+1; j<5; j++) if (input[i].year > input[j].year) struct date temp = input[i]; input[i] = input[j]; input[j] = temp; else … | |
Fred sales bunches of flower at the local shopping centre. One day Fred's boss, Joe tells fred that at any time during the day he will need to know: How many bunches of flower has been sold. a) What was the value of the most expensive bunches sold? b) What … | |
Write a C++ program that calculates and prints the sum of the odd integers, and the sum of even integers from 1 to 20. Use for statement. | |
this is my sample code to create a student record using singly linked list queue. my problem is that I want to insert a student number in the struct but it doesn't repeat when I input the same student number. #include <stdio.h> #include <stdlib.h> struct node { char No[12],Name[24],crsysr[10]; float … | |
So we can't just do the top half of the shape, then do another bunch of loops as the opposite to output the second half of the shape. This is what i did, but i'm told it can be done in no more than 3 loops. I can't quite figure … | |
Generate a graph by forming an adjacency matrix with random numbers. The graph will have 10 nodes. The connections will be generated randomly with the following rules. • Each pair may have a connection with 60% probability. It means that the connection weight for a node pair will be 0 … | |
my teacher gave an assignment to work on in a break time and i have been strugling with it for about 2 months. And i was thinking if you can actually help me get this program done or at least give me a highlight on how i can work throug … |
The End.