49,764 Topics

Member Avatar for
Member Avatar for Husnain_6

statement: write a code in which user first select what type calculator they want to use. Simple or scientific and on that basis they do the calculations. I have written the following code but it is not running. I am unable to figure out the problem. Please anybody help!! #include …

Member Avatar for Schol-R-LEA
0
93
Member Avatar for Nathan_22

C++ program that displays on the screen item codes with corresponding item descriptions and prices. It asks the user to enter the code of the item purchased by a customer. It looks for a match of the item code stored in items.txt. How to read a specific line from a …

Member Avatar for toneewa
0
771
Member Avatar for kuaina

Display instruction for the respondents to answer the survey using function displayInstruction(). -------------------------------------------------------------------------- |Survey of Student's Perception on Online Learning in Kolej Seri Sarawak | -------------------------------------------------------------------------- Dear Respondents, You are invited to answer this survey. Please respond to the following questions that corresponds to your response. The survey is divided …

Member Avatar for toneewa
0
154
Member Avatar for sprongklong

Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. Here is a sample run:

Member Avatar for toneewa
-2
886
Member Avatar for HUSNAIN_5

Hi! My name is Husnain.I want to make a calculator using array in C++ language. So please can you help me to make this calculator?

Member Avatar for rproffitt
0
36
Member Avatar for Catszzzz

Please help me with my project. Currently i am trying to make a receipt that only list the things that you order. But i have no idea how to do it. Please Help #include <iostream> #include <stdlib.h> using namespace std; void check (); void start(); void printacc(double pa); void printphone(double …

Member Avatar for toneewa
0
129
Member Avatar for Joel_33

Anyone can help me? Create a C++ program that will contain a function to sort an array of 5 integers in ascending order, in which the function returns a pointer that points to the sorted array.

Member Avatar for rproffitt
2
130
Member Avatar for sankar2000

Hello. I am writing a program in C++ that is reading some files with `fstream` then writes with simple function and after that closes them. I created a `struct` and i keep there filetag,filepointer and lines. The problem is that from main i can't write or close the file ... …

Member Avatar for Schol-R-LEA
0
31
Member Avatar for Miguel Nicholas

