Beginners - March 2015 (Page 31)

Program doesn't work properly
I don't know why the program stops after line 27, it doesn't read ch or anything else after the first array #include <iostream> #include <fstream> usi...
Mar 11, 2015 at 6:52pm
[9 replies] Last: Could you explain the logic? On one hand you have a 40-element array ... (by keskiverto)
How to check for an integer overflow
Hello, I'm a beginner in programming and studying C++ by 2 months. Today I'm here because I have a problem with an exercise of the book : Programming principles...
Mar 11, 2015 at 6:11pm
[3 replies] Last: // #include <iostream> #include <vector> #include <string> bool stI... (by anup30)
by Dkob1
Array, using template <class>
I have to sort the 5 elements in a, the Days and the Vowels. How do I use the template <class T> with the way I put this?? #include <iostream> #include <alg...
Mar 11, 2015 at 4:53pm
[2 replies] Last: Assuming you want one templated function for show, it would simply be... (by Ganado)
Calculator code not working
I'm making a calculator code for a class assignment, but it's not working. For some reason my cin statement inside the if statement isn't working when I test th...
Mar 11, 2015 at 4:04pm
[4 replies] Last: lines 8-12: These lines are nonsense. number1 and number2 have not b... (by AbstractionAnon)
find percentage of letter 'b' in words read from cin
Hey all. i need to write a program that will read words in from cin until the word stop is entered. Then output the percentage of the letter 'b' contained in al...
Mar 11, 2015 at 2:41pm
[4 replies] Last: line 11 doesn't do what you think, 'b'|| 'B' is a boolean, in this c... (by tipaye)
Error help
I need some help. When I debug it on my ide, it says cannot find specified files. Suggestions on how to improve this would be appreciated aswell, such as dll sc...
Mar 11, 2015 at 2:35pm
[1 reply] : Your code does not compile. You need to correct a lot of typos and oth... (by coder777)
Encryption and Decryption of a .txt file with menu
I have been set a challenge at school and i am very confused to make a Encryption and Decryption of a .txt file with menu below is all i have been able to do. a...
Mar 11, 2015 at 12:32pm
[no replies]
using factorial in c++
hye ..i wanna ask how to count factorial in visual studio c++ #include <stdio.h> #include <stdlib.h> void main() { int a, i, factorial=1 ; printf("M...
Mar 11, 2015 at 12:27pm
[6 replies] Last: ok bro ..thanx for replying (by adha001)
3D array help please
I have a 3D array X but what i want to do is read from a file an integer n_el that must be between 0<n_el<=40 and then read n_el integers into the array X. ...
Mar 11, 2015 at 12:01pm
[2 replies] Last: thanks! (by dirtymind)
Using isPunct to separate tokens from an expression
I am looking to separate a polynomial expression. I've looked at http://www.cplusplus.com/reference/cctype/ and it seems that isPunct is a viable option. Now i...
Mar 11, 2015 at 11:52am
[2 replies] Last: isspace has the wrong signature (char is required). You may change i... (by coder777)
by TeeK
Making a more efficient prime number program-'challenge'
So i got the idea to make a prime number program that outputs the prime numbers from 0 to whatever limit the user inputs. I didn't manage to make the program ca...
Mar 11, 2015 at 8:24am
[3 replies] Last: Great input ! I have a lot to learn :) (by TeeK)
Problem with recursion
Hello. I'm hoping to get some hints for this recursion problem. I am supposed to write the definition of a function named printPowerOfTwoStars that receives ...
Mar 11, 2015 at 7:11am
[15 replies] Last: Yes thank you. The problem actually just seems to be with the site I g... (by skwigelf)
Unknown Error
I can't seem to understand why my program isn't working, could someone look over it? I'm not getting any error messages when I run it so I don't know what to lo...
Mar 11, 2015 at 7:03am
[10 replies] Last: I have figured out the problem, thanks for the help! (by edwinibon)
IT newbie needs help seriously. Thanks in advance.
Hi guys. I am a freshman IT students that needs help badly in codes. I have a homework and I hope you guys could help me. 1. Create an application that will...
Mar 11, 2015 at 3:35am
[2 replies] Last: here's what I have so far and I'm totally lost. I'm sorry. #include... (by wanderer08)
by Ulutay
Maze
so the code blow generates a random maze based on a size input by the user, now my question is: how do i make sure it has at least ONE path to win it?. It might...
Mar 11, 2015 at 3:20am
[1 reply] : http://en.wikipedia.org/wiki/Maze_generation_algorithm Here are some m... (by pnoid)
by Torm04
Program crashes towards the end
Hello, I can't seem to find why my program towards the end. It seems to be working correctly, but seconds after the program is supposed to be ending it stops wo...
Mar 11, 2015 at 2:23am
[6 replies] Last: I was bored. None of this is related to your problem, but here's some... (by Disch)
by ncaver
Homework Help !!
Write your question here. Problem: Write a C++ program that read 5 people's height and weight data from the given file myinput.txt and then calculate EACH pers...
Mar 11, 2015 at 2:22am
[15 replies] Last: I got it thank you so much (by ncaver)
Can someone explain a couple lines of code for me?
Hi, I'm preparing for an exam and am reviewing some code. I have a completed template function that I'm trying to understand and would appreciate if someone exp...
Mar 11, 2015 at 2:21am
[1 reply] : // Returns true just if target occurs among the elements of the con... (by shamieh)
Practice Help
Have an exam coming up and was doing some practice questions. I don't have an answer key so I'd like for someone to check my work. 1. Consider the follo...
Mar 11, 2015 at 2:16am
[2 replies] Last: Ah Thank you so much LB, this has been very insightful, I'm glad you c... (by YungScrublord)
Template object initialization
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'ArrayLinkedListRow<DT> *' (or there is no acceptable conversion) Whats t...
Mar 11, 2015 at 1:49am
[4 replies] Last: _row is a pointer to memory where each index is of type ArrayClass<... (by shadowCODE)
March 2015 Pages: 1... 2930313233... 51
  Archived months: [feb2015] [apr2015]

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