Beginners - May 2020 (Page 14)

Array now showing
 
Hello all, I am doing a code to run to check for duplicates generated randomly. my Issue is that this code doesn't print the elements if I ask the user to ent...
[9 replies] Last: Alternative version. #include <iostream> #include <random> #include... (by dutch)
by medosz
function
 
This is a parking charge calculator program. I used function to calculate the charge for each car. I could not find out how I could get the total charge because...
[4 replies] Last: Hello medosz, Playing around with the program I came up with this to ... (by Handy Andy)
Matrix Function
 
Hi , i wrote this code it suppose to multiply two 3X3 matrix and it works but now i want to make it with a function and im really noob can anyone help me plea...
[1 reply] : Hello propurple, Some questions that will help: What IDE/compiler ar... (by Handy Andy)
Struggling Bad!
 
I have wrote the code for this problem in 2 different ways but they are huge programs with too many variables I feel it could be simplified. If anyone has time ...
[5 replies] Last: > closed account (LE8p216C) Another free food and fcuk off driveby get... (by salem c)
If statement problem
 
I keep getting errors for <= which I don't understand and also error for all the if statements expecting an expression. Will post my code first not done but its...
[11 replies] Last: Here's also a start on how to do this with functions. You stiil need ... (by againtry)
Overloading operator problem
 
I am having an error in my compiler whenever I try to run my overloading function from my namespace inside my class, here's the function along with the error. I...
[3 replies] Last: You're right dutch, it was linker errors with the copying functions. F... (by Depressed)
by BJK
Please Help My Home Work
 
cccc
[4 replies] Last: > I'm afraid I can't. I tried but failed. I have to do this homework b... (by salem c)
NEED HELP ASAP!
 
Write a program that lets a Chips and Salsa company keep track of sales for their 5 different types of salsa (Mild, Medium, Sweet, Hot, Zesty). Use a loop to as...
[6 replies] Last: #include <iostream> using namespace std; void findLarge (int salsa , ... (by closed account LE8p216C)
Error: Too many arguements to function
 
So What I am trying to do is to make a list with choices and have you enter an amount and "purchase" them, then giving you change or saying it is lower than cos...
[1 reply] : double sellItem(); //this has no arguments unless you have the f... (by markyrocks)
Decrypting a Message
 
Hello. I am currently learning about vectors and arrays. I am working on an assignment where I need to decrypt secret messages using cipher. I am struggling in ...
[5 replies] Last: Thank you, I get it now. Also I was given starter code to jumpstart th... (by fruhtie)
by annw3y
Vector Bubble Sort c++
 
I have class Date, functions bubbleSort, isAfter and printVector. So my task is: Use the function bubbleSort to sort vector type objects Date(using function isA...
[1 reply] : Given two dates a and b , is_after(a, b) should be true if and onl... (by mbozzi)
inheritace, virtual function
 
Hello everybody, i am beginner and im studing the inheritance, virtual fuction. and Im practising a console app about calculate Figure (Phere) when Run this ...
[3 replies] Last: You can always manually type in the words and before and after ... (by TheToaster)
by nmbs
ARRAYS
 
Write your question here. Can you pass an array element or the whole array to a function in C++? If so, give an example for each one. Are arrays pas...
[6 replies] Last: regardless when you pass something to a function its still always a ... (by TheToaster)
by bld
Is a text-editor and a compiler all I need?
 
Hello, I'm very new to C++ and I would like to know if I have to download C++, just like I have to do it with Python. Or is a text-editor and a compiler all I n...
[11 replies] Last: I'm not sure I agree with the recommendations given in this thread. I... (by Duthomhas)
The last cout statement does not output
 
I was using my own smaller test code, and the final cout statement "The most frequent word is: " printed out the correct answer. However, when using my suppli...
[6 replies] Last: Hello KittyIchigo1, On lines 153 and 157 remove the comments and chan... (by Handy Andy)
by mata
getline and extract char or integers
 
My problem is that I'm using getline(cin, line) but then I dont know how to extract the numbers in the commands that COULD have number for specifying the line i...
[1 reply] : std::regex would be a good fit here: http://www.cplusplus.com/referenc... (by TheToaster)
by DJL
Reading and counting from a file
 
Hello, I created a function last week that marks true if a number is prime. Now I am trying to read from a .txt file and count the prime numbers within it. ...
[3 replies] Last: I feel like i just forgetting something super simple here. This functi... (by DJL)
by sturk
C++ palindrome
 
I have implemented a code to find the largest palindrome made from the product of two 3-digit numbers. However, I'm not able to get it right somehow. My answer ...
[1 reply] : > sum =i* j; Calling a product a sum is confusing. > while(k<6) Why i... (by salem c)
Use pointer of pointers or just a pointer? (1,2)
 
Hi guys! I have a class Dinosaur and it has its own fields. I have another class cages. In the cage lives the dinosaur. So in the cage class I created Dinosaur...
[24 replies] Last: I mean, obviously you could. You could make each Dinosaur objects sto... (by MikeyBoy)
by Mif
Please help with window class..
 
What's the difference between these .... WNDCLASSW WNDSCLASSEX I-m creating a new program C++ Code::Blocks ver. 17.12 WIN32 application So.. I have create...
[3 replies] Last: Yes indeed I am using the WNDCLASSW .. so i should continue coding wit... (by Mif)
May 2020 Pages: 1... 121314151617
  Archived months: [apr2020] [jun2020]

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