Beginners - November 2016 (Page 38)

Not outputting full thing
 
So for the longest time i had to experiment around and find out how to just get the char thing to work and i find no where how to get a full word to display hav...
[2 replies] Last: Or even better: #include <string> string name; (by gunnerfunner)
Array inside a File
 
Hi there! I am trying to write a code that asks which division the user wants and then they are asked to enter the quarter number (1-4) and each quarter's sa...
[1 reply] : You have four divisions and each division has four quarters, so it sho... (by gunnerfunner)
Code Error Help :(
 
NEED HELP! I am working on my code and line largest(num1,num2) are giving me an error. They say they are not declared in the scope. Anyone know why? Thanks i...
[8 replies] Last: Functions should strive to only do one thing and do it well. So larges... (by BHX)
by egio
Unsure how to pass a value to a function with two reference paramaters!
 
EDIT: How would I pass timeTotal hours_minutes(int timeInMinutes, int &h, int &m)? Hello, I have an assignment with the following instructions: "Write ...
[4 replies] Last: Great explanation! I finally understand! Thank you so much for all yo... (by egio)
Pig Latin Help
 
I am trying to input a string and have the pig latin version print out. I am not getting any errors but the code is not working right. #include <iostream> ...
[1 reply] : #include <iostream> #include <string> #include <cctype> #include <cti... (by SakurasouBusters)
Binary file
 
Declare a structure Animals that has  breed type, and price as its members.   Declare a variable of the Animals and assign appropriate values to the variable...
[1 reply] : Here is my solution, unless the assignment states more. struct Animal... (by SakurasouBusters)
by NICE8x
Call a Function Also in the Class
 
So apparently I need to call the checkRange function for each set function. Which of the following is correct? Or is neither correct? How do I call a functio...
[1 reply] : Either will work. The Point:: in the second snippet is generally cons... (by AbstractionAnon)
by danciu
associative containers
 
what mean this statement: operator int() const {return a;} How it works in code below: #include <iostream> #include <set> #include <vector> using namespace...
[2 replies] Last: Thank You keskiverto ! (by danciu)
problem with bubble sort
 
I'm trying to get my bubble sort to work on this array, but for some reason it keeps crashing and I have no clue what the problem might be. #include<iostr...
[3 replies] Last: oh man thanks guys I just started learning about arrays and this was d... (by aunger3)
Flowchart Problem.
 
Hi, I started studying computer programming. But I am really bad at drawing flowchart. I have 2 questions that I could not. I need your help. 1. question Draw...
[2 replies] Last: This is not C++ specific, but can be used in C++ so here is a little h... (by RobiBue)
by NICE8x
Did I Write the Functions Correctly?
 
We are given the header file with the RMEs and we have to write the functions for the class in the cpp file. I feel like I should be declaring x and y somewhere...
[3 replies] Last: We are given the header file with the RMEs What's an RME (Rolling M... (by AbstractionAnon)
by Nakruf
while loop with a bool and getline(cin, x).
 
I wanted to make a program that I could use as a console. I have created a while loop as you can see below (code1). i know i can fix this by putting getline aft...
[2 replies] Last: You might want to have a look at: http://stackoverflow.com/questions/1... (by cire)
Amusement Park tickets Help
 
I'm not sure really where to start or how to do this code and it is due very soon. If anyone could help me that would be great even an example that can point me...
[6 replies] Last: Yes but say we have a million people visiting here and we will use th... (by cire)
Dynamic structures. С++
 
Guys i have a problem here with the task: Write a program that creates a dynamic structure and perform their processing. To develop the following functions...
[3 replies] Last: Yeah, sometimes these things happen. Don't worry too much about it. Go... (by gunnerfunner)
How to clear cin inputs
 
I am wanting to clear all previous cin inputs after Menu() and Names() I have tried things such as cin.clear() and fflush(stdin) without anything happening. he...
[8 replies] Last: I have managed to get what I initially wanted working somewhat, but no... (by MackieJ)
by jeg19
Tic Tac Toe game help
 
Write a two player tic-tac-toe program that asks users to input the row and column for each move they want to make and prints the board after each move. Initial...
[1 reply] : not to sound rude, but you should start by learning about arrays. we c... (by Shifty189)
a<b<c
 
Hey guys ! I need a program that asks for 3 numbers, if the first one is smaller then the second and the second is smaller then the third then the program writ...
[3 replies] Last: Thanks guys, it worked. (by ofiryak1994)
Project Euler
 
Hello! I was working on the first project Euler problem which is: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 an...
[10 replies] Last: I don't think @Skoliro realised what he/she had sparked off! I'll sti... (by lastchance)
c style
 
char a= 'a'; cout« a «endl «&a //why cout <<&b attempts to print a NTBS ? const char * mtn = "hello"; //why must use a const to create hello! ...
[5 replies] Last: Thanks to both of you (by NavidTak)
Letter by letter entrance text
 
Hey guys, i want my text to appear in the program letter by letter and not just appear, what is the code for that? thanks
[2 replies] Last: Hey guys, i want my text to appear in the program letter by letter an... (by SakurasouBusters)
November 2016 Pages: 1... 3637383940... 44
  Archived months: [oct2016] [dec2016]

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