Beginners - November 2018 (Page 22)

by cryptz
Trying to set user input into an array.
I'm wanting to make sure this is the proper way to do so. Here is a code fragment: int a, b, c, d, e; int balance = {a, b, c, d, e}; ...
Nov 3, 2018 at 5:40pm
[5 replies] Last: [quote=cryptz]Would you be willing to explain why my example isn't cor... (by Satan)
Do while loop!
So here is the code for finding average of student's marks and find average if the user enters -1 but I am not getting why we have to add 1 in total and then su...
Nov 3, 2018 at 5:13pm
[3 replies] Last: Please mark as solved (by user42)
help me
Write your question here. case 'B' : cout << "\nThis is class b section " <<endl; cout << "\nThis rential period consist 1 to 6 Days, 7 to 27 Days ...
Nov 3, 2018 at 5:01pm
[13 replies] Last: Hello khairil27, Sorry I meant to put this in the last message: Cl... (by Handy Andy)
by icaman
School Project
I need to create a program with c++ m to keep a list of available items in a sports goods store. For each item, the following information must be stored: Name, ...
Nov 3, 2018 at 3:48pm
[5 replies] Last: Hello icaman, OK. So post what you have done so far. We all need a pl... (by Handy Andy)
Nested For statement which prints astrix
Can someone explain how this code works please? The output is 15 rows and 30 columns of * but I don't understand how does it print 15 columns and 30 rows? I jus...
Nov 3, 2018 at 3:16pm
[6 replies] Last: Lets try with smaller amount: for (b=0; b < 4; b++) { cout << "... (by keskiverto)
-Solved- Thanks to JLBorges
This is an assignment to input student grades. However, apparently my professor want the program to recognize when the user presses "enter" for the name to c...
Nov 3, 2018 at 12:33pm
[3 replies] Last: > somehow my method of finding average and lowest score went wrong. Ho... (by JLBorges)
Adding a interger to every part of another interger
I am testing a encryption algorithm and i currently have the issue as followed; I need to enter a integer such as 123 and then a key such as 3 and what happe...
Nov 3, 2018 at 5:04am
[4 replies] Last: Recursion can be used here. #include <iostream> int f(int n, int o... (by tpb)
can you help me fix this
so i have a class assignment , and i have to create a class assignment to make a c++ program which makes the user write 3 number then the program will arrange t...
Nov 3, 2018 at 3:51am
[5 replies] Last: #include <iostream> int main() { int first, second, third ; ... (by JLBorges)
Need help with compiling program with three files.
So far I have three divided files. One header file, a cpp file and a main file. The problem is that when I run this program in one file it works out perfectly. ...
Nov 3, 2018 at 12:03am
[5 replies] Last: I see now, Thanks for the input guys! (by Awsom3Alan3)
by darego
overloaded iosteram operators
Hi guys, I am trying to make a basic program to help me understand overloaded operators a bit better. I want to be able to use the input and output stream oper...
Nov 2, 2018 at 9:21pm
[9 replies] Last: Could you explain your post a bit more please? I'm not quite sure how ... (by darego)
by kretze
book recommendation
hey guys and girls can you please recommended me some good book about data structures included vector linked list trees??? its good to be more program examples...
Nov 2, 2018 at 9:11pm
[1 reply] : Practices and Principles by Bjarne(creator of C++) also my first book... (by adam2016)
Separating characters from a string without using array. Is it possible?
Ok, so here are the questions I am faced with, First Question, Write a program that will ask user to enter a sentence. Count the number of each vowel in it ...
Nov 2, 2018 at 7:12pm
[12 replies] Last: OOps, I'd made a mistake at setting my compiler flags. You're right ma... (by nuderobmonkey)
How to show the mode using array
How do I incorporate finding the mode? I know for this there wouldn't be mode as the numbers are 10, 20, 30, 40, 50. But if I did have a duplicate of a number ...
Nov 2, 2018 at 6:36pm
[7 replies] Last: I'm completely confused by all of that No wonder, it's quite advance... (by Thomas1965)
by Tduck
Comparison of integers between void functions
This is course work, and pre-provided code which I am struggling to understand:; the following code has a number of functions, only one of which I counted have ...
Nov 2, 2018 at 6:02pm
[1 reply] : "return" is not the only way to return data from a function. In your c... (by tpb)
help with c++ programing
The program is supposed to take in two numbers from the user and display them separated by a comma, with the smallest one displayed first. This program does run...
Nov 2, 2018 at 5:28pm
[5 replies] Last: if you have the x/y coordinates of the 3 corners the height is pretty ... (by jonnin)
Coding for costing for renting a car
Write your questWrite a program in a script file that calculates the cost of renting a car according into the following price schedule: Types of car Rental P...
Nov 2, 2018 at 5:19pm
[4 replies] Last: alright mate. Thanks (by khairil27)
Convert string matrix
Hi guys, i need some help with something. I have a matrix of strings, for example : 0000000000100010000...
Nov 2, 2018 at 4:42pm
[4 replies] Last: c != 0 is an expression that evaluates to 1 (true) if c is not '0' ... (by tpb)
type name not allowed error
I am trying to write a program that reads a text file and returns the most frequent and least frequent letter. but for some reason i am getting a type name not ...
Nov 2, 2018 at 4:00pm
[2 replies] Last: thank you so much that worked. (by freaknightmare88)
Comparing each element in two different arrays
I am trying to work on this problem where I have to compare two arrays, and print out 'equal' or 'not equal' for each element in both arrays that is/are equal o...
Nov 2, 2018 at 3:47pm
[6 replies] Last: Awesome. Thanks so much for your help! (by tuhmaytow)
Recursion calculation doesn't work.
My current output doesn't show the calculations and it counts f(n) down from what the user inputs to f(0). How do I get it to count up starting with the base ca...
Nov 2, 2018 at 1:40pm
[3 replies] Last: Thanks guys! It works now. (by quincyq)
November 2018 Pages: 1... 2021222324
  Archived months: [oct2018] [dec2018]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.