Beginners - March 2016 (Page 34)

avg of array
 
Why is my program not returning the correct average? #include <iostream> #include <iomanip> using namespace std; int main() { double prices =...
[10 replies] Last: Oh yea hmmm oops Does this fix the issue keskiverto? #include <iost... (by Billyin4C)
How to write a recursive function for counting the amount of ways you can step through an array?
 
Hello, I'm trying to write a function that determines how many valid paths a walker can get through an array given the rule that the walker can only move up in ...
[2 replies] Last: @booradley60 Thank you, great answer. Helped me understand it better. ... (by vaultDweller)
by basel7
Need Help!
 
So, my program should convert each letter in a word to something called the International Civil Aviation Organization (ICAO) phonetic alphabet, which I have in ...
[3 replies] Last: Never mind I got it! (by basel7)
Help with encryption and decryption
 
My teacher gave us a skeleton code to help us start the process of encryption and decryption. We have to use a void encryptDecrypt function and string encrypt a...
[2 replies] Last: so then why would I need a string encrypt and string decrypt as helper... (by ajessie)
help :< i need help
 
The project will be done individually. Each student shall create a console application with Microsoft Visual Studio C++ (2008 or higher) that will produce a sea...
[no replies]
Header variables not working in .cpp
 
I'm starting to learn how to work with separate files for classes and this is the only issue I'm having right now but it makes no sense to me. I'm getting an ...
[2 replies] Last: Thank you!!! I'll try it out as soon as I get back home (by PocketTNT)
help
 
after running this code why houseRent and commision is showing 0 ? why its not calculating the sum? #include<iostream> using namespace std; class employ...
[2 replies] Last: thank you ..now i edited like " .6*basicsalary ".. and now the code i... (by eajajul)
Counting Character
 
Hello, could somebody help me with counting uppercase, lowercase, and digits in a text file? Here's my program // Character Analysis #include <iostream> #i...
[2 replies] Last: Thank you! (by quietpupil)
Question turning my code into a Function
 
My code works perfectly but needs to be a function. I'm just not sure if I could turn the whole code into one function or if I need to break it down into indivi...
[3 replies] Last: Thanks, They both really helped. Starting to understand functions (by gr8schism)
While-loop program not stopping after input finishes
 
I have an assignment in which the user inputs a word and the program outputs how that word would be spelled using ICAO words. The problem I'm having is that I c...
[1 reply] : Ok, I just talked to the instructor. For the purposes of this assignme... (by moonman239)
Background Theory
 
I need help because I have trouble understanding my teacher: Write a program that will prompt the user for a four-letter word and then convert that to an unsign...
[4 replies] Last: Thank you (by Newbbie)
by KateOB
Alternative to looping for a matrix
 
Hi everyone, Does anyone know of a faster way of doing this? I want to count the number of columns of the matrix B whose rows lie outside the range of minp an...
[no replies]
help with morse code hw
 
I am supposed to open a .txt file with a phrase written in morse code, write a code to open the file and write a new file with the phrase translated to english....
[3 replies] Last: First, sorry for taking so long to respond. Here is the approach I wo... (by koothkeeper)
Little Loop Help
 
I'm writing a program with an outer loop and an inner loop. When you select what size pizza you want, you'll be taken to an inner loop to pick toppings. I'm stu...
[4 replies] Last: Thanks so much for the advice, Nick Schuck! I'm taking it all in and t... (by itsbenbroughton)
by m0shka
Returning what value from my function?
 
I am making a spellcheck program that compares words from a notepad file to another notepad dictionary file. I just need a bit of help in the binary search algo...
[no replies]
Vectors
 
Hi All, I'm trying to insert an integer into my vector, but my teacher doesn't wont me to use the insert function. I've look for an alternative, but I keep f...
[4 replies] Last: Thank you, Viiarge, Bdanielz, and Nick. They help was much appreciated... (by honda933)
SDL
 
I was wondering if you require to learn SDL to create basic 2d games, and if it is required to create something like a platformer, can you direct me to good SDL...
[no replies]
by NBL
Streams and files
 
I'm having a problem understanding what this problem wants me to do and what encrypt and decrypt are? Can anyone help please! 1. A function char EncChar (cha...
[3 replies] Last: As far as I understand you have to encrypt / decrypt a file so the use... (by Thomas1965)
I'm having trouble reading in data from a plain-text file using the ifstream object.
 
I am using Microsoft Visual Studio 2013. I have read the page from the CPlusPlus.com tutorial involving file I/O ("Input/output with files") several times, but ...
[2 replies] Last: Thank you very much! Moving my data files and then re-running the prog... (by Dyndrilliac)
How would I compare 2 numbers with 2 decimals in them?
 
How would I compare which number is bigger if the 2 numbers have 2 decimal places instead of just 1? For example 1.33.4 < 3.0.22? The range of the digits betwee...
[2 replies] Last: Thank you coder777 that was very helpful and just what I needed. (by JoshuaStudent)
March 2016 Pages: 1... 3233343536... 47
  Archived months: [feb2016] [apr2016]

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