48,986 Topics

Member Avatar for
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
74
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
58
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
43K
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
258
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
223
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
Member Avatar for eliasarximan

Can Someone help me to convert my Python Code to Java Code please? My Python Code : def import_file(file): with open(file,"r") as f: lines = f.readlines() sline = [] for line in lines: xline=line.split(" ") sline.append(xline) return sline def set_file(idf,q,sline): for i in sline: if idf in i: sline[sline.index(i)][1] = …

Member Avatar for Srinu@231
0
282
Member Avatar for kevinvholloman

Hello. There are two programs. One creates and transfers the file into memory, the other reads it. The problem is that reading happens every other time. That is, the data, then no. Where is the mistake? Where to look? ![с++.jpg](https://static.daniweb.com/attachments/4/da8ffa8aa779029ea918edd53ea959b5.jpg)

Member Avatar for rproffitt
0
50
Member Avatar for jamesfilipson
Member Avatar for adoleh

I have to create a program that asks a person to enter a 2 digit number (10-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! EXAMPLE: 27 twenty-seven [CODE]#include <iostream> using namespace std; int …

Member Avatar for emsmary
0
16K
Member Avatar for LDSFSD

Hi can you help me to fix the error in Invoice class .h - " dt Unknown override specifier" Date .h #include "Stock.h" #include "Invoice.h" #include <ostream> #include <iostream> class Date { int month, day, year; public: Date(); Date(int _month, int _day, int _year); Date& setMonth(int _month); Date& setDay(int _day); …

0
133
Member Avatar for usman9266

Binary search tree array implementation C++ The programmers can quickly implement a binary search tree because it has an extremely organized structure and has lesser complexity. Moreover, the users can perform the following operations using BST: Searching Insertion Deletion Traversal

-1
34
Member Avatar for Iskodaraog

Direction: create a program to computer for the final grade using scanner and JOptionpane. Given: Quiz- 20% Activity-60% Exam-20% Output Enter guiz grade: Enter activity grade: Enter exam grade: The final grade of: (Student name) si: (total of quiz, activity,and exam grade

Member Avatar for Kazalwadi
0
66
Member Avatar for Edin_2

Hello, i started to learn coding if you call it for c++ (windows forms). I created a button with a Fixed Text and a Button to Copy the text. What i need now is a "Add" button that adds alot of desired numbers and shows them in a second TextBox. …

Member Avatar for rproffitt
0
83
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; int main() { int a,b,c, ope; cout<<"enter a value" << endl; cin >> a; cout<<"enter b value" <<endl; cin >> b; cout<<"enter operation (+ - * / and %)"; cin>> ope; if (ope == +) { c=a+b; cout<< c; break; } if (ope == -) …

Member Avatar for Hamza_53
2
45K
Member Avatar for TomTom2525

A University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module (histogram). You are required to write a program in C++ that achieves this. The program consists of the following three tasks: Task1 The program should …

Member Avatar for rproffitt
0
58
Member Avatar for Vinc_1

#include <iostream> // input and output code #include<conio.h> // getch - passwd #include<cstdio> // fileopen fscanf fileclose #include<windows.h> // system cls and pause using namespace std; ///////////////////////////////////////////////////CLASS EMPLOYEE ///////////////////////////////////////////////////////// class admin{ private:// variables for admin details char name[30],id[5],position[20]; int age,Salary,experience; //quit functions void quit(void){ cout<<"\n\n\n Please ENTER To Go Back …

Member Avatar for rproffitt
0
45

The End.