Beginners - October 2018 (Page 11)

I'm completely new to the world of programming Please Help!!
 
Hello all!! I have to write a program for my class that not only recognizes the input of the user, but also counts the white space. The assignment is: I'm sup...
[4 replies] Last: Thank you all for your help. (by Lightfox)
one problem of minimizing the digit's sum
 
You are given positive integers N and D. You may perform operations of the following two types: add D to N, i.e. change N to N+D change N to digitsum(N) Here, ...
[10 replies] Last: @cEEaser try out these test cases(dry run as you are getting WA on som... (by lazybot)
Should I learn C before C++?
 
Hello. Recently I came to the conclusion that in any case, I should study C/C++ for some tasks. The key topic, why I continued to study now, is interest in pro...
[1 reply] : See 'Should I learn C before I learn C++?' https://isocpp.org/wiki/faq... (by JLBorges)
Segmented sieve
 
My segmented sieve is not outputting as expected. I am not able to figure out what is the issue. #include<stdio.h> int main() { int t,m,n; s...
[2 replies] Last: Here i changed my code a bit. But still issue with output. For range... (by closed account 1vf9z8AR)
Spitting random output
 
I am having an issue with a program I am trying to write, which will take the product of numbers in an array. I'm getting random numbers from the array appended...
[3 replies] Last: > I'm getting random numbers from the array appended to my output, an... (by JLBorges)
Deciding Prime number
 
Hi, im trying to write a program to decide this number is prime or not, and keep continue till user enter 0.also I need to exclude1 and 2 from the program. I ...
[6 replies] Last: If you meant: Run the program until the user inputs 0, Enclose everyt... (by Satan)
by ericM
need help with boost::units
 
Hello, I need some help with boost::units (here: https://github.com/boostorg/units). I have been able to use the library for basic tasks as compute sin(theta)...
[1 reply] : Hi, You links 404'd for me Did you look at the complex.cpp example h... (by TheIdeasMan)
by bkatic
"___ was not declared in this scope" errors
 
I am receiving compiler errors as follows and do not know how to fix this. I know it's the same type of error, I just don't exactly know how to fix this error. ...
[4 replies] Last: So you're supposed to display "Payment Number" count ": $" payment f... (by Satan)
Library error
 
My printInfo function is not printing out the information. #include <iostream> using namespace std; struct book{ string title; string author; int ...
[1 reply] : Hi, Please always use code tags http://www.cplusplus.com/articles/z13... (by TheIdeasMan)
Need help trying to only accept integers
 
So I coded this trying to only allow integers to be inputted. If characters are inputted it still works. Really confused on how to decline the characters and on...
[6 replies] Last: @Theideasman What do you mean?? I was trying to get you think a bit... (by TheIdeasMan)
Need help with random numbers in arrays
 
I have to make a 2D array that is 10*10 and need to store 50 "x"s in random spots. As of now I have a 2D array that fills in 100 random numbers but how would I ...
[6 replies] Last: It's more like this: #include <iostream> #include <algorithm> #incl... (by tpb)
Cleaning up and simplifying my code.
 
Hi. This is definitely homework and I feel like I've got most of it down. The code works, but I feel like there's an easier way to do the last bit. I'm not supp...
[2 replies] Last: Thank you, this was incredibly helpful. I knew I'd learned the concept... (by denofthieves)
Erasing a string
 
I have a function set to erase certain characters from a string... string Filter (string clean) { clean.erase(remove(clean.begin(), clean.end(),...
[2 replies] Last: There are two versions of ispunct, one in <cctype> and one in <locale>... (by Peter87)
simple C++ link file test
 
Hello, i am trying to figure out why it doesnt print 1 letter at a time like this in console: T E S T but instead prints: Test est st t can anyon...
[2 replies] Last: Gotya thank you Handy Andy :) makes sense now, so if i want to print ... (by siten0308)
Subtraction in C++
 
I need C++ code to Perfrom Subtraction of two Integers having more than 10 digits For Example 123456789987654321-1234566777898978787862
[3 replies] Last: The algorithm is fairly straightforward. It's just the subtraction alg... (by helios)
NEED HELP
 
.
[2 replies] Last: Can he remove only the first 3 cards or can he also remove only 1 or 2... (by Thomas1965)
Subtraction in C++ BigInteger
 
Subtract two big Numbers and store result in an array #include <iostream> # include <iomanip> using namespace std; int main() { int array1 ={23423142,23423...
[1 reply] : Duplicate: http://www.cplusplus.com/forum/beginner/244483/ (by helios)
by Satan
Download or Access Any Paid Unlimited Udemy, WSO(warrior special offer)- Files.
 
Shady AF. Please don't go to that site , use your brain. A reputable site would never go around forums spamming promotions. That is also like the worst idea ev...
[1 reply] : Don't reply to spam. (by helios)
I didnt understand the #include parts
 
I was doing my homework and one of my friends helped me starting the code .But I didnt understand the includes why there are so many ? Please explain separetly ...
[6 replies] Last: Hello engineergirl99, With out seeing the rest of the code it is hard... (by Handy Andy)
Working functions, but a problem carrying over
 
Hi, I have two functions outside of main: one takes a string and converts it to lowercase, and one reverses a string. Now, both functions perform their indivi...
[2 replies] Last: Hey, Mannnnnnnnnnnnn. I caught myself thinking it had something to do... (by jjordan33)
October 2018 Pages: 1... 910111213... 28
  Archived months: [sep2018] [nov2018]

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