Beginners - March 2015 (Page 47)

Const EType &a, how to pass to?
 
If I have a function: void foo(const EType &a) {}; What would I pass to the function in main? I keep getting the same error. Thanks.
[1 reply] : What would I pass to the function in main any object of this EType... (by closed account SECMoG1T)
Problem with infinite loop
 
Hello, I am pretty new to C++ but I'm liking it so far. I was working on a project and came across an issue of getting caught in infinite loops. I think I went ...
[1 reply] : tolower() function from <cctype> library to turn characters to their l... (by Cody0023)
Watch Fifty Shades of Grey Online Free
 
This is not a program lol
[1 reply] : Please do not reply to spam otherwise it makes it hard to remove. (by giblit)
Alignment problem (setw usage)
 
Hello everyone, I am doing a homework assignment again, and I am having a problem aligning the output data. The assignment calls for us to print the data simila...
[no replies]
Diamond Program
 
Hello, I am new to C++ and I am working in Visual Studios 2012. I am supposed to write a program which, given an integer k greater than 4 and less than 60, disp...
[11 replies] Last: You're right that they will be mirror images of each other, but one wi... (by GRex2595)
by nemimi
Compound Interest Function
 
Hi There- Ok, after working on this for an embarrassing number of hours, I think I came up with something less cringe-worthy to ya'll "real" programmers. Allow ...
[no replies]
by HG319
recursion problem (1,2)
 
We are going over recursion in my class and I do not quite understand it, I was wondering if someone can help me with this problem
[29 replies] Last: I get that. 7 and 8 should probably just be deleted anyways. For s... (by GRex2595)
I can't seem to fix this. Can anyone help?
 
I've completed most of this, but there are still many errors. My professor gave us a program to debug and I can't figure all of this out. Can anyone help me? ...
[no replies]
Big Oh
 
Hey When you have an alogrithm, I understand with it n and n^2 and so on.But I am confused on when it is log(n). Could someone give me an example. In a rece...
[1 reply] : O(log(n)) is for algorithms that experience logarithmic growth. Binar... (by GRex2595)
by HG319
recursive outputs
 
So I have this recursive and I know the output if it is passed by ref or value, and I know the difference, I still just don't understand why the answers for eac...
[no replies]
by HG319
Finding Linked Lists size
 
I need to find the size of a linked list recursively and iteratively Here is what I have for each Do these look okay? int GetCurrentSize(node* p) { ...
[1 reply] : They look fine. Do they work? You may have to verify that they work.... (by GRex2595)
Trying to get decimal places in code
 
Trying to get grades in along with grades with 5 decimal places in. Having trouble with my loop. Not sure what I'm doing wrong. This is what I have so far. ...
[3 replies] Last: http://www.cplusplus.com/reference/iomanip/setprecision/ So you need ... (by GRex2595)
Can u help me???
 
I try to find the problem in this code but i cant..Can u help me??? #include <iostream> using namespace std; int main() { Patient quidam; dou...
[1 reply] : Is your program: 1) Not compiles     * Is other code compiles corr... (by MiiNiPaa)
Structures Question
 
Hi everyone, I'm a noob to C++ and could use some help with understanding one of the practice exercises in "Jumping into C++" by Alex Allain. This is a ch 11 (S...
[3 replies] Last: probably because you're not writing java . When you pass an argument... (by IWishIKnew)
Max, min, average and sum of given sequence
 
Hello, I'm trying to develop a program that returns the max, min, average and sum of a sequence. The problem is that I need to give the size of the sequence and...
[7 replies] Last: Yeah. You'll increment i outside of the while loop, so when you incre... (by GRex2595)
by HG319
Obtaining linked list size recursively
 
I am having trouble with link lists and recursion I was hoping someone can guide through this question: suppose that the class LinkedBag did not have the dat...
[1 reply] : would it be something like this: int GetCurrentSize(node* p) { ... (by HG319)
EOF loop issue
 
I am supposed to do. 1. Use sentinel, nested and EOF loops to do file I/O. 2. Create a program file to read a data file and find the section number(first four...
[1 reply] : Initialize variables. You don't know what currValue is because it isn... (by GRex2595)
sales commission program
 
I need some guidance on what to do next. I wrote the program as much as I could. If you see a better way to fix my code, please let me know. I want to finish...
[9 replies] Last: I couldn't figure it out in time. Got an F :( I still don't know how ... (by gttomog)
Pointer crash
 
I'm obviously not very good at c++ yet. Having trouble understanding how to use pointers. Making a similar game to tetris right now and a bit confused why what ...
[3 replies] Last: I still don't know why it crashes at runtime though Because when line... (by MiiNiPaa)
by Lee125
atoi
 
So...I know that the atoi function in the C++ standard library is supposed to convert a string into an integer...how does it work?...(I'm trying to learn stuff ...
[1 reply] : http://lmgtfy.com/?q=atoi+source+code Even first link will show you b... (by MiiNiPaa)
March 2015 Pages: 1... 4546474849... 51
  Archived months: [feb2015] [apr2015]

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