Beginners - November 2018 (Page 8)

by ashwyn
Help debugging pointer problems
 
Hello, I am making the game Yahtzee as a school assignment. Below is largely outline code, and bits an pieces that I'm working on. My big problem is that I...
[2 replies] Last: Thank you for your help. I think that fundamentally the problem is th... (by ashwyn)
change number to operator
 
I'm having hard time trying to change the line in 59. op will say 1,2,3,4. I want it to say +, -, *, /. I tried to add new function, int opType(int x). Create n...
[3 replies] Last: Thank for all the help, I cant use char and , since its not part of s... (by soulworld05)
Exeption unhandled
 
Hi guys.I have problem my code wont debug . V This is Vector.cpp Vector Vector::Add(const Vector &v1) { int i; Vector v; if (v1.dim == this->dim)...
[2 replies] Last: Thank you for the answer. (by Zivojin)
What is umlaut in turbo C?
 
Hi again guys! I am looking for the info about these the umlaut A, exponent 3 and that upside down question mark. Do you have any idea about these? When i open ...
[5 replies] Last: jonnin you mean like launching a web browser for output? That's actual... (by Satan)
How to link libraries on macOS?
 
...
[1 reply] : I'e solved the issue by adding -rpath argument when compiling: run:... (by wengwengweng)
Auto clasifier
 
Hi there! I hope someone can help me with a little explanation for a clasifier. The 'auto' specifier, how does it work and when would it be useful in terms ...
[5 replies] Last: its a tool :) sometimes it makes code more readable and is handy, and ... (by jonnin)
Pair of numbers
 
Hello I have homework to do. i have to write a cpp code I have to cin N and it has to cout every possible pair of numbers from 1 to N. for ex : we input 3 ....
[4 replies] Last: Thanks a lot buddy . U helped me a lot :) (by parzival69)
Using Rand()
 
Hey, I am working on a project for class where I need to create a very basic game. The short version is I have two runners, Runner One moves forward at a ran...
[5 replies] Last: > I am not sure what you mean why nested though this is what you have ... (by ne555)
by quete5
Why is this undefined?
 
Here is the instructions from a book of mine: Write a program that calculates the average number of days a company’s employees are absent. The program shoul...
[5 replies] Last: Hello quete5, Line 26 like ne555 said you have the variable name "num... (by Handy Andy)
by quete5
order of code not letting cout show?
 
I'm writing a program that shows the average leaves taken by an employee. I'm trying to figure out what the problem is with the order. I've been told that there...
[4 replies] Last: Isn't this a duplicate of: http://www.cplusplus.com/forum/beginner/24... (by MikeyBoy)
random letters array
 
Each letter in the letter matrix will only be used once. For example J x U f B u F y D z S g N n Y b H e X d Q P A t V v T l E w W i G c C r M h R j Z m...
[3 replies] Last: how do we write the matrix again in alphabetical order. If you were ... (by lastchance)
by mz1234
help needed
 
I cannot figure out what is wrong with my code. Can someone help me please #include <string> #include <vector> #include <iostream> using namespace std; ...
[2 replies] Last: 1) Please use code tags when posting code, to make it readable: http... (by MikeyBoy)
Need help with this vector and struct
 
Now the issue I keep receiving is: ‘class std::vector<item>’ has no member named ‘item’ if (name = vendingMachine.item) #include <iostream> #in...
[12 replies] Last: I need help with getting the contents of the vendingMachine vector wh... (by kbw)
Detect country's name via its area code
 
Q. Write a program which asks the user to enter a bunch of numbers (Mobile numbers) and each number should be listed under specific categories (Country names) a...
[4 replies] Last: #include <iostream> int first_three_digits_of( unsigned long long nu... (by JLBorges)
array with random function
 
Hey, guys, I got some problems with array function with random number on my code, please have some suggest. below is my code. void smallarraymessage() ...
[1 reply] : What are this problems? On thing: srand(...) shall be before any call... (by coder777)
Help with Delay
 
Hello I need help with my delayed program. I want to add delay of 3 seconds and its not working. I am using DEV C++ compiler Look at this code and please te...
[6 replies] Last: K thanks, :D (by OshriMakk)
by yat89
error C2109: subscript requires array or pointer type
 
Hi everyone. I am new to C++ programming. I need to calculate the fitness for each of startNode and store it into new array. I had try to do it but error appea...
[2 replies] Last: Finally solved for calculating the fitness. Thanks for the help. (by yat89)
Array + dividing sum of arrays
 
Hi guys, I need help with a program I have been scratching my head over in which I can't seem to realize the problem. I have a program where a user enters 10 sc...
[3 replies] Last: Thank you for the reply @JLBorges. But boy did my professor teach C++ ... (by devcppuser)
Please help! I need help figuring out:(
 
Project 2 is a continuation of Project 1. Convert Project 1 into a menu-controlled program. Add validation for the number of minutes so numbers less than 0 are ...
[2 replies] Last: Hello blackwaterdad, PLEASE ALWAYS USE CODE TAGS (the <> formatting... (by Handy Andy)
Array / Pointers query
 
Hi, I'm trying to understand an aspect of the code below, and can't figure it out. I've added a couple of extra cout's to the code to try and understand it, but...
[4 replies] Last: Oooh. I see. Yeah, I get what you mean now. Still, I don't think it wi... (by Cheddar99)
November 2018 Pages: 1... 678910... 24
  Archived months: [oct2018] [dec2018]

This is an archived page. To post a new message, go to the current page.