Search:

Type: Posts; User: varus

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    2,707

    Oh I see, makes sense. Thank you for all your...

    Oh I see, makes sense. Thank you for all your help.
  2. Replies
    8
    Views
    2,707

    Thanks for the highlitings Dave, but I noticed...

    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...
  3. Replies
    8
    Views
    2,707

    Its weird I was running exactly same thing...

    Its weird I was running exactly same thing several times and it didnt work. Thanks a lot for your help. :)
  4. Replies
    8
    Views
    2,707

    pass by reference doesnt seem to change anything...

    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++...
  5. Replies
    8
    Views
    2,707

    Problem with Strings, Please help!

    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...
  6. Replies
    11
    Views
    1,269

    thank you robatino I got the program working, now...

    thank you robatino I got the program working, now I will be posting another problem with string that I ran into.
  7. Replies
    11
    Views
    1,269

    I've done it the way you told me, but it still...

    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...
  8. Replies
    11
    Views
    1,269

    You mean like this? bool isitvalid(double...

    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{
    ...
  9. Replies
    11
    Views
    1,269

    Actually I made a mistake, it should check inside...

    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;...
  10. Replies
    11
    Views
    1,269

    Ok thank you, but which parameters should I use...

    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...
  11. Replies
    11
    Views
    1,269

    Please help with Arrays and Bool

    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...
Results 1 to 11 of 11