Beginners - March 2017 (Page 15)

Function help with a program
I'm having trouble with a function, I have the following function written but it's popping up with errors. The two errors are that largeandsmall is popping up ...
Mar 18, 2017 at 4:13pm
[17 replies] Last: So delete the other part which is what I showed you in my earlier post... (by closed account 48T7M4Gy)
class does not work
I am writing a code for reading a file and input and what not... I know that im not finish but I have a bump on the road. on the switch stament i have an error ...
Mar 18, 2017 at 2:44pm
[2 replies] Last: Hi, rezy3312 I would have write your code in another style, of which I... (by Enoizat)
HELP ME WITH MY PROGRAM
44 10 incompatible types in assignment of 'int' to 'float ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ #...
Mar 18, 2017 at 1:14pm
[2 replies] Last: cgrade = mgrade *(1.0/3.0) + fgrade *(2.0/3.0); Avoid magic number... (by TheIdeasMan)
Help with a program?
So I am building a program for an engine component analyzer, am struggling with getting the correct expected output, along with making a menu selection at the e...
Mar 18, 2017 at 11:39am
[3 replies] Last: Hope this will offer you some suggestion (it's not optimized): #inclu... (by Enoizat)
by wasey
Need Help with a Pointer (1,2)
See my posts below to see my "progress" AKA current bug... I'm currently having trouble utilizing the checkOutMember function. Product.h #ifndef PRODUCT_H...
Mar 18, 2017 at 7:10am
[24 replies] Last: Just the nullptr thing, I notice you have checks for that in various... (by TheIdeasMan)
Help returning values
Schwing bong too late!
Mar 18, 2017 at 7:04am
[1 reply] : Line 6 you say void getData(int speedLimit, int driverSpeed); which ... (by kingkush)
class portions that will be called by each method
Hello everyone, I'm so struggling with the following 4 questions. I'm not sure if I get the question right too.. (what does it mean by public/ private methods...
Mar 18, 2017 at 6:49am
[3 replies] Last: thank you all!! all make sense :) (by ejkang62)
repeat a program without pressing ENTER
this code forces users to press enter i dont want them to press enter i just want them to press a number to repeat or 0 to exit its like a keyboard you ...
Mar 18, 2017 at 6:45am
[3 replies] Last: You need to put your terminal in raw mode. There is no standard way ... (by mbozzi)
by zntr1
Printf or cout?
Hello, I have been wondering if there is any alternative to printf in c++? I find it very welcome that you can output text pretty fast and easy with it pr...
Mar 18, 2017 at 4:40am
[10 replies] Last: Folding over the sequencing operator works with clang++ 3.8 and g++ 6.... (by JLBorges)
function to find lowest card not working correctly
I tweaked my code a little bit and now for some reason my function is no longer returning the lowest card. I still need to overload < operator for CardTemplate....
Mar 18, 2017 at 3:14am
[6 replies] Last: Friend gave me an idea of placing a variable into class CardTemplate ... (by kingkush)
is conversion of user input to int array possible?
Hello programmers, I know that string input can be used as a char array in c++ I was wondering if this is possible with int input to int array as well for ex...
Mar 18, 2017 at 1:58am
[2 replies] Last: clear!thank you so much! (by ejkang62)
string to int. please explain this given solution
hello programmers, I had to write a code that extracts digits from a string array and converts them to type int. the below is given solution of where the di...
Mar 18, 2017 at 1:06am
[3 replies] Last: this so much makes sense!!! thank you all~~ (by ejkang62)
I Can't Stop This Loop - Help?
Hello, Trying to input a and reach b by counting to it with c! But it just keeps looping (frown) need help! Input --> a = 1, b = 12, c = 1 Output --> 1 ...
Mar 18, 2017 at 1:05am
[4 replies] Last: GunnerFunner, It works perfect - thank you for the distinction of incr... (by shycas2008)
Need help with arrays
I am new to C++. I am also new to arrays. These are the istructions. You are going to create an array of ints of size 10. You will then make a function with th...
Mar 18, 2017 at 1:01am
[4 replies] Last: That's what I was doing before I wrote this but my code wasn't compili... (by mayukhC)
help with hangman game
I have had a go at writing a hangman game. It kind of works at the moment but there are some issues. The game works fine if the word entered to guess only conta...
Mar 17, 2017 at 11:00pm
[2 replies] Last: It's hard to look over such many rows of code, so I decided to re-writ... (by Enoizat)
by khvkhv
Passing array to another classes failed?
In the class called "Mouse", I have the following function, where it takes 2 array and 2 variable as parameter. void Mouse::MoveUp(char c ,int d ,int ...
Mar 17, 2017 at 10:57pm
[2 replies] Last: Hi, for (int a=0; a<20; a++) { for (int b=0; b<20; b++)... (by khvkhv)
cannot get code to compile. HELP
#include<iostream> #include<string> #include<algorithm> using namespace std; bool isVowel(char ch);//method to check whether ch is...
Mar 17, 2017 at 10:04pm
[1 reply] : int main() { string str; cout << "Enter a word: ";//pr... (by jonnin)
Help fixing error in code
I keep getting an error, have not had success fixing. Error says: assignment8b4.cpp:34:18: error: unknown type name 'ch' bool isVowel(ch)//checking w...
Mar 17, 2017 at 9:56pm
[4 replies] Last: ok i added the return rStr and i am still getting an error message: ... (by rradeba)
Im not sure how this looks in code form!
Hi cplusplus forum, I am trying to do a drill from a c++ learning book and am unsure how to write this in code form. it is asking me to write a program th...
Mar 17, 2017 at 7:25pm
[9 replies] Last: @Enoizat Got me there ;) (by kingkush)
type concersion
hi people! Have to solve the following exercise. h=? h= 1/((1/a)+(1/b)+(1/c)) a,b,c, should be int-values. If they would be double, it schould be e...
Mar 17, 2017 at 7:18pm
[1 reply] : a hint ... would be quite helpful http://en.cppreference.com/w/cpp/... (by gunnerfunner)
March 2017 Pages: 1... 1314151617... 36
  Archived months: [feb2017] [apr2017]

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