Beginners - October 2015 (Page 54)

Maze generation problem
 
stack overflow over and over again, I cant find the mistake... the algorithm is like this : Generate an int array with 4 random numbers to represent direc...
[no replies]
Advice on how to deal with if and else statement
 
Here is the scenario: Write a c++ program that asks the user to input two numbers. If the first number entered is greater than the second number, the program s...
[3 replies] Last: im sorry ran (by beccak0316)
Need help with Shortest Distance calculator Problem (3 points)
 
I was having a problem with the following question: Write a C++ program that reads in three points from the keyboard (x1,y1), (x2,y2), and (x3,y3). The program...
[4 replies] Last: Thanks for letting me know. I really appreciate it. (by RAVSHAN02)
Getting error with code and need help understanding. Please Help.
 
Hi, i copied and pasted the following code from a textbook example to understand it but its getting errors. Can someone please help? Also, i was having trouble ...
[no replies]
Need Help understanding a code
 
Hi, i needed help understanding the following code. I needed help understanding the bolded line. Shouldnt the numberUsed be one less than the index value since ...
[no replies]
by Arkone
bit shift proteus led
 
Hi forum i have small problem with bit shift I tried simulate snake from led diods in proteus I want to led diod move from right and move from left together b...
[1 reply] : You probably want to have separate numbers for the left & right LEDs -... (by Norm Gunderson)
by Marth
Get first letter of string, determine if lowercase.
 
Any way to pull the first letter of a string, and then determine, through science, whether or not its lower case so I can then apply C++ magics. i know abou...
[5 replies] Last: here's how i ultimately did it: edit:: thanks for all the help; c... (by Marth)
I need help asap making a square with a pattern inside
 
I need to create a square with a pattern inside of it using only FOR Loops and If-Else statements. Instructions state that I cant just output the square using c...
[1 reply] : The following loops will probably make things easier for you: #inclu... (by Norm Gunderson)
Passing in argv[] as a parameter
 
So I call argv in my main to take in input from the terminal but I can't seem to pass it to another function correctly. For my main function I have: ...
[9 replies] Last: #include <iostream> #include <string> #include <fstream> #include <io... (by JLBorges)
Skipping blank lines using getline
 
So, I'm writing a class named Pitcher that gets a name and stats from a text file. The text file is formatted with a bunch of new line characters followed by th...
[2 replies] Last: I figured it out, the third getline was the problem. Thanks though! (by bmo4488)
How to print prime number in pyramid? Need help
 
hello,im new to C++, and i got some task to do please help me to create a program to : input: n=5 output= ___2 __3 5 7 11 n=10 _____2 ___3 5 7 11 13 ...
[no replies]
A simple question for fixes
 
I see the difference between prefix and suffix. What's the difference with 'postfix'? It seems to be just same with prefix so far. thanks.
[5 replies] Last: Thanks a lot !! : ) (by kevinkim)
Multiple values on an array (1,2)
 
Hello, I need to make a memory game where I have a static array with max of 20 strings and then I need to allocate it to a dynamic array and have the words mult...
[23 replies] Last: :) (by closed account 48T7M4Gy)
Trace & If/Else statements
 
Can someone show me how I trace these statements and show changes that were made to each location. I have an example of one problem int a, b, c; a = 5;...
[4 replies] Last: cheers:) (by Vibgyor)
Convert a string to an enum value?
 
Hello everyone, asssuming i have the following enumeration: enum fruits {APPLE, PEAR, BANANA}; how can i convert a string to an enum value in o...
[4 replies] Last: thank you for the usefull tips (by Amiplus)
Adding Eigen library in Dev C++
 
This topic has been answered before, but it does not work for me. I am trying to add the Eigen library in Dev C++, but after following the steps explained in p...
[1 reply] : following (by SamuelAdams)
Help with if statement... i think
 
Could someone help me figure out where i went wrong? Im assuming its my if statements from the way it its running after compile. #include <iostream> #inc...
[5 replies] Last: So I've fixed what was mentioned but am still having the same problem.... (by EDIAZ369)
do while loop
 
hey guys i have a problem with my code am trying to use a do while to create 5 enemies whithin my vector and i expect it to stop pushing back when m=5...but its...
[7 replies] Last: still outputing more than 5 is there a way to limit my vector or limi... (by closed account 48T7M4Gy)
Help with my code please
 
Write your question here. I am having issues with my program in which it doesn't actually change the value of my variables in my classes so that I can then use ...
[5 replies] Last: http://www.cplusplus.com/doc/tutorial/functions/ (by closed account 48T7M4Gy)
how to implement equation
 
...
[1 reply] : Have a look at the <cmath> header. It has a lot of mathematical functi... (by Peter87)
October 2015 Pages: 1... 525354555657
  Archived months: [sep2015] [nov2015]

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