Beginners - October 2015 (Page 11)

by nasser
output is Zero
 
What is the wrong in this code it alwasys gives me zero #include <iostream> using namespace std; class Triangle { public:int area(int height,int...
[1 reply] : Line 9: You're doing integer arithmetic. 1/2=0. 0 times anything is... (by AbstractionAnon)
for loop help(math aspect)
 
See after code #include <iostream> using namespace std; int main () { int a; for ( a=1; a<101; a=a+1) { cout<<"List 0-100: "<<a<<endl; } int b; for (b=2...
[no replies]
Neural Nets + Genetic Algorithms Help
 
I wrote some code for neural networks to learn the XOR function and it works fine. I am not trying to make a neural network that can classify water as a solid l...
[no replies]
Need help fast. Thank you!
 
I need help with this program I need to create at this point I'm sorta lost on what I'm supposed to do. Any help would be greatly appreciated THANK YOU! inst...
[2 replies] Last: The instructions say "Create two classes". Have you created class dec... (by AbstractionAnon)
How do you swap array elements using indexes?
 
Hello, I am trying to swap two array values using indexes but I am getting very confused and frustrated with how to do that. ' I'm trying to swap two string ...
[3 replies] Last: then a swap use a third variable temp. auto temp = names ; names = na... (by Ericool)
by Aurix
Error C2660 Help
 
Can't seem to figure out what is causing this error, any help would be greatly appreciated. error C2660: 'getScoresAndCalculateTotal' : function does not tak...
[2 replies] Last: Thanks, I think I got the issue. (by Aurix)
Class displays a greek letter
 
After running the following program, it displays the Greek letter alpha (regardless of the name entered). Please help me to find out why. Thank you. #include...
[4 replies] Last: Thank you for your help. (by gabor53)
Programing assignment HELP!!!!
 
i cant figure out why i get a syntax error with the line " jedi_calc = static_cast (mcc * age) / (weight * weight);" help please! #include <iostream> ...
[1 reply] : You're missing the <type> in your static_cast. jedi_calc = static_c... (by AbstractionAnon)
Sorting by name from text file
 
For a class assignment we were given multiple files and told to make a menu and create 3 functions. One show all student data from text file, one just shows the...
[no replies]
decoder
 
what is the function of enable in decoder ? digital logic
[1 reply] : Could you be more specific? Is there a code that goes with the questi... (by pearlyman)
error no match for opperator >>
 
Write your question here. I cannot compile this very basic code. It computes the outside of a circle. Here is the error ||=== Build: Debug in geometry_...
[2 replies] Last: Hello there! I compiled your code and got 3 errors and i've debugged t... (by Shashank Setty)
Generate 6 random numbers for lottery
 
Hi I am very new to c++ and I am trying my best to get a very basic grasp of things. I have been doing an online course and set myself a task of generatin...
[6 replies] Last: Thanks for all your help, I don't think i would've ever spotted the sc... (by jamesfarrow)
by tnt980
persistence number
 
For example: 715 -> 35 -> 15 -> 5 88 -> 64 -> 24 -> 8 27 -> 14 -> 4 The number of products necessary to reach the single-digit number is called the p...
[5 replies] Last: #include <iostream> #include <string> using namespace std; int pro... (by closed account 48T7M4Gy)
File paths
 
Hi, how do I figure out the current place the .exe file is in, create a folder in that place and then place files in that new folder? This is what I have: ...
[4 replies] Last: You could also use the Boost Library. http://www.boost.org/doc/libs/1_... (by integralfx)
need help with best programming practice
 
I am starting to care more about how I structure my programs, and want to be as efficient as possible and need some tips. I'm not too far, about half-way thro...
[5 replies] Last: Could you expand upon what you said about including board sizes under... (by TheIdeasMan)
by ace7
Function Values Not Passing
 
This program has been giving me a lot of issues. I'm positive the syntax is correct but the program won't compile. Here's a few sticking points 1) I must hav...
[9 replies] Last: The prototype and the implementation parameter list must match exactly... (by closed account 48T7M4Gy)
by vwynn
Find max and min of loop
 
Hey everyone, I've been assigned to make a program that takes the average of student test scores and tell you how many passed, failed, the number of students...
[5 replies] Last: Thank you so much! I would've never gotten that. It's interesting to s... (by vwynn)
How to Reset values?
 
Hello, I have a simple game below: #include <iostream> #include <string> using namespace std; int level; int attack = 100; int monster = 500; st...
[4 replies] Last: Git gud? Is that like the opposite of אױ װײ (by closed account 48T7M4Gy)
by yehozz
Call functions with vectors
 
Hello, I am calling a function to do the average of my values... so the problem is how do i move the vector over to the function? with the values from main? ...
[5 replies] Last: take vector<int> myVector as a global variable (by sujitnag)
C++ Math Tutor
 
Phase III: Now you will change your doOneSet function so that it will work for either addition, subtraction, or multiplication. For the purposes of this assignm...
[1 reply] : some help would be much appreciated It's a maths tutor program bas... (by closed account 48T7M4Gy)
October 2015 Pages: 1... 910111213... 57
  Archived months: [sep2015] [nov2015]

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