Search:

Type: Posts; User: caffrea4

Search: Search took 0.00 seconds.

  1. Replies
    22
    Views
    4,612

    Ok it's probably still wrong ha.. works fine...

    Ok it's probably still wrong ha.. works fine though.




    using namespace std;

    string mirrorends(string s)
    {
    int size = s.size();
  2. Replies
    22
    Views
    4,612

    sorry walla I don't understand what you mean.

    sorry walla I don't understand what you mean.
  3. Replies
    22
    Views
    4,612

    I changed it completely I put a while loop in...

    I changed it completely I put a while loop in instead I think the code is ok now cheers.
  4. Replies
    22
    Views
    4,612

    when I had s[size - i] which is [7-0] I was...

    when I had s[size - i] which is [7-0] I was comparing my first character to the character at s[7] which is not the last character as Daved and Elysia pointed out. So my first character did not = to...
  5. Replies
    22
    Views
    4,612

    oh just sank in there ha thnk you Elysia, Daved...

    oh just sank in there ha thnk you Elysia, Daved and Manasij7479. Code now works perfect :D
  6. Replies
    22
    Views
    4,612

    yeah I followed all that but still can't find my...

    yeah I followed all that but still can't find my problem I know it's in the for loop when I try append the characters.
    so s[i] is my first character of the string and I want to compare it to the...
  7. Replies
    22
    Views
    4,612

    ok changed my code again and it compiles and runs...

    ok changed my code again and it compiles and runs but displays nothing.

    here's my new (and hopefully improved code):


    #include <cstdlib>
    #include <iostream>
    #include <string>

    using...
  8. Replies
    22
    Views
    4,612

    ok here's my code I'm getting an error with the...

    ok here's my code I'm getting an error with the strcat function


    #include <cstdlib>
    #include <iostream>
    #include <string.h>

    using namespace std;

    string mirrorends(string s)
  9. Replies
    22
    Views
    4,612

    that's great that helps a lot thanks very much.

    that's great that helps a lot thanks very much.
  10. Replies
    22
    Views
    4,612

    String problem.

    can anyone help me with a problem I'm kinda new to C++. Here is my question:

    Write a function of the form string mirrorEnds(string), that when given a string, looks for a mirror image (backwards)...
  11. How can I add up how many ints are even in the same array??

    I'v only started to learn c++ this year so maybe this is just a simple problem.

    here is the question I was given:

    Write a function of the form int countEvens(int[], int) that returns the...
  12. Cannot figure out my problem can anyone help?

    i need the program to read from a file and write to a file.. everything was working perfectly until i tried to add a menu to it. Here's my code. Any help is appreciated.



    #include <stdio.h>...
Results 1 to 12 of 12