Oh I see, makes sense. Thank you for all your help.
Type: Posts; User: varus
Oh I see, makes sense. Thank you for all your help.
Thanks for the highlitings Dave, but I noticed all pass by references, removed strings and min(first.size(), second.size()). When I made those adjustments to my code, it still wouldnt run, but when I...
Its weird I was running exactly same thing several times and it didnt work. Thanks a lot for your help. :)
pass by reference doesnt seem to change anything with either functions, still gives wrong result like some random number for matching ( so "for ( int i = 0; i < min(first.size(), second.size()); i++...
Hello,
I have a problem where I need to call the function matchexact() passing the two strings. matchexact() will determine how many times the corresponding positions in the two strings hold exactly...
thank you robatino I got the program working, now I will be posting another problem with string that I ran into.
I've done it the way you told me, but it still always returns it as "true".
I think its because of my function parameter (double grades[]), its not checking the numbers in grades[] array in the main...
You mean like this?
bool isitvalid(double grades[]){
for (int g = 0; g < 4; g++){
if (grades[g] < 0 && grades[g] > 100){
return false;
}else{
...
Actually I made a mistake, it should check inside while loop and should look something like this:
for (int i = 0; i < 4; i++){
cout << "weight: ";
cin >> weights[i];
}
for (int k = 0; k < 4;...
Ok thank you, but which parameters should I use in order for main to call the function properly and where do I need to put the function in the main for it to be actually checking the grades. It also...
Hello,
Im new to this forum and I really need help with this newbie problem. I've been struggling with this assignment for very long now. I'm not even sure how to start the code right, as well as...