49,761 Topics

Member Avatar for
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
128
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
127
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
683
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
180
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
76
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
59
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
79
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
79
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
40
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 Gonzalo_3

Hello. I want to start studying the Golang language but I can't find any IDE that I can configure well, can you tell me an IDE that is good for Go and how to configure it (explained for fools in Spanish), please? I have tried with Sublime, Visual Studio Code …

Member Avatar for rproffitt
0
59
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
266
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
Member Avatar for daviharp
Member Avatar for nette__55

I need help creating a sorted linked list from a text file. The text file has movies titles and their ranks. I need to put them in descending order base on their ranks. All in c++.

Member Avatar for Reverend Jim
0
49
Member Avatar for nette__55

8.9 The Dark Knight 9.2 The Shawshank Redemption 9.0 The Gadfather: Part II 9.1 The Godfather This is the text file. I have open and read in the file. Just Don't know how to put it in sorted linke list. Every thing I have does not work. Please help trying …

Member Avatar for Reverend Jim
0
31

The End.