To be honest with you, all the codes that i made were self taught, i had to advance myself to learn more stuff in C++ which my first challenge is to make a simple but clean made text based adventure game, but im at the wall atm. (don't judge me, …

Member Avatar for kidspointdotin
4
3K
Member Avatar for Mehak_3
Member Avatar for jwenting

I'm trying to use CLion (thus CMake) to create OpenGL applications using C++ on MacOS Monterey using a 2021 (so M1 based) Macbook. Glew2 and GLFW3 are installed correctly using Homebrew, XCode and the commandline tools are installed as well. Creating and compiling/running through XCode works fine, but using the …

Member Avatar for rproffitt
1
709
Member Avatar for Saim_5

i have initialized the elements of the array by reading the strings from a file, however when I call the sort function, either the program crashes or it just outputs NULL. What could be a more efficient way to store data from a file? the file that I have opened …

Member Avatar for Jim_532
0
189
Member Avatar for vaishnavi_13

line 5: Declaration syntax error line 59: function containing do are not expanded inline line 153: function containing while are not expanded inline line 218: declaration terminated incorrectly`

Member Avatar for indraagarwal
0
79
Member Avatar for complete

I am starting a new coding job with a new client. The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference. This, I think, is a common thing. So I am wondering where I …

Member Avatar for rproffitt
0
61
Member Avatar for vaishnavi_13

#include<iostream> using namespace std; class Sports { public: int tennis; int badminton; int cricket; int setA[20],setB[20],setC[20]; int ab[20],bc[20],ca[20],abc[20]; int n1,n2,n3,n4=0,total; void accept(); // method for accept the input void intersection(); //method for calculate intersection void display(); //method for display intersections }; void Sports :: accept() { cout<<"Enter the total number …

Member Avatar for xrjf
0
88
Member Avatar for monjan
Member Avatar for bandanasc

I am trying to edit a file that contains: Time Column 1 Column 2 Column 3. I need to print Column 2 after column 1. Time Column 1 Column 2

Member Avatar for Schol-R-LEA
0
81
Member Avatar for Hilal_4

eror : could not converd ' {"Struktur Data... list_matkul Matakuliah; create_list_matkul(Matakuliah); adr_matkul P; list_mhs mahasiswa; create_list_mhs(mahasiswa); adr_mhs Q; P = create_elm_matkul({.namaMk = "Struktur Data", .namaKelas = "IF-44-Gab1", .kuota = 3, .jumlah = 0, .jenisMk = "Reguler"}); insert_matkul(Matakuliah,P); P = create_elm_matkul({.namaMK = "Struktur Data", .namaKelas = "IF-44-Gab2", .kuota = 3, .jumlah …

Member Avatar for rproffitt
0
41
Member Avatar for federerforehand

I do not know where to even start :'( can someone please write the code so I can see the process and I can do other problems that are similar to this... For this programming project, you will create a program that will both design and implement a class that …

Member Avatar for Jerry_23
-2
4K
Member Avatar for existinglady

hello, can someone help me, when I put the codes from my book and edited them to use filestream, I encounter an error #include <iostream> #include <fstream> #include <string> using namespace std; struct nodeType { string info; nodeType *link; }; int main() { nodeType *head = NULL; nodeType *newNode; nodeType …

Member Avatar for Roy_264
0
6K
Member Avatar for Youssef Faisal
Member Avatar for rajesanthu

[B][COLOR="Red"]Simple C++ program for age calculation[/COLOR][/B] [COLOR="Green"][B]NB:Excuse me experts,,this is only for beginners.........[/B][/COLOR] Instructions//// 1.Copy the code 2.paste it in a text file 3.save the text file as agecalc.cpp and select file type all with in the text file. 4.paste this file inside your bin folder where the Turbo C …

Member Avatar for Youssef Faisal
-4
44K
Member Avatar for SusBro

Hello. I found this code on google and I didn't manage to find a way to get another output of 90 degree clockwise rotated array. Could you please help me? // DMA of 2D array in C++ #include<iostream> #include<iomanip> using namespace std; int main() { int x = 3, y …

Member Avatar for Schol-R-LEA
0
34
Member Avatar for Francisco_13

using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour public CharacterController characterController; public float speed = 5f; public float gravity = -9.81; public Transform groundCheck; public float sphereRadius = 0.3f; public LayerMask groundMask; bool isGrounded; Vector3 velocity; void Update() { isGrounded = Physics.CheckSphere(groundCheck.position,sphereRadius,groundMask); if (isGrounded && velocity.y < …

Member Avatar for rproffitt
0
43
Member Avatar for asfghjkl

Hi everyone, I just want to ask if how i am able to make an if else statement inside a switch case. i want to execute something wherein the user may be able to choose again if he/she would like to do another transaction. for example, the user choose Yes …

Member Avatar for kasmar45
0
273
Member Avatar for nextsmm

Is it necessary to have computer or laptop to test the code? Did you ever seen anyone who can be perfect or master in coding whit cell phone?

Member Avatar for DGPickett
3
234
Member Avatar for JMoran

I am struggling with this program trying to change it from structured C++ code to an object oriented code. if anyone could offer help that would be great. the code is: // C++ program to implement the program // that illustrates Online shopping #include <string> #include <iostream> #include <map> using …

Member Avatar for jwenting
0
163
Member Avatar for omar90

i want write a code in C without using OpenCV library to code a Sobel operator to calculate the magnitude and direction of the gradient of an image then use pseudo color to display them using intensity for magnitude and hue for direction display input and output images

Member Avatar for rproffitt
0
63
Member Avatar for Dead_1

Write a program that predicts your age in 25 years from now so that the program receives the year of your birth and then prints the expected life**With C++ **

Member Avatar for rproffitt
0
61
Member Avatar for fstofficer

The End.