Beginners - November 2016 (Page 37)

by Chamat
Scanning each character of a String
 
I'm trying to make something that: prints only the uppercase letters prints every second letter replaces all vowels with underscores finds the number of...
[2 replies] Last: Wow you really went above and beyond and did the whole thing for me, ... (by Chamat)
Function program won't compile
 
Any particular reason my code isn't working? I'm trying to use a function in a function to find the volume of a cylinder. Any help would be appreciated thanks....
[8 replies] Last: makes sense thank you (by AchillesO23)
Need help with part of code (operator overloading)
 
Okay so what our teacher gave us was this: 1. Develop a class smartArray with the following members: (5p) public:  int *elements // dynamic array, memor...
[1 reply] : Every time you add a value to the array, increment the size by 1. (by starman00)
Stats Program Runs But Crashes
 
I am trying to write a console stats program for fun that can calculate a chi-square one-way goodness of fit. When prompting for user inputs after a handful of ...
[1 reply] : The issue is line 4. You can't create an array off the stack with a no... (by rabster)
by Horro
2nd order Runge-Kutta with coupled ODEs
 
Hi, my question involves solving a system of two ODEs using the 2nd order Runge-Kutta method. I have managed to use the 2nd order Runge-Kutta to solve a single ...
[1 reply] : If you have code to solve dy/dt=f (as posted) you should be able to ch... (by lastchance)
Roman numbers to natural numbers
 
I am supposed to make a program that does as the title says. Each roman number ends with a -> . I have made a code that I expected should work and I have no id...
[1 reply] : Made it to work, have been looking for like half an hour to finally se... (by Oriol Serrabassa)
C++ Help of making a programm
 
...
[1 reply] : Like this? #include <iostream> using namespace std; int main() { in... (by MackieJ)
Sequential Ordering and Dynamic Arrays
 
Hello, I keep getting errors with my code that I'm trying to produce. At the moment, it says I can't use MaxWords for the second parameter in the addInOrder fun...
[5 replies] Last: I've learned that the error lies within the addInOrder function but ca... (by djr1599)
To many errors in statistical calculation
 
Hello guys, I was given an assignment by my prof to code statistical calculation which are average, variance, and standard deviation. Some says it is easier to ...
[6 replies] Last: If I just want to use cmath and iostream, how can I change my code to... (by keskiverto)
dealing with some logic errors
 
Hello peeps! I'm having some problems with my codes. I had done a quadratic equation calculator programm. The problems were some of the number that I key in wil...
[1 reply] : Please use code tags - it will make it much easier for people to read ... (by lastchance)
Sorting Names
 
Hello! I am trying to right a program that will have the user enter up to 20 names (no limit on length of name) and then sort the names. However, after I enter ...
[no replies]
switch case overflown array
 
Here's what the program does and where the problem is. It generates 100 random numbers between 2-12(simulating die throws with 2 dice at the same time), and the...
[8 replies] Last: It's very easy to improve. All you need to do is generate two random n... (by Peter87)
problem with incrementing
 
Hello! I have to learn C++ as part of my programming class, so my question today is how to deal with a certain exercise. I am a very beginner and I am aware o...
[1 reply] : Line 20-25 is a function definition. A function named division that ... (by Peter87)
Case ain't calling the function?
 
Well i'm forced to use the current funtions, loops etc. The code is not passing me any errors/warnings anymore during compilation, case is properly reading user...
[no replies]
OOP .. classes and copy constructors
 
#include <iostream> using namespace std; class Line { public: int getLength( void ); Line( int len ); // simple construct...
[4 replies] Last: thank you :) (by zeroblank)
Help!!! Number Problem!
 
Hello everyone, Can anyone please help to resolve this problem. I am just starting in C++. Was given this problem. Does anyone have any ideas on how to do it...
[2 replies] Last: We don't do homework here, if you need help, post some code. (by DeathLeap)
cin error... Need help!
 
I'm trying to ask the user to enter one integer value: 1,2,3 or 4. But if the user enters 2a or 2p for example, then the program proceeds with choice 2. How do...
[2 replies] Last: Thanks! I tried using string format and it works :) Sorry for not putt... (by autumpa)
by adam50
recursive permute function (looking for a different version)
 
Hi, I'm a beginner at c++. The following code outputs first string plus all possible permutations of the second string. I'm looking to produce the permutations ...
[2 replies] Last: Thanks :) (by adam50)
i got error and how to fix it???(C1903 C2040 C2676)
 
Hello everyone, i have my code ,but i got some error when after i linked to string2.cpp those error Error 3 error C1903: unable to recover from prev...
[2 replies] Last: To get help avoid dumping a lot of code in your post, it makes people ... (by Austin J)
How to read the amount of a certain character in each line from a .txt file in c++?
 
I'm reading from a .txt file called RainOrShine and the contents of the file look like this: R C R A R S R R S R S C R C S S S S R S C A R C S S A C R S C R ...
[5 replies] Last: An alternative, and probably more flexible, way to do this is to decla... (by gunnerfunner)
November 2016 Pages: 1... 3536373839... 44
  Archived months: [oct2016] [dec2016]

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