Beginners - February 2016 (Page 34)

Limit number entered and repeating question
 
Hi guys, i need some help. (part 1) , i wanted to do a part where if you enter a number bigger than 1000 or smaller den 0 than it will show a output of Invalid ...
[4 replies] Last: First, please use code tags and format your code, so that it's actuall... (by TwilightSpectre)
Corupt compiler problem ?
 
Hi, I have some very basic problem. I can't even get this to work , it's complaining about not being able to resolve the identifier (string, cout, endl, cin) ...
[9 replies] Last: If it's just your IDE that shows these warnings/errors but the code co... (by Peter87)
PPP using C++ - Error with first program
 
Hello, , I'm trying to learn how to program by reading: "Programming -- Principles and Practice Using C++ (Second Edition)", by Bjarne Stroustrup. Yet I'm stuc...
[4 replies] Last: [quote=admkrk]The path you set to std_lib_facilities.h is not right. ... (by Peter87)
Randomly generated square
 
I'm really confused about how to do this problem, mathematically, and I would appreciate some help. The instructions are as follows: "Similar to halfFilledR...
[1 reply] : Once you have identified the cells to shade, for each cell, you need t... (by kbw)
Chutes & Ladders - Void & Int Problem
 
Hi! So I am trying to make a chutes & ladders game that has two players and the positions go up to 100. I am having trouble with the whoWon void. On the section...
[3 replies] Last: On line 8, you state that RollDiceAndMove is a function that returns n... (by firedraco)
Making a frame with asterisks
 
I'm trying to modify a code I already have for a framed rectangle to make the user able to select how thick they want the border. This is an example of the desi...
[4 replies] Last: Thank you! (by stealthboy)
SFML woes
 
Trying to get SFML to work using the Code::Blocks IDE. I thought I followed the instructions at http://www.sfml-dev.org/tutorials/2.3/start-cb.php However wh...
[19 replies] Last: raraku9333, Thanks. I downloaded the incorrect file, cmake-3.5.0-rc1.z... (by CodeWriter)
Stroustrup's PPAP: Chapter 4 Exercise 3
 
Hi, I am learning C++ from Stroustrup's Programming Principles and Practice Using C++. I am on exercise 3 of chapter 3. Although I have solved the problem, ...
[2 replies] Last: Understand! Thank you, Peter Olsson! (by verdastelo)
by Wheezy
Help with calculating
 
Ok so I am trying to write a program that calculate but currently can not write in visual studio dud to it updating at the moment. I am taking a C++ class and t...
[4 replies] Last: Sorry, thought it would be easier. Still need help with this if anyone... (by Wheezy)
Point of #include <new>? Also, what is using std::cout?
 
So, one of the students I'm grading put the following statements at the top of his code. I'm honestly a little confused. #include <iostream> #include <cass...
[4 replies] Last: if it is a header, It was a header. But thanks for everyone's comme... (by keanedawg)
Help with excluding numbers
 
Hello. Can someone please help me with my code? So I have to write a code that does factorials but excludes even numbers from the facrorial. Like 3! would be 4 ...
[2 replies] Last: Oh okay. Thank you very much! (by Supershock01)
Program should choose randomly...
 
I'm brand new to programming. My program runs but it's not what my assignment is asking me to do. It says that the program should choose whether the problem...
[1 reply] : You haven't written any piece of code that determines whether or not i... (by TarikNeaj)
Rule of 5 help
 
Hi I'm having trouble understanding how to implement the rule of 5 being constructor, copy constructor, destructor, move constructor, copy assignment, and move ...
[2 replies] Last: Line 78: Why are you using a vector of Card * here? This is going to... (by AbstractionAnon)
cha * to char conversion
 
I have an char array like bellow; char Qbite = {'0','0','3','3','R','B','I','T','E','S',0x35,0x31,0x02,0x71,0xa7,0x31) }; and I read a file line by line to ...
[1 reply] : What's wrong with? Qbite = line ; (by AbstractionAnon)
Help calling a void function.
 
Just need a little help for this one. I'm beginning to learn how to use functions, and I need for this one to output a straight line based on how long the user ...
[5 replies] Last: Oh, that last one worked. It seems to be working fine now. Thanks guys (by stealthboy)
by kbs96
Inaccurate Results
 
Hi! Im working on a homework assignment: Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service charges on the total ...
[2 replies] Last: Ok, I see what the problem is. Thank you! (by kbs96)
Help to complete this birthday software?
 
I am creating a software in which if user gives his birthday like 12 March 2002 and this software will give day of his birth like Monday. But I am stuck at a pr...
[7 replies] Last: Is there any short mehod available than above one to solve this proble... (by ZahoorKhan)
C++ Class Menu Driven Program
 
Hi, I get my code to run but I am trying to get the cost and the total cost and it's not working. Please help me with the cost and total cost. //main.cp...
[5 replies] Last: Please edit your post and place the cod inside code tags. (by jlb)
Writing an enum in a struct to a struct array
 
So I have a project due tomorrow (yes, this is homework, but only a clarification/technical question that I can't find on Google) and, as the title says, I'm tr...
[8 replies] Last: AbstractionAnon is right. Somehow I failed to notice that they are cha... (by Thomas1965)
Simple question about if-else statement.
 
Hi! Is there any difference between these two codes? I mean, which one is more correct considering good programming practice or something else? int anyFunc...
[3 replies] Last: If you want to return the smaller of x and y I think you should pass.... (by robgeek)
February 2016 Pages: 1... 3233343536... 46
  Archived months: [jan2016] [mar2016]

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