49,756 Topics

Member Avatar for
Member Avatar for Lev_3

Hello people! :) I'm quite new in the programming world. I'm really interested in programming from the time I found that there's coming a game called Hytale, and **I would love to be able to make mods for it**. So basically I have a book that should introduce me to …

Member Avatar for hussainmujtaba
0
920
Member Avatar for Dipesh_6

Hi, I made this game in c++ but i have some issues when i ask player if they want to play again. i want the game to reset when they press y but keep their bankbalance from previous game. here is the pastebin link: https://pastebin.com/pmhVKwxF sorry if the code is …

0
121
Member Avatar for esyah

the error is at the curly brace under void main() line 28 can some one help me...pleasee #include <iomanip> #include <curses.h> #include <stdlib.h> #include <fstream> #include <iomanip> #include <cmath> using namespace std; //nonvoid function int main() { } float Final_pt(float GP_work,float GP_exam,int Eval) { float Grade_n, Grade; if(Eval==1) Grade_n = …

Member Avatar for Reverend Jim
0
108
Member Avatar for TIffany_2

#include<iostream> #include<conio.h> //using namespace std; int main() { char name[30], pizza1[]="Chicken Fazita" ,pizza2[]="Chicken Bar BQ" ,pizza3[]="Peri Peri" ,pizza4[]="Creamy Max", roll1[]="Chicken Chatni Roll", roll2[]="Chicken Mayo Roll", roll3[]="Veg Roll With Fries",bur1[]="Zinger Burger",bur2[]="Chicken Burger",bur3[]="Beef Burger"; char sand1[]="Club Sandwich", sand2[]="Chicken Crispy Sandwich", sand3[]="Extream Veg Sandwich"; char bir1[]="Chicken Biryani", bir2[]="Prawn Biryani", bir3[]="Beef Biryani",gotostart ; int …

Member Avatar for tinstaafl
0
464
Member Avatar for Tim_22

I have an issue within my program where it sas the struct I have created is not initialized. Any suggestions? The lab I am working on is Write a program to help a local restaurant automate its breakfast billing system. The program should do the following: Show the customer the …

Member Avatar for tinstaafl
0
596
Member Avatar for Jiwe

Hi everyone! I created a Sudoku game and want to share it with all of you so you can tell me what'y think about it :). I've got 1 year of C++ experience. Game is based on coordinates to put the numbers. --------------------------- List of Commands: --------------------------- When asked to …

Member Avatar for Dwi_3
0
3K
Member Avatar for TransKim

Help me find the solution to this task in C programming Write a function: int solution(int A[], int N); that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, …

Member Avatar for JamesCherrill
-1
138
Member Avatar for Saba_6

Hi, I am getting erros in coverting the following C++ code to C language. Also what is the alternative of #include<bits/stdc++.h> library in C language? // C++ Implementation to find the // XOR of the two Binary Strings #include<bits/stdc++.h> using namespace std; // Function to find the // XOR of …

0
109
Member Avatar for medsibouh

hello guys I'm trying to make a code that return the name of the flight that has the most total number of passengers from a file : Alitalia Rome 180 Alitalia Pisa 82 Germanwings Munich 96 Germanwings Frankfurt 163 NorwegianAir Bergen 202 Wizzair London 184 Wizzair Frankfurt 83 Wizzair Lisbon …

Member Avatar for Reverend Jim
0
858
Member Avatar for adsanimenerd

Sorry if there is bad formatting, but this is my first post. I am trying to use a copy constructor to copy the list in LinkedList and then show that they are the same in the copy using the display() function. My problem is that when I try to populate …

Member Avatar for tinstaafl
0
162
Member Avatar for tinstaafl

There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter …

Member Avatar for holisticgroup19
3
4K
Member Avatar for Samuel_33

Hello guys, I am currently working on an insurance management system and i need help on how to use files and on how to create an admin side since I am new to this. Thank you

Member Avatar for Reverend Jim
0
204
Member Avatar for sanidhyaraj18

i am unable to do c++ turtle programmingin in my netbeans ide how can i configure it to do so.please help or tell any other methods for this

Member Avatar for JamesCherrill
0
125
Member Avatar for Hu99.Kappa
Member Avatar for Henry Williams

My name is Henry, and I started programming about 10 years ago. I always loved playing video games, even from a young age. That passion eventually turned into something much more. Learning programming languages is very popular at the moment. A lot of people leave their current workplaces to learn …

Member Avatar for JamesCherrill
0
301
Member Avatar for Abardean

Hi all I need assistance with the below code snippit. It calculates how many of salaries entered exceeds R100 000 or how many is below. With the below entries the lower count totals to 4 instead of 5. What am I doing wrong? Still new to this so please excude …

