49,761 Topics
| |
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? | |
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 … | |
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. | |
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 ... … | |
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, … | |
| |
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 … | |
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 … | |
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` | |
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 … | |
#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 … | |
What is the best site to learn hacking or book? | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi everyone, I'm Youssef Faisal I am beging in c++ | |
[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 … | |
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 … | |
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 < … | |
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 … | |
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? | |
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 … | |
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 | |
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++ ** | |
I tried to use a void and no mater works. | |
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++. | |
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 … |
The End.