Beginners - January 2017 (Page 15)

Printing identical scores using arrays in C++
 
Hello guys, This is a program that uses arrays to find the highest, lowest, and identical scores that are entered by the user. However, the code does not pri...
[13 replies] Last: Awesome explanation, thanks again for the feedback. (by Kourosh23)
by RobLR
C++ for dummies first building error URGENT
 
Write your question here. Hello and good day to you fellow programmers! I have embarked on learning c++ using the famous 'dummies' books, on my first exerc...
[2 replies] Last: ahhh!!! what a noob mistake...reading from the book , it looked like a... (by RobLR)
setw & setprecision understanding help
 
Hello there. Can anyone tell me how to count the setw and setprecision without using compiler. An explanation and way to know how to count it much appreciated. ...
[3 replies] Last: @Hand Andy thanks for the reply. :) i get it now. @TheIdeasMan maybe ... (by DesmondLee)
how to
 
well .. now I am play a game and i looking to make a program that can helps in health bar .. so first i should to picking on some data from the game then start ...
[no replies]
Using structure with functions
 
I am beginner, please check my code,errors come during compiling. #include <iostream> #include <conio.h> #include <string> #include <iomanip> using names...
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ (by mbozzi)
im stuck on homework i need some help
 
I'm stuck on my homework. I need to write a program that when you input a number of inches it gives you the miles, yards feet and inches.
[7 replies] Last: thank you all so much. after two days with struggling I managed to fig... (by closed account ypXoE3v7)
Using return in void function
 
Is it wrong to use return in a function? If you take the example below. I'm using return in the if statements and it works fine for me(using xcode) but my teach...
[9 replies] Last: Just to clarify, [code firstline=3] [ ]( const Person& lhs, const Per... (by mbozzi)
Global Class
 
So I'm into a delicated situation. I use SFML and GLEW. And I wanted to separate my main into more scripts in different files. And my big problem is I don't kno...
[3 replies] Last: I use SFML and GLEW. And I wanted to separate my main into more scrip... (by cire)
Vectors or Linked List?
 
Hi, I have just recently got back into C++ and learned that there are a number of newer ways of doing things. I have an idea which I had intended to use a...
[8 replies] Last: To measure the difference in pure insert performance, replace line 20 ... (by JLBorges)
by stav
question about GPU
 
hi so what does the frequency mean in a gpu? like for example i have a GeForce 920m which im assuming means that its running at 920 megahertz but is that the...
[2 replies] Last: The "m" in the name means that GPU is for a laptop. (by TheIdeasMan)
this makes no sense
 
I don't understand why this is not working I have been programming for quite some time now and something that SHOULD and normally DOES work is not working I mea...
[2 replies] Last: true that's the problem thanks,I can't believe how rusty I am after ta... (by adam2016)
member initialisation list won't work
 
I'm having an annoying problem and it's one that is just really eating at me because when I try to intialise a string variable through a member initialisation l...
[2 replies] Last: Thanks ne555 I totally forgot you had to include the variable in the ... (by adam2016)
Getline problem
 
I'm having problems with the getline it keeps telling me it doesn't match the argument list, Ive tried changing it to cin.getline and it puts the error under th...
[1 reply] : Animals .d is a variable of type MyEnum . MyStruct. c is a stri... (by Chervil)
by user42
c++ program that checks if sudoku is valid
 
I am writing a program that check the validity of a Sudoku entered. I got stuck on the two function row_ok and col_ok. they return false when they are suppose...
[13 replies] Last: thank you all for youre help.i will go over your'e tips andtry and und... (by user42)
overriding the role of shared_ptr
 
hello, i have this code class B; std::vector<std::shared_ptr<B>> b; b.emplace_back(std::make_shared<B>(B())); std::shared_ptr<B> ptr1 = b ; std::s...
[4 replies] Last: @JLBorges okay i read it thoroughly, but this one deletes it when the ... (by xenovia12)
The use of extern
 
Please tell me what's wrong with this period of code: // code that goes into file "my.h": extern int foo; // code that goes into file "source.cpp": #...
[4 replies] Last: dhayden and Golden Lizard, thank you very much. I've modified my code ... (by BlueSquirrelJQX)
don't know why its not working
 
Hkdk
[1 reply] : You have tried to define your decimalToOctal function inside the main ... (by dhayden)
Using Structure and Function in Program
 
i m beginner and i don't know about using structure and function, please help me to solution of this assignment XYZ University needs a system for student’s c...
[no replies]
Possible total scores for n score lists
 
The solution to this problem I thought up is probably very simple but I can't think of it. Basically I have n score lists. Each score list has i scores. I wa...
[4 replies] Last: Thanks everyone, JLBorges was the best because it took into account th... (by Code Apperentice)
Stack Implementation of Linked Lists
 
Hey guys, C++ newbie here, I've been trying to make my own stack class that utilizes a linked list. The expected result of my program was that once I mad...
[1 reply] : constructive comments ... also welcome - indent your code properly ... (by gunnerfunner)
January 2017 Pages: 1... 1314151617... 24
  Archived months: [dec2016] [feb2017]

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