Member Avatar for Reverend Jim
0
206
Member Avatar for codiene bryant

Hello, I am writing this code to allow for a menu based banking system application. Part of the assignment was to check for input validation of the file I would like to open. In this case the user inputs their "customer id" which is stored as "custid" and then this …

Member Avatar for tinstaafl
0
261
Member Avatar for Abardean

Hi all I need assistance with the below code snippit. It calculates how many of salaries entered exceeds R100 000 or how many is below. With the below entries the lower count totals to 4 instead of 3. What am I doing wrong? Still new to this so please excude …

Member Avatar for Reverend Jim
0
204
Member Avatar for Shafayet92

Print a full line of C++ string array, if use gives the 1st name. Example: string X[10]={"Muhamad Husin, A123456", "Nor Asma, A155743", "Raja Kumar, A18723", "Muhamad Ali, A123908", "Ali Shah, A145234", "Siti Sarah, A120945", "Siti kahadijah, A154237", "Syed Azman, A276456", "Chong Wei, A156278"}; User will input "Nor"; Print the full …

0
119
Member Avatar for robotnixon

I have a funny feeling this is a stupid question so bear with me. I'm passing a string array to a function to search for elements in it. I have what is written below, and all it does is print "Not Found" five times. I'd also like it to print …

Member Avatar for Shafayet92
0
5K
Member Avatar for Solomon_1

Apostle “Kojo Safo” popularly known as “KANTANKA (KTA)” is one of the renowned entrepreneurs in Ghana. He manufactures cars, agriculture light and heavy duty machinery just to mention a few. His products have attracted many investors both local and foreign. However, sales of his manufactured cars in particular, have seen …

Member Avatar for Solomon_1
-1
287
Member Avatar for codiene bryant

I am doing this program for a cs class. I am trying to create menu based system that will allow the user to input the number that corresponds to the option they want to choose. Then based on that option they will input their customer id (this is a banking …

Member Avatar for dexblack_1
0
383
Member Avatar for Gtr_1

1. Write a program with one user-defined function to convert weight from pound to kg. 2. By using three user-defined functions, you are asked to write a program to calculate the area of a circle. Function input – ask user to input the radius Function calculate_area – calculate the area …

Member Avatar for DGPickett
0
189
Member Avatar for Xozz

I'm busy writing Yahtzee. Now, I want to fill a const char[] with the field names: 1's, 2's, 3's, ..., "Full House" "Small Straight" etc. But I get this errors #include <iostream> #include <stdlib.h> using namespace std; /* 1 2 3 4 5 6 3 of a kind carre full …

Member Avatar for DGPickett
0
255
Member Avatar for msaadmakhdoom

Operator Overloading for Polynomial Class - Your goal is to overload the operators for a generic Polynomial class. A polynomial will be represented via its coefficients. Here is a degree of third degree polynomial 4x3+ 3x + 2; here will be four coefficients and the coefficient corresponding to 2nd power …

Member Avatar for Reverend Jim
0
110
Member Avatar for Xozz

Hello. I'm stuck with my Yahtzee project. The first five lines are filled with a brief explanation of the case. Please read them /* I'm writing Yahtzee in C++. So far so good, but I'm stuck now on the recognition of staights and full houses. It's about the lines 131 …

Member Avatar for Reverend Jim
0
267
Member Avatar for Xozz

I just wrote a simple C++ program. But now I want to share it with a friend and GMail doesn't allow me to use it and putting it on a web domain doens't work either. How do you share a simple program (compiled)?

Member Avatar for Yrth
0
306
Member Avatar for Dilshan_2

#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { srand(time(NULL)); int tries = 0; int iNum; int UpperLim = 100; int LowerLim = 10; int iCompNum; cout << "Enter a number: "; cin >> iNum; do { iCompNum = rand() % (UpperLim - LowerLim) + LowerLim; cout …

Member Avatar for Reverend Jim
0
164
Member Avatar for Xozz

While compiling my Yahtzee project I get these errors: ||=== Build: Debug in Yahtzee (compiler: GNU GCC Compiler) ===| ld.exe||cannot open output file bin\Debug\Yahtzee.exe Permission denied| ||error: ld returned 1 exit status| ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===| I use CodeBlocks. It's not nice …

Member Avatar for Reverend Jim
0
114
Member Avatar for Youtube_1

A school wants to be able to check how students have performed in any course. To do this they will use sampling. They will pick the marks of any 5 students and then get the average grade. Each course must have a mid-semester exam mark, a final exam mark, and …

Member Avatar for Reverend Jim
0
139

The